Skip to content
+1-888-319-3663

HELP ARTICLE

Could not save record. Deleted object would be re-saved by cascade


When trying to register a CRM real-time map receiving error saying:

Could not save record. Deleted object would be re-saved by cascade (remove deleted object from associations).

Cause

This error is caused by a CRM field being removed from CRM, while still referenced in the real-time query.

Resolution

If you know which fields were deleted:

  1. Add the fields back into CRM with the exact same schema.
  2. Re-register the map
  3. Optional: remove the field from the real-time query then delete the field out of CRM.

If you do not know which fields were deleted:

  1. You can run this script against your SmartConnect database to find the FetchXml the real-time query is returning. You will need to change Account with the display name of the entity the trigger is on.

Use SmartConnect

select FetchXml, EntityDescription, Registered

From [MsCrm2011RealTimeDataSource]

Inner Join [RealTimeDataSourceBase] ON [MsCrm2011RealTimeDataSourceId] = [RealTimeDataSourceBaseId]

Where [EntityDescription] =’Account’

  1. You will need to go through the XML and look for custom fields that are no longer in CRM. These are the fields you need to add back.
  2. Once the fields are back in CRM register the map.

RECENT POSTS


Use the REST Connector to parse nested Value Arrays
SmartConnect email task fails with error: An invalid character was found in the email header
Does SmartConnect import into Avalara Avatax software
Could not initialize a collection when launching SmartConnect
ERROR [HY000] [Microsoft][ODBC Excel Driver]General error Unable to open registry key when you open a SmartConnect map.

POPULAR POSTS


SSL Security error using OLEDB Connection
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms
Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))
The server process could not be started because the configured identity is incorrect.
Using WINSCP and a task to upload or download files from an SFTP site

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.