Indexation - step by step guide

‹ PrevPage 1 of 14 · Source p. 33Next ›
Comments

FOI 25/26-3590 DOCUMENT 13

Indexation - step by step guide

  • Support Reference
    • Indexation Dates
    • Indexation Solution
      • Who to contact

Step-by-step guide

  • Pre-Requisites
    • Install Salesforce Data Loader
    • Required Permissions
  • Import Budget Indexation Percentages
    • Import indexation % for funded support categories
  • Non-Funding Interval Budgets
    • Export Child Budget
    • Import the Child Budget
    • Export Parent Budget
    • Import the Parent Budget
  • Funding Period Budgets
    • Pause Release Funds Batch Job
      • Run batch Classes for Funding Interval Parent Budgets
        • Indexation Sequence Population
        • Indexation Run
        • Indexation Delete
  • Digital Notification
    • Pre-check
      • Indexation Notification Stage 1 Batch
      • Indexation Notification Stage 2 Batch
  • Post-Requisites
    • Activate Batch Update Released Funds

This document has been prepared to consolidate the information around Indexation process so that it can be supported in production.

Support Reference

This document has been prepared to consolidate the information around Indexation process so that it can be supported in production.

Indexation Dates

Indexation is not to be run as part of the July 25 release weekend activities.

Projected Indexation run date: 12/07/2025 To be actioned by redacted: s47F-personal privacy Rajeev

Indexation Solution

The following documents provide overall and detailed information about the Indexation solution.

Solution Design .

Dev Documentation that provides technical details of SF components and formula/calculation logic.

Technical Documentation. FB467B Indexation for Interval Funding Period - ACE Program : Dev documentation for Funding Interval logic can be found here

Who to contact

Domain Owner & Business Analyst: Elise / Pandu

Business Solution Lead: Vishal redacted: s47F-personal privacy

Solution Lead: Asha redacted: s47F-personal privacy / Christian redacted: s47F-personal privacy / Zamil redacted: s47F-personal privacy

Functional Consultant (check build scope/requirements) : Shahid redacted: s47F-personal privacy

Delivery Squad: Cactus

DevOps : Apoorv

Page 33 of 83

Step-by-step guide

Pre-Requisites

Install Salesforce Data Loader

Please download and install Data Loader from https://developer.salesforce.com/tools/data-loader .

Java JRE 17 or later is required.

The instruction is based on Data Loader version 60.0.1 and OpenJDK 21.0.2 2024-01-16.

Required Permissions

A user will require the following permission sets for this task:

  • InternalEditCatalogueLoader
  • InternalEditBudgetIndexation
  • InternalEditBudgetUpdate
  • InternalEditRecurringClaims

NOTES:

  • Add Edit Access in InternalEditBudgetIndexation permission set for SequenceNumber__c field.
  • Ensure to check the status of Auto Extension Batch scheduled to run at 10:03 PM for the night. If the indexation process is still going on Saturday 9PM, please remove the schedule and add it back once the Indexation is completed.

Import Budget Indexation Percentages

Import indexation % for funded support categories

Check if the indexation % for current year does NOT exist before you try to import. select Id, Name from BudgetIndexation__c where IndexationVersion__c=’ FY25-26 Indexation ’

Please contact Catus team if you see any records.

Upload csv file that contains Indexation % to be applied to funded support categories.

If errors, need to troubleshoot and go back to person providing data to clarify/resolve

Budget Indexation version(IndexationVersion__c) of the uploaded Indexation file to be noted for future reference.

Please make sure you remove BudgetCategory__r.Name from the CSV.

Make sure you added the column BudgetCategory__c in CSV file with correct Id from the Sandbox.

How to get Id:

  • Click Upsert in Data Loader
  • Login to a sandbox or production

Page 34 of 83

Step 2: Select Salesforce object

Batch size: 200 Start at row: 0 current API usage for the org: 20,837 API Limit for the org: 200,000

  1. Retrieve csv file from repository and save to local: FILE: P:\Sales\MsDatFiles\JUN26\BudgetIndexation_c_csv_release\BAU_266_O.csv OICIO / salesforce / pace / gitlab
  2. Confirm that the ‘View’ has been added in the new BudgetCategory_c column for the relevant environment. Please confirm with Oliver Lin <redacted: s47F>
  3. Select BudgetIndexation_c object and your CSV file which we have just saved in previous steps.
  4. Query below and then click OK for the pop up below. (You can also filter by the cutoff date). If you see any budget category is missing, please check with User (Unknown) <redacted: s47F> Rajeev
select BudgetCategory_r.Name from vlocity_ins_ClaimCoverage_c
group by BudgetCategory_r.Name
order by BudgetCategory_r.Name
  1. Click Next and then click OK for the pop up below.

[Image of Data Selection window with ‘Initialization succeeded’ message and OK button]

[Image of file browser window showing C:\Users\Pali\Documents\2024 Indentation\324 Sample.xlsx]

Back | Next | Finish | Cancel

Page 35 of 35

9. Select Name and click Next

Load Upstarts

image

Step 2: Choose your field to use for matching

To match on Budgetdedication__c, use either the Id field or an external Id field.

Select the field for matching on Budgetdedication__c:

| Field | |—|—| | Id | | | Name | |

< Back | Next > | Finish | Cancel |

10. Select the Id for BudgetCategory__c, then click Next

image

Step 3: Optional: rename using field

To rename a field, enter a new name in the Field Name column. If you do not enter a new name, the field name will be the same as the API name.

Relationship Related Object Lookup Field of Related Object
BudgetCategory__c BudgetCategory__c
Owner Owner

< Back | Next > | Finish | Cancel |

This document was released under the Freedom of Information Act 1982 by the National Disability Insurance Agency.

Page 36 of 83

Click Create or Edit a Map

<start_of_image>

Click Auto-Match Fields to Columns. Make sure there is no blank value in Field Name/Relationship column. Then click OK

Click Next and then select a folder for import results.

  • Load Upserts

Step 4: Finish Batch size: 200 Start at row: 0 Current API usage for the org: 349 API Limit for the org: 250,600,000 API version: 6.0

Folder: C:\Users\Felix_Documents\2024 indexation\output

Browse…

<end_of_image>

FOI 25/26-3590

  1. Click Finish and Yes from the pop up.

— image_of_pop_up_window —

!Warning!

You have chosen to add new records and/or update existing records. The action you are about to take cannot be undone. Are you sure you want to proceed?

< Yes > < No >

< Back > < Next > < Finish > < Cancel >

  1. Check the result.

Step 4: Finish

— image_of_success_pop_up —

!Operation Finished!

API The operation has fully completed. There were 1 successful upsets and 0 errors.

< View Successes > < View Errors > < OK >

Fo Loading: upset

Processed 1 of 1 records with 1 successes and 0 errors.

< Cancel >

  1. POST Step verification

a. Go to the server console and query:

SELECT Id, BudgetCategory, r_Name, NSW, c_OLD, c_VIC, c_ACT, c_SA, c_WA, c_TAS, c_NT, c_R, c_VR, c_S
FROM BudgetIndexation_c WHERE IndexationVersion_c = FY20-21 Indexation

b. See results aligned with the csv.

Non-Funding Internal Budgets

Due to the system design, we have to update child budget first and then parent budget.

Export Child Budget

  1. Click Export

— image_of_salesforce_data_loader —

  • Salesforce Data Loader 60.1 - info-app@Sales.com

  • Insert * Update * Upsert * Delete * Updates * View Data * Export * Export All

Please choose an action from the menu.

Page 38 of 83

2. Select vlocity_ins__ClaimCoverage__c, target CSV file and then click Next

| MP Expot x |

Step 2: Select Salofarce object

Chatty eecpurta sects OC

Camant A asaqe torts cvg: 622

AFI Lirret far tie eng: 232 B00 | | aPlverrione BLO |

| tad abeorca elect | | Cito all Seboforce ckpect |

| [2 hoary, ins, Clase overage 0 |

Choosea teaget for mctractiam: | astrect.coy Ereeta—

3. Replace 2025-06-30 with the cut-off date and paste the query below. And then click Finish.

Please note ParentBudget__c is not required for import. You can use it to select few records for test /verification.

select Id, IndexationVersion__c, ParentBudget__c

from vlocity_ins__ClaimCoverage__c

where ParentBudget__c !=null and StartDate__c <=2026-06-30 AND EndDate__c >2026-06-30

and (ParentBudget__r.UseFundingInterval__c='None' OR ParentBudget__r.UseFundingInterval__c=null  )

order by ParentBudget__c

4. Click Yes

Warning

You have chosen to perform an export. Click Yes to begin. Do you want to proceed?

[Yes] [No]

Page 39 of 83

This document was released under the Freedom of Information Act 1982 by the National Disability Insurance Agency.

FOI 25/26-3590

  1. Click View Extraction and Open in external program to update INDEXATIONVERSION__C

  2. Update the IndexationVersion__c to be the same value as BudgetIndexation__c.IndexationVersion__c. See example below

C > Tools > DataLoader > v6.0.1 > extract.csv

1 “ID”, “INDEXATIONVERSION__C” 2 “a2M92000002FACPEA”, “FY23Q3.1” 3 “a2M92000002FACQEA”, “FY23Q3.1” 4 “a2M92000002FwybEAC”, “FY23Q3.1” 5 “a2M92000002FwycEAC”, “FY23Q3.1” 6 “a2M92000002ShalEAS”, “FY23Q3.1”

  1. Save as the Child Budget.csv and we are going to upload it back.

Import the Child Budget

  1. Click Update

salesforce data loader data loader

[Image of Salesforce Data Loader window]

[Image of buttons: Reset, Update, Upsert, Delete, Undlete, Find Delete, Export, Export All]

Please choose an action from the menu.

Page 40 of 83

2. Select vlocity_ins__ClaimCoverage__c and Child Budget.csv

Select vlocity_ins__ClaimCoverage__c and Child Budget.csv we saved in last step. Click Next

3. Click OK in the pop-up

Click OK in the pop-up

Data Selection
Initialization succeeded.
The CSV file has 5 rows.

Batch size: 200
Start at row: 0
Current API usage for the org: 1,231
API Limit for the org: 252,600,000
API version: 60.0

4. Click Next for lookup field

Click Next for lookup field

Page 41 of 83

5. Click Create or Edit a Map

document FOI 25/26-3590

6. Click Auto-Match Fields to Columns. Make sure there is no blank value in Field Name/Relationship column. And then click OK

document FOI 25/26-3590

7. Click Next and select a folder to save the output, then click Finish

8. Click Yes

document FOI 25/26-3590

9. Check the result to see if any error.

document FOI 25/26-3590

Page 42 of 83

Insurance Disability National the by 1982 Act Information of Freedom the under released was

FOI 25/26-3590

  • File for the metadata at this path in the repo: PACE_Core/force-app/main/default/customMetadata/GeneralConfiguration.
  • Execute script to trigger the batch framework at path: PACE_DataFiles/Anonymous Apex Scripts/Indexation/P2B-2239.apex
  • Confirm all jobs are successful, navigate to Setup Apex Jobs and look for Batch_CreateIndexationStaging. If no failures, then can move to next script.

a. Positive Scenario, move to next step:

![image.png]

b. Negative Scenario: Re-run script

![image.png]

Indexation Sequence Population

  1. This first script is used to populate the SequenceNumber_c field on IndexationStaging_c records.
  2. Take note of the Integer threadsSize. This is a variable set to 60 to let us how many threads we want to make. This consistent throughout the execution.
  3. Execute script at PACE_DataFiles/Anonymous Apex Scripts/Indexation/P2B-32250/IndexationSequencePopulation.apex
  4. This is a batch job, so it will run in batches of threadsSize records.
  5. Confirmation Step, run for each sequence numbers to confirm they are sized threads:

Query for SequenceNumber_c

SELECT Id, SequenceNumber_c, format(lastModifiedDate) FROM IndexationStaging_c WHERE SequenceNumber_c = 1
  1. If any errors are returned from the batch, can query the exception logs to get more detail and fix.

Query for failed Sequence Number Updates

SELECT Id, ApplicationName_c, Component_c, ExceptionCode_c, ExceptionDetail_c, CreatedDate
FROM ExceptionLog_c
WHERE ApplicationName_c = 'Indexation' AND MethodName_c = 

ODBC BY CreatedDate

Indexation Run

Page 44 of 43

FOI 25/26-3590

  1. The Indexation Run script is used to trigger the 5 Integration Procedures with SequenceNumber variables from 1-5. If need be, we can retrigger and single thread in this script.

  2. Noting we need to set the limitCount at the beginning here to determine how many records to update per thread.

  3. We need to update sequenceStart and sequenceEnd to create thread. Example sequenceStart = 1 and sequenceEnd = 5 will create 5 threads sequence number from 1 to 5. Repeat this step until we have total 20 threads running. Please note, keep the range lower than 10 threads per execute to avoid SOQL limit error.

  4. Execute script at: PACE_DataFiles/Anonymous Apex Scripts/Indexation/P2B-3250IndexationRun.apex

  5. Can check the apex jobs page to ensure no governing limits are hit for each queueable job that is getting created.

  6. We can check on the progress of the staging records and view any errors via the following query:

Query for helper records

SELECT Id, Status__c, RetryCount__c, ExceptionDetails__c FROM IndexationStaging__c WHERE status__c = "Done!"
  1. If any limits are hit in apex jobs page, we can retrigger any thread. To determine which thread has hit limits, run below query and determine which one is not changing

Find out which thread has hit limits

SELECT count (Id) FROM IndexationStaging__c WHERE Status__c ='New' AND SequenceNumber__c = 1 // or any

Indexation Delete

  1. This script is used to remove any of the IndexationStaging__c records which have been marked as ‘Done’, that is, they have been successfully indexed.
  2. Confirm all jobs are no longer running then delete and IndexationStaging__c records that are Done

a. Execute script to trigger the delete batch framework at path: PACE_DataFiles/Anonymous Apex Scripts/Indexation/P2B-3716 DeletelndexationStagingWithDoneStatus.apex

Digital Notification

Pre-check

  1. Confirm there is no records in IndexationNotification__c object, delete all if any.
  2. Confirm the indexation for funding period and non-funding period is done.

Indexation Notification Stage 1 Batch

  1. Execute the batch class in developer console:

PACE_DataFiles\Anonymous Apex Scripts\Indexation\P2B-3648.apex

  1. Monitor the logs by querying ExceptionLog__c object below. Fix the issues if any.
SELECT Id, ApplicationName__c, Component__c, ExceptionCode__c, ExceptionDetails__c, CreatedDate
FROM ExceptionLog__c
WHERE ApplicationName__c = 'Indexation' AND Component__c = 'IndexationNotificationStagelBatch'
ORDER BY CreatedDate DESC
  1. Monitor the batch job status in Apex Jobs. Fix the issues if any.

Indexation Notification Stage 2 Batch

  1. Execute the batch class in developer console:

PACE_DataFiles\Anonymous Apex Scripts\Indexation\P2B-3649.apex

  1. Monitor the job and it log errors in ExceptionLog__c object. Fix the issues if any.

Page 45 of 83

This document was released under the Freedom of Information Act 1982 by the National Disability Insurance Agency.

Post-Requisites

Activate Batch Update Released Funds

Manually activate the latest version of “Batch Update Released Funds” after the indexation job execution completed

SELECT Id, ApplicationName__c, Component__c, ExceptionCode__c, ExceptionDetails__c, CreatedDate
FROM ExceptionLog__c
WHERE ApplicationName__c = 'Indexation' AND Component__c = 'IndexationNotificationStage2Batch'
ORDER BY CreatedDate DESC

This document was released under the Freedom of Information Act 1982 by the National Disability Insurance Agency.

Page 46 of 83

Comments

Loading comments…

What kind of comment is this?
Add a comment