Package: Applicant Management System(AMS) |
Error when rejecting Applications: List has no rows for assignment to SObject
Error when rejecting Applications: List has no rows for assignment to SObject
Applications (and the other AMS Stages) has a Master-Detail Object Relationship within the Salesforce Data model to Job Order. This means the Record Type of the AMS Stages is acquired from the Job Order. When you create a new Application Record (preferably using the 'Apply to Job' button), the Application Record Type would be the same as the Job Order Record. When using the 'Green Move' button, the next AMS Stage also would have the same Job Order Record Type.
If these Records do not match for Record Types, an error will throw when Rejecting the Application Record. The error would read as "Error: List has no rows for assignment to SObject".
To resolve the error, manually change the Record Type of the affected Record(s). You will want to change any AMS Stage that does not match the Job Order.