/
TAPSS - EOFY Issues (Receipting 06-Jul to 07-Jul-2023 Run)

Attention: Confluence is not suitable for the storage of highly confidential data. Please ensure that any data classified as Highly Protected is stored using a more secure platform.
If you have any questions, please refer to the University's data classification guide or contact ict.askcyber@sydney.edu.au

TAPSS - EOFY Issues (Receipting 06-Jul to 07-Jul-2023 Run)

Issues/Errors Encountered and Workaround

Background

During the initial attempt of the Receipting process, some related flows and process builders were producing errors, halting the completion of the process. These flows and process builders are listed below:

  1. Process Builder - Automate task for GA for Pledge (v2) - replaced by USYD Automate task for GA for Pledge (subflow) )

  2. Process Builder - Description - HOLD RECEIPT (v4) - replaced by USYD Description - HOLD RECEIPT (subflow)

  3. Flow - AQC Donor Contact Type Auto-Updater (v2) - replaced by USYD AQC Donor Contact Type Auto-Updater (subflow)

  4. Flow - (Affinaquest) Update Gift Designations (v1) - this is still active in PROD

 

The Workaround

Since the Receipting process is important, and there’s no quick fix that can address the errors being encountered when the above process builders and flows are enabled, it was decided that these automations will just be disabled temporarily, and then manually do the intended updates/operation of each, once the Receipting process is completed.

Process Builder - Automate task for GA for Pledge - Disabled

The process builder creates Task record for each updated Gift/Pledge record that went into ‘Pending review’ status. Since this is disabled during the Receipting process, due checks were done to determine if there are Gift/Pledge records that require manual creation of the relevant Task record.

 

Below are the steps done to check if there are records that require manual creation of Task record:

First check: SOQL to see if there are Gifts/Pledges records that are in ‘Pending review’ covering the FY.

SELECT Id, AQB__Gift__r.name,AQB__Gift__r.USyd_Pledge_Status__c FROM AQB__Transaction__c WHERE DAY_ONLY(CreatedDate) >= 2022-07-01 AND DAY_ONLY(CreatedDate) <= 2023-06-30 AND AQB__Gift__r.USyd_Pledge_Status__c = 'Pending review'

Result: The above SOQL, when summarized resulted in 5 Gift/Pledge Records, which already has automatically created Task records. No manual record update or record creation done.

Gift/Pledge Number

Comments

2341283

With automatically generated task

2345964

With automatically generated task

2359231

With automatically generated task

2368046

With automatically generated task

2370440

With automatically generated task

Second check: SOQL to check if there are Gift/Pledge that are in ‘Pending review’ based Transaction records' related Receipt’s creation date (vs Receipting date).

SELECT COUNT() FROM AQB__Transaction__c WHERE DAY_ONLY(AQB__Receipt__r.CreatedDate) = 2023-07-07 AND AQB__Gift__r.USyd_Pledge_Status__c='Pending review'

Just another approach of checking, but the goal is the same - to identify if there are Gift/Pledge records that are in ‘Pending review’ that may need manual creation of relevant Task record.

Result: The above SOQL yielded 0 result. This means no Gift/Pledge record requires manual creation of auto-generated Task record. No manual record update or record creation done.


Process Builder - Description - HOLD RECEIPT - Disabled

 

This process builder is triggered when Transaction is created or edited. This process builder has two criteria nodes, and so the details below were segregated per criteria node. Here are the criteria nodes based on each criteria node name:

  1. Check if the receipt on hold is checked.

  2. Copy description to text area field

Node 1: “Check if the receipt on hold is checked.”

Condition (translated to semi pseudo-code):

AQB__OriginatingBatchItemTransaction__r.AQB__BatchItemID__r.AQB__ApproveReceipt__c IS TRUE AND AQB__OriginatingBatchItemTransaction__r.AQB__Description__c IS NOT NULL AND AQB__Batch__r.RecordTypeId='0124a0000004KatAAE'

Action:

  • Action Operation: Update Records

  • Name: Update Receipt Description

  • Target Record(s): Related Gift/Pledge Record’s Receipts

  • Target Field(s): Receipt On Hold Reason

Since this process builder was disabled, the following SOQL statement was executed to check if there are records that need manual update. This SOQL statement is based on the criteria defined in this criteria node.

Result: The SOQL above produced 0 rows. This means that if the process builder was enabled during the Receipting process, no record will be processed by this particular node because no records met the defined condition/criteria, hence no record are to be manually updated. No manual record update or record creation done.

Node 2: Copy description to text area field

Condition (translated to semi pseudo-code):

Action

  • Type: Update Records

  • Name: copy details to text area field

  • Target Record(s): (Current) Transaction

  • Target Field(s): Text Area Description

Since this process builder was disabled, based on the above condition of this criteria node, the following SOQL statement was executed to check if there are records that need manual update.

AQB__Transaction__History object is used to determine if there were changes that happened on the applicable Transaction records' AQB__Description__c field, which is part of the condition (Is changed operator).

Result: This SOQL statement returned 0 when executed, hence there’s no record to update or process manually. No manual record update or record creation done.


Flow - AQC Donor Contact Type Auto-Updater - DISABLED

The flow is triggered when a Gift/Pledge record is created or updated, with no defined entry criteria. The flow logic is defined into two parts:

  1. Set Gift Driver Derivation (Usyd_Gift_Driver_Derivation__c) to TRUE when the record’s account changes.

  2. Set the primary/secondary type to Donor if not yet Donor.

 

First Part: Set Gift Driver Derivation (Usyd_Gift_Driver_Derivation__c) to TRUE when the record’s account changes

To check if there were data that needs to be manually updated, the following SOQL statement were executed:

Result: This SOQL statement returned 0 when executed, hence there’s no record to update or process manually. No manual record update or record creation done.

 

Second Part: Set the primary/secondary type to Donor if not yet Donor

In the Receipting process, contact types are not expected to change. No manual record update or record creation done.


Update Gift Designation - Disabled

This is a managed package (Affinaquest) flow which has a known issue. So it was recommended to for this to be turned-OFF. No manual record update or record creation done.


Manually Updated Receipts

A Total of 62 receipts were voided in error as a result of the receipting utility creating consolidated receipts that were performed on July 6th and 7th of 2023. There currently is no option to set the utility to not automatically void receipts. Below are the only settings that Admins can configure in Affinaquest:

  1. Receipting Enabled turns receipting on or off for the organization.  The default is off.

  2. Maximum % allowed for Quids sets the percent of the gift total that the quid can be for the donor to get a tax receipt.  In Canada, the quid cannot be valued at more than 80% of the gift for a receipt to be issued.  Receipts will not be generated for gifts where the quid exceeds this percent.  If you do not wish to have a limit, leave this blank.

  3. Maximum Amount Before Approval is Needed is the threshold at which a receipt will need approval.  Receipts that need approval are flagged and not generated automatically with other receipts.  This can be manually checked on each gift.  If the gift exceeds the threshold, it will be flagged even if not manually flagged during gift entry.  If you do not want any receipts to be flagged for approval, set this field to -99.  If you want all flagged, set to 0.

  4. Signator Required allows you to set the field of Signator as a required field during data entry.  The Signator is the Contact on the Account with the legal credit for the gift. Every transaction will have a signator, but if this flag set to yes, it requires the user to populate the field for pledge payments and added transactions during gift entry.  If not set to yes, the system will determine the signator based on the distribution of the legal credit on the Account.

Hence, a Manual Update was necessary. The erroneously voided receipts were restored manually as a bulk via the data import wizard tool. This manual update essentially updated values of the Receipt object fields: Voided, Void Note, Voided Date.

Prior to the manual update, the following were verified first, ensuring that only non-legitimate receipt voids will be restored:

  • Associated Gift of the receipts is not of a Recurring Gift Type—extracted Gift Types of the 62 receipts: Gift, and Pledge.

  • Acknowledgement type of the receipts is valid—extracted Acknowledgement Types of the 62 receipts: Default, Email - Receipt, and Non Research Grant.

In order to maintain confidentiality, specific receipt details have been excluded from this document.

 

Receipt Id

Receipt Number

Voided Date (OLD)

Voided (OLD)

Void Note (OLD)

Voided Date (NEW)

Voided (NEW)

Void Note (NEW)

a2J8v0000004bhNEAQ

13312

06/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004bhPEAQ

13314

06/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004iU9EAI

13385

06/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004iUvEAI

13424

06/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004shBEAQ

13585

06/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yDYEAY

13726

06/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000009lEAA

2570

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000000AVvEAM

9760

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v00000046DEEAY

12839

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v00000046DGEAY

12841

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000492VEAQ

12872

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004ST6EAM

13189

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004bhSEAQ

13317

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004jszEAA

13455

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004jt7EAA

13463

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004o5tEAA

13545

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004o5zEAA

13551

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004o61EAA

13553

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004shWEAQ

13602

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004shcEAA

13608

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004uASEAY

13649

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yDhEAI

13735

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yEIEAY

13772

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yESEAY

13782

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yEaEAI

13790

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yEeEAI

13794

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yFjEAI

13814

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000005HgAEAU

17285

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000005J16EAE

17291

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000005QdtEAE

17303

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000006S15EAE

17377

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000007FdNEAU

17794

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000007LHBEA2

17822

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000CQKCEA4

18537

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000CaVgEAK

19098

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000Ct4MEAS

19180

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000DBaXEAW

19230

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000DD5vEAG

19269

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000FInzEAG

19395

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000FIoBEAW

19407

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000FMHFEA4

19419

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000FXomEAG

19499

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000G1UFEA0

19545

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000Id8qEAC

19680

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000JObQEAW

19748

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000JUTgEAO

19776

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000JanDEAS

19786

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000MLQTEA4

19809

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000MLQdEAO

19810

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000MolfEAC

19869

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000N38LEAS

19899

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000cXOrEAM

20322

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v00000000ZVEAY

4023

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000000VPaEAM

10267

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yDnEAI

13741

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v0000004yECEAY

13766

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000DBa8EAG

19222

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000DBaAEAW

19224

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000OeWvEAK

20042

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000knu9EAA

20460

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000sTxOEAU

20779

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

a2J8v000000sW0CEAU

20842

07/07/2023

TRUE

The Transactions on this Receipt were Voided.

NULL

FALSE

NULL

 

Related content

TAPSS-845/TAP-902: MS Team - To check the logic and any bad code practice for the list of flows mentioned and merge if required
TAPSS-845/TAP-902: MS Team - To check the logic and any bad code practice for the list of flows mentioned and merge if required
More like this
GA Consolidated Receipts EOFY Process
GA Consolidated Receipts EOFY Process
Read with this
Gift Administration Regression Testing
Gift Administration Regression Testing
More like this
TAP-1303: Update Batch Logic
TAP-1303: Update Batch Logic
More like this
2023-11-23 AQ Consultation Session 7
2023-11-23 AQ Consultation Session 7
More like this
TAP-902 CPU Time limit Analysis and Simulation
TAP-902 CPU Time limit Analysis and Simulation
More like this