book
                        
Article ID: KB0074534
                        
                    
                    
                        calendar_today
                        
Updated On: 
                    
                 
                
                        
                            
Description
                        
                        
                            Error: 'System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown' 
Cause: All entities are trying to be loaded using the one message method. 
 
                         
                     
                    
                    
                    
                    
                        
                            
                                
Resolution
                            
                            
                                Update the
 Scribe CRM Metadata Registry Settings. Steps below. 
- The best practice is to verify that you are running the most up to date version of the adapter. 
 - Before editing your registry, the best practice is to back up the registry. 
 
1) Locate HKEY_CURRENT_USER\Software\Scribe\Adapters\Microsoft Dynamics CRM 2011
2) Create a new string value (right click option) and name it DisableRapidMetadataLoad and set the value to "True" (casesensitive)  
3) Restart the Scribe Workbench and all the Scribe Services
Where HKEY_CURRENT_USER\Software\Scribe\Adapters\Microsoft Dynamics CRM 2011 should already exist if this is a Scribe Insight 7.9 installation. 
This setting should only be used if experiencing the above error, as it causes the metadata to load more gradually to avoid the timeout and therefore causes slower connections overall when metadata changes are detected but it avoids the all entities in one message method.
 There are other conditions that could cause a similar 'System.OutOfMemoryException' error that might be resolved by a hotfix for the TIBCO Scribe® Insight Adapter for Microsoft Dynamics 365 And CRM. See the release announcement for the hotfix for more information: 
https://support.tibco.com/s/article/TIBCO-Scribe-Insight-Adapter-for-Microsoft-Dynamics-365-And-CRM-5-5-5-hotfix-6-is-now-available 
                             
                         
                        
                    
                        
                            
                                
Issue/Introduction
                            
                            
                                The error 'System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown' occurs when trying to load Dynamics 365 (formerly Dynamics CRM) metadata