You may receive an error when you try to upload a custom FetchXML report into a Microsoft Dynamics CRM Online organization:
Error Uploading Report An error occurred while trying to add the report to Microsoft Dynamics CRM.
Try this action again. If the problem Continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally you can contact Microsoft Support.
Microsoft Dynamics CRM Online uses RDL Sandboxing that prevents reports from uploading or running if they contain code that uses disallowed methods.
Reports in Microsoft Dynamics CRM Online run in sandbox mode, and to do this, RDL sandboxing is enabled in Microsoft SQL Server Reporting Services. Therefore, certain features might not be available in Microsoft Dynamics CRM Online. For example, custom code in your report definition will not work. For more information, see Enabling and Disabling RDL Sandboxing.
When RDL Sandboxing is enabled, the following features are disabled:
Custom code in the <Code> element of a report definition
RDL backward compatibility mode for SQL Server 2005 Reporting Services custom report items
Named parameters in expressions such as DateFormat or NameSpace
When RDL Sandboxing is enabled, only certain classes and methods can be used in a custom FetchXML report. The following is a list of the classes that are allowed, and beneath each class are the available methods for use in Microsoft Dynamics CRM Online reports:
Microsoft.VisualBasic.Interaction (For more information, see: Interaction)
Microsoft.VisualBasic.Information (For more information, see: Information)
Microsoft.VisualBasic.Strings (For more information, see: Strings)
Microsoft.VisualBasic.DateInterval (For more information, see: DateInterval)
Microsoft.VisualBasic.DateAndTime (For more information, see: DateAndTime)
Microsoft.VisualBasic.Financial (For more information, see: Financial)
Microsoft.VisualBasic.Conversion (For more information, see: Conversion)
System.Text.RegularExpressions.Match (For more information, see: Match)
System.Text.RegularExpressions.Regex (For more information, see: Regex)
FetchXML, CRM online, DIY