Building a custom report in Online CRM - the goal is to prompt the user for start and end dates...
Everything works in VS.NET but getting an error during deployment:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred while trying to add the report to Microsoft Dynamics 365. Try adding the report again. If this problem persists, contact your system administrator.Detail: <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"> <ActivityId>a2bec99a-d506-4bbe-a753-dec285437cef</ActivityId> <ErrorCode>-2147188072</ErrorCode> <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" /> <Message>An error occurred while trying to add the report to Microsoft Dynamics 365. Try adding the report again. If this problem persists, contact your system administrator.</Message> <Timestamp>2017-07-12T20:41:59.6672234Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText i:nil="true" /> </OrganizationServiceFault>
After much research and trial and error found this:
Which states that this is not allowed:
- Named parameters in expressions such as DateFormat or NameSpace
Which is exactly what need.
Any ideas for a workaround?
Dima.
*This post is locked for comments