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)

Use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

(0) ShareShare
ReportReport
Posted on by 585

Getting below error during creation of case :

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

 

0383.error.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    Are you receiving this error every time you trying to submit the case form ?
    Have you use standard (OOB entity case form) or you customized it with Javascript or other data-manipulations?  Its better to not add any new inputs, as they anyway will not be counted by Portal Entity Form server side.

    In rear cases that error can mean that you try to create case with unsafe symbols like < or > in the Case Description fields. This can be fixed by setting DisableValidationWebTemplate site setting to True.




  • Summer Garg Profile Picture
    585 on at

    Yes, I have one lookup field on case form which I then converted into drop-down and apply some filter on this drop-down using JS.

    One thing to note : if I removed this JS on field which filtered the drop-down then it's working fine

    But my JS is also right. It's just filtered the drop-down on load of case form.

    Seems this is some kind of security issue.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Can you share you js please? It looks like your js is making a page refresh which is not acceptable by portal.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Also, try setting the key shared above "DisableValidationWebTemplate"

  • Summer Garg Profile Picture
    585 on at

    Yes, i also tried this key but again getting same error

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Can, you try the below setting on your web page and see if it helps?

    portalpagevalidation.png

  • Schjoermann Profile Picture
    20 on at

    Did anyone come with a solution for this issue? I have exact same issue, have a JS that filters a lookup rendered as a dropdown.

    If I select some of the records from the dropdown I get exact same error as describe above, for others I don't get any error.

    How to stop the error?

  • Nicolas FLEURENT Profile Picture
    5 on at

    Hello,

    I have exactly the same issue. Dis you find a fix ?

    I tried the solution proposed by Ravi Kashyap but it doesn't fix.

    Thanks,

    Nicolas

  • Suggested answer
    Schjoermann Profile Picture
    20 on at

    Hi Nicolas,

    I came to the conclusion that this is a limitation of lookup fields rendered as dropdowns in the portal.

    The dropdown list will only show the first 5000 records.

    So if you have 7500 records in the entity you are looking up, and you filter the list to only show 7. If the one you then select from the 7, is not part of the first 5000 in the original list you will get the above error.

    I created a case for Microsoft on this issue, and they say that this is by design.

    Best Regards,

    Nicolai

  • TomV05 Profile Picture
    5 on at

    Nicolai - did you ever hear anything from Microsoft or find a fix?

    Tom

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