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 |
-
Check the deployment log. Run this query.
SELECT DataKitName, ComponentName, DeploymentAction, DeploymentStatus, DeploymentError, CreatedDate FROM DataKitDeploymentLog WHERE DataKitName = 'sfm_LiabilityAccrualsEngine' ORDER BY CreatedDate DESCIf component names start with
sfm_, you deployed the kit directly. -
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_PROCESSINGBoth calls must return the data transformation. An
ITEM_NOT_FOUNDresponse confirms that the short component names are missing. -
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
-
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.
-
Before you run the accrual process, verify the deployment.
- Repeat the REST endpoint and Data Lake Object checks. Confirm that all checks pass.
- Confirm that both data transformations show as active.
-
Run the accrual process and check row counts, not only job status.
ACCRUAL_DELTA_CALCULATIONwrites the*_stageobjects thatACCRUAL_RULE_PROCESSINGreads. Rule processing alone can report success while writing zero rows.
-
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.
