When an incorrect Constituent ID is provided, the system currently creates the gift in the gift batch with a NULL Constituent ID, treats the operation as a success, and simultaneously returns an error indicating that the constituent was not found.
Additionally, a similar issue occurs when the Post Status is not set to Posted and a Post Date is supplied. Despite the invalid data, the gift record is still created.
Expected Result
If the Constituent ID is invalid or cannot be found, the gift should not be created.
If Post Status and Post Date values are invalid or inconsistent, the gift should not be created.
The transaction should fail validation and return a clear error message.
No gift batch record should be created when required data validation fails.