Loading

Error thrown while simulating a Transaction Journal.

Data pubblicazione: Jun 12, 2025
Descrizione

Getting the error while trying to execute the following Payload 

Payload:

{
  "transactionJournals": [
    {
      "PartnerId": "0ld7R0000010XXXXX",
      "MemberId": "0lMQJ0000000UXXXXX",
      "ActivityDate": "2025-03-01T00:00:00Z",
      "JournalTypeId": "0lE7R00000001XXXXX",
      "JournalSubTypeId": "0lS7R0000010wXXXXX",
      "LoyaltyProgramId": "0lp7R000000PBXXXXX",
      "TransactionAmount": 23.96
    }
  ],
  "runSetting": {
    "isSimulation": true
  }
}

Error:

{"message":"Error ID : 1242446057-206164 (-325050284)","processResult":null,"programName":"Loyalty Program Name","simulationResults":null,"status":false}

Risoluzione

When a Loyalty Program Process Rule includes an Update action that is supposed to create a Transaction Journal, the Transaction Journal isn't created, and an error will occur during processing or simulation.

Steps to Reproduce:

  1. Select a Loyalty Program Process and navigate to Loyalty Program Processes.
  2. Choose a Loyalty Program Process with the process type set to Transaction Journal.
  3. Click "New" on Loyalty Process Rules and provide the necessary information.
  4. In the Rule Steps of the Loyalty Process Rule, click the Plus (+) icon, and in the Add Action section, choose "Credit Action"
  5. Provide the values for Action Name, Type and Record Id.
  6. click the Plus (+) icon, and in the Add Action section, choose "Create or Update Records"
  7. Try to update any field on Transaction Journal or any related entity like an Account.
  8. Click "Done," then "Save and Activate" the Loyalty Process Rule.
  9. Try creating a Transaction Journal which will trigger the process rule and observe the error while simulation or processing the Transaction Journal. 

The error occurs as we're attempting to update a Transaction Journal or related entity where Transaction Journal that hasn't yet been created, resulting in a null Transaction Journal ID. 

As a resolution, please ensure that the Transaction Journal is created before performing any updates.

Numero articolo Knowledge

005036310

 
Caricamento
Salesforce Help | Article