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

Skip to end of banner
Go to start of banner

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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 12 Next »

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)

  2. Process Builder - Description - HOLD RECEIPT (v4)

  3. Flow - AQC Donor Contact Type Auto-Updater (v2)

  4. Flow - (Affinaquest) Update Gift Designations (v1)

 Screenshots of the errors that were encountered

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.

 Screenshot

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

 Screenshot

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.

SELECT COUNT() FROM AQB__Transaction__c
WHERE DAY_ONLY(AQB__Receipt__r.CreatedDate) = 2023-07-07
  AND AQB__Batch__r.RecordTypeId='0124a0000004KatAAE'
  AND AQB__OriginatingBatchItemTransaction__r.AQB__BatchItemID__r.AQB__ApproveReceipt__c=TRUE

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):

Transaction Description field IS NOT NULL
AND Transaction Description field ISCHANGED

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.

SELECT COUNT() FROM AQB__Transaction__History
WHERE Field='AQB__Description__c'
AND ParentId IN (
  SELECT Id
  FROM AQB__Transaction__c
  WHERE DAY_ONLY(AQB__Receipt__r.CreatedDate) = 2023-07-07
)

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:

SELECT COUNT()
FROM AQB__Gift__History
WHERE Field='AQB__Account__c'
AND DAY_ONLY(CreatedDate)=2023-07-07
AND ParentId IN (
  SELECT AQB__Gift__c
  FROM AQB__Transaction__c
  WHERE DAY_ONLY(AQB__Receipt__r.CreatedDate) = 2023-07-07
)

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 Transactions

 Restored Receipts: From Voided to Unvoided

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

  • No labels