Resolving "System.OutOfMemoryException" for the TIBCO Scribe® Insight Adapter for Microsoft Dynamics 365 And CRM or Publisher
book
Article ID: KB0073102
calendar_today
Updated On:
Description
When connecting to the Adapter for Microsoft Dynamics 365 And CRM or Publisher the metadata for the CRM organization will be synchronized. If there are many tables or the CRM organization is highly customized this can cause the metadata payload to be too large and the following exception would be received. "System.OutOfMemoryException."
Resolution
If receiving the "System.OutOfMemoryException" for the Adapter or Publisher, omitting the MSDYN_ tables or other non-required tables for integrations from the metadata XML file will reduce the size of the metadata payload and resolve the issue.
- On the TIBCO Scribe® Insight server navigate to the drive where Insight is installed > Program Files (x86) > Scribe > Locate the “DynamicsCRMAdapter2011Metadata.xml” file and open it in a text editor as administrator.
- Locate the section "<!-- Omit these objects -->".
- Add the following to omit all of the msdyn tables - <BusinessEntityTableMetadata TableName="msdyn_*" omit="true"/>
- Add additional lines using the sample above changing the "TableName" to omit other tables that are not needed.

- Run the below SQL script against the Insight Internal Database to delete the metadata entries for your Dynamics 365 and CRM adapter connection from the SCRIBE.ADAPTERMETADATA table. Deleting the entries in this table will allow the metadata to be reloaded upon the next connection to the CRM organization
Delete From SCRIBE.ADAPTERMETADATA
Where NAME IN ('Adapter for Dynamics 365 and CRM','DynamicsCrm 2011 Adapter','Adapter for Dynamics CRM') and IDENTIFIER<>'DEFAULT';
- Re-connect the Dynamics 365 and CRM Adapter or Publisher to reload the metadata and verify the "System.OutOfMemoryException." is resolved.
NOTE: Any time the Adapter for Microsoft Dynamics 365 And CRM is updated the DynamicsCRMAdapter2011Metadata.xml file will revert back to the original state and this procedure to remove tables will need to be completed again.
Issue/Introduction
Steps to omit tables from CRM metadata retrieval in TIBCO Scribe® Insight to resolve "System-OutOfMemoryException" error.
Feedback
thumb_up
Yes
thumb_down
No