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)

Error when opening forms with parameters using Xrm.Utility and Xrm.Navigation

(0) ShareShare
ReportReport
Posted on by

Hi All,

I'm getting the following error when attempting to open any forms when specifying parameters. This is impacting quick create, and full page forms.

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: CRM Parameter Filter - Invalid parameter 'custom_contactId=77614C39-9E1E-E911-A96A-000D3AD24A0D' in Request.QueryString on page /form/Data.aspx
The raw request was 'GET /form/Data.aspx?_CreateFromId=77614c39-9e1e-e911-a96a-000d3ad24a0d&_CreateFromType=2&_searchText=&custom_contactId=77614C39-9E1E-E911-A96A-000D3AD24A0D&custom_contactName=Porky%20Pig&custom_ismovement=true&custom_movementType=Identify&etc=4201&formid=&hidecommandbar=true&setLastViewed=false&showglobalquickcreate=true' called from custom-dev.crm6.dynamics.com/.../page.aspx.
at Microsoft.Crm.Application.ParameterFilter.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source, EntityType pageEntityType, FormAdditionalAllowedParameters additionalAllowedParameters)
at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp)
at Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters()
at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8D315D64Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>17e6011c-b6a8-4ae0-86ec-af4763e7b12a</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; System.InvalidOperationException: CRM Parameter Filter - Invalid parameter 'custom_contactId=77614C39-9E1E-E911-A96A-000D3AD24A0D' in Request.QueryString on page /form/Data.aspx
The raw request was 'GET /form/Data.aspx?_CreateFromId=77614c39-9e1e-e911-a96a-000d3ad24a0d&amp;_CreateFromType=2&amp;_searchText=&amp;custom_contactId=77614C39-9E1E-E911-A96A-000D3AD24A0D&amp;custom_contactName=Porky%20Pig&amp;custom_ismovement=true&amp;custom_movementType=Identify&amp;etc=4201&amp;formid=&amp;hidecommandbar=true&amp;setLastViewed=false&amp;showglobalquickcreate=true' called from custom-dev.crm6.dynamics.com/.../page.aspx.
at Microsoft.Crm.Application.ParameterFilter.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source, EntityType pageEntityType, FormAdditionalAllowedParameters additionalAllowedParameters)
at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp)
at Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters()
at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8D315D64</Message>
<Timestamp>2019-01-23T03:04:23.4317872Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>17e6011c-b6a8-4ae0-86ec-af4763e7b12a</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.InvalidOperationException: CRM Parameter Filter - Invalid parameter 'custom_contactId=77614C39-9E1E-E911-A96A-000D3AD24A0D' in Request.QueryString on page /form/Data.aspx
The raw request was 'GET /form/Data.aspx?_CreateFromId=77614c39-9e1e-e911-a96a-000d3ad24a0d&amp;_CreateFromType=2&amp;_searchText=&amp;custom_contactId=77614C39-9E1E-E911-A96A-000D3AD24A0D&amp;custom_contactName=Porky%20Pig&amp;custom_ismovement=true&amp;custom_movementType=Identify&amp;etc=4201&amp;formid=&amp;hidecommandbar=true&amp;setLastViewed=false&amp;showglobalquickcreate=true' called from custom-dev.crm6.dynamics.com/.../page.aspx.
at Microsoft.Crm.Application.ParameterFilter.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source, EntityType pageEntityType, FormAdditionalAllowedParameters additionalAllowedParameters)
at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp)
at Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters()
at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7735FA52</Message>
<Timestamp>2019-01-23T03:04:23.4327846Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

This does not happen when I attempt to open the same forms without parameters. This issue occurred today and the custom code that was opening these forms has not changed, nor have the form parameters.

This is simmilar to 

https://community.dynamics.com/crm/f/117/t/307660

Any assistance would be appreciated.

*This post is locked for comments

I have the same question (0)
  • Pawar Pravin  Profile Picture
    5,237 on at

    Hi James,

    It looks like you are passing lookup parameter of contact entity to the Xrm.Utility method. While passing parameter of contact lookup no need to use entity type parameter.

    Ex:

               var contactid = contact[0].id;

               var contactname = contact[0].name;

               contactid = contactid.replace('{', '').replace('}', '');

               parameters["lookupname"] = contactid;

               parameters["lookupnamename"] = contactname;

    Please do refer following url for reference:

    mahadeomatre.blogspot.com/.../xrmutility-functions-openentityform.html

  • James Haynzo Profile Picture
    on at

    Thanks Pravin,

    I understand the above, I'm using the guid for more than just populating a single lookup. As I said in my original post - This code has been working, and remained untouched for days and has since ceased functioning without reason. The only parameter that does not appear to be having issues is the single boolean value that is being passed.

    Further, if I remove the guid, it grumbles about every other string based parameter I specify. 

  • Verified answer
    James Haynzo Profile Picture
    on at

    This issue kept resolving itself, and popping back up through out the day. It just appears to be issues with SafeStrings. I have modified my code to no longer use them to work around this issue.

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