Loading

Best Practices for Deleting an Object Field Referenced in CRM Analytics Assets

Publiceringsdatum: Oct 9, 2026
Beskrivning

Before deleting a custom or standard object field in Salesforce, verify that the field is not referenced anywhere in your CRM Analytics (CRMA) environment. CRM Analytics does not reliably warn you when a field is tied to a Data Sync connection, Recipe, Dataflow, Dataset, Lens, or Dashboard.

Deleting the field first can break scheduled syncs, recipes, and downstream dashboards, sometimes without a clear error pointing back to the root cause.

Lösning

This article explains how to audit and remove CRM Analytics (CRMA) references to a Salesforce object field before you delete it, and how to recover if the field was already deleted and errors occur in Data Sync or recipes.

Step 1: Audit Field Usage in CRM Analytics

Before making changes in Setup, review each layer where the field might be used:

  1. Data Sync / Data Manager (Connect tab): Navigate to App Launcher > Analytics Studio > Data Manager > Connection > your connection > object and verify if the field is selected for sync.
  2. Recipes / Dataflows: Open all recipes or dataflows that use the object and inspect transformation nodes (for example, Filter, Formula, Aggregate, and Bucket nodes) for the field's API name.
  3. Datasets: Ensure no dataset column maps to the field via an active sync.
  4. Lenses / Dashboards: Search the dashboard widget JSON for the field's API name in columnMap entries. Also, check dashboard URL actions for references using the {{row.<field_api_name>}} syntax.
  5. App Templates: If the field or object is part of a packaged App Template, confirm no template configuration or metadata references it. Note: Standard Setup dependency checks won't surface template dependencies.

Step 2: Remove CRM Analytics References Before Deleting the Field

  1. Deselect the field from Data Sync for the relevant connection or object.
  2. Edit or remove recipe or dataflow nodes that reference the field.
  3. Update or remove dashboard widgets or lenses that reference the field.
  4. Run a Full Sync (not incremental) on the object, re-run the recipe, and confirm it completes without errors.
  5. Once all references are cleared, delete the field in Salesforce Setup.

What to Do If the Field Is Already Deleted and Issues Arise

If the field was deleted prematurely and causes errors in Data Sync or recipes (for example, "field no longer available"), follow these steps:

  1. Navigate to Setup > Object Manager > Object > Fields & Relationships > Deleted Fields (Classic).
  2. Undelete the field. It cannot be removed from Data Sync while in the recycle bin.
  3. Deselect the field from the Data Sync field list.
  4. Run a Full Sync, re-run the recipe, and confirm downstream dashboards refresh correctly.
  5. Once all references are cleared, permanently delete the field by purging it from the recycle bin, if necessary.
Knowledge-artikelnummer

005460490

 
Laddar
Salesforce Help | Article