Loading
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Set Up Trade Promotion Management
Repair Accrual Engine Deployment

Repair Accrual Engine Deployment

Check whether you deployed the Accrual Engine data kit outside Accrual Setup, and then restore the short component names that the Trade Promotion Management (TPM) accrual process requires.

Required Editions

Available in: Lightning Experience
Available in: Enterprise and Unlimited Editions where Trade Promotion Management, Data Cloud, and CRM Analytics are enabled
User Permissions Needed
To repair Accrual Engine deployment: CGCloud Business Admin
  1. Check the deployment log. Run this query.
    
    SELECT DataKitName, ComponentName, DeploymentAction, DeploymentStatus, DeploymentError, CreatedDate
    FROM DataKitDeploymentLog
    WHERE DataKitName = 'sfm_LiabilityAccrualsEngine'
    ORDER BY CreatedDate DESC
     

    If component names start with sfm_, you deployed the kit directly.

  2. Verify that the data transformations exist under their short names. Call these REST endpoints.
    GET /services/data/v68.0/ssot/data-transforms/ACCRUAL_DELTA_CALCULATION
    GET /services/data/v68.0/ssot/data-transforms/ACCRUAL_RULE_PROCESSING
     

    Both calls must return the data transformation. An ITEM_NOT_FOUND response confirms that the short component names are missing.

  3. In Data Cloud, open Data Lake Objects and confirm that these objects exist without an sfm_ prefix.
    • accrualrule__dll
    • accrualrule_stage__dll
    • accrualoutput__dll
    • accrualoutput_stage__dll
  4. Create the correctly named components. Select an option. Don’t combine them.
    Situation what to do
    Activate Accrual Engine is still Off From Setup, go to Accruals Setup, turn on Activate Accrual Engine, and wait until deployment finishes. See Enable the Accrual Engine.
    Activate Accrual Engine shows as on Run the deployment script for the accrual data kit from the CGCloudAddons static resource. Use this path when the engine is already activated. For example, to repair a wrong deployment or to deploy Accrual Engine fixes to the target Data Cloud environment.

    Both options deploy the same components with the same short API names. Deployment is asynchronous. Don’t rely on the immediate response. Poll DataKitDeploymentLog until every component row is successful and DeploymentError is empty.

  5. Before you run the accrual process, verify the deployment.
    1. Repeat the REST endpoint and Data Lake Object checks. Confirm that all checks pass.
    2. Confirm that both data transformations show as active.
    3. Run the accrual process and check row counts, not only job status.

      ACCRUAL_DELTA_CALCULATION writes the *_stage objects that ACCRUAL_RULE_PROCESSING reads. Rule processing alone can report success while writing zero rows.

  6. To remove the sfm_ duplicate components, open a Salesforce Support case. You can’t delete them yourself. Idle duplicates don’t break accruals, but they use Data Cloud storage and can confuse later troubleshooting.
    Include this information in your case:
    item details
    Org ID 15-character or 18-character ID
    Data Cloud Tenant ID From Data Cloud Setup
    Instance Org Instance code
    Objects to remove sfm_ACCRUAL_DELTA_CALCULATION, sfm_ACCRUAL_RULE_PROCESSING, and their record IDs
    Evidence DataKitDeploymentLog rows from step 1
    Ask Remove the data-kit lock on these data transformations, then delete them

    If the issue affects more than one org, list every org ID in the same case.

 
Loading
Salesforce Help | Article