web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Disable RDL Sandboxing in CRM Online

(0) ShareShare
ReportReport
Posted on by

Hi All,

I'd like to create a report using some custom expressions in CRM Online, but I keep getting the error:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The report server has RDLSandboxing enabled and the Value expression for the text box 'Textbox82' contains a reference to a type, namespace, or member 'Environment' that is not allowed. Change the expression to include only allowed namespaces, types, and members.Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147188072</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>The report server has RDLSandboxing enabled and the Value expression for the text box 'Textbox82' contains a reference to a type, namespace, or member 'Environment' that is not allowed. Change the expression to include only allowed namespaces, types, and members.</Message>
  <Timestamp>2016-07-11T14:05:06.0869354Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>


Does anyone know how to disable RDL sandboxing in CRM Online?
MS have the following article https://msdn.microsoft.com/en-us/library/ee210591.aspx but this is fairly non-descript.

*This post is locked for comments

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    It is not possible to disable Sandboxing in CRM Online. Could you please provide an expression that you use in report?

  • Community Member Profile Picture
    on at

    I though that may be the case.

    My scenario is to hide an address field if the value is empty and instead, display the next line of the address:

    =IIF(IsNothing(First(Fields!new_billingcontact.Value, "Quote")),"Valued Customer" & Environment.NewLine(),First(Fields!new_billingcontact.Value, "Quote")) & 
    IIF(IsNothing(First(Fields!billto_line1.Value, "Quote")),"",Environment.NewLine() & First(Fields!billto_line1.Value, "Quote")) & 
    IIF(IsNothing(First(Fields!billto_line2.Value, "Quote")),"",Environment.NewLine() & First(Fields!billto_line2.Value, "Quote")) & 
    IIF(IsNothing(First(Fields!billto_line3.Value, "Quote")),"",Environment.NewLine() & First(Fields!billto_line3.Value, "Quote")) & 
    IIF(IsNothing(First(Fields!billto_city.Value, "Quote")),"",Environment.NewLine() & First(Fields!billto_city.Value, "Quote")) & 
    IIF(IsNothing(First(Fields!billto_postalcode.Value, "Quote")),"",Environment.NewLine() & First(Fields!billto_postalcode.Value, "Quote"))

    This is the expression that performs the action.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Try to replace Environment.NewLine() with "\r\n". That should work.

  • Verified answer
    Community Member Profile Picture
    on at

    Thanks for the prompt reply.

    What worked was "VbCrLf" but you pointed me in the right direction. Environment.NewLine() was the culprit.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans