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)

Scripting error removal

(0) ShareShare
ReportReport
Posted on by 155

Hi,

*disclaimer: non trained or experienced person,  - please reply in VERY layman's terms.

I have some custom forms i have created for various entities (e.g: Order, Quote, etc..) however when saving the the below error appears.

-it doesn't seem to interfere or stop the form from progressing.

-It also doesn't appear to affect any function or form we use.

What is it, why is it appearing, and how can i either rectify it, or at least make the error notice not pop up?

Error log:

TypeError: Unable to get property 'Metadata' of undefined or null reference
at FS.SalesDocumentFormLoader.Library.GetOrderType (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/SalesDocument/SalesDocumentFormLoader.Library.js:1:5627)
at FS.SalesDocumentFormLoader.Library.FormApplies (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/SalesDocument/SalesDocumentFormLoader.Library.js:1:4301)
at FS.SalesDocumentFormLoader.Library.OnLoad (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/SalesDocument/SalesDocumentFormLoader.Library.js:1:904)
at Anonymous function (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/ResourceLoader.js?ver=1304408081:1:597)
at f (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/head.js?ver=1304408081:30:461)
at Anonymous function (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/head.js?ver=1304408081:30:2489)
at w (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/head.js?ver=1304408081:30:944)
at Anonymous function (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/head.js?ver=1304408081:30:2450)
at u (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/head.js?ver=1304408081:30:137)
at Anonymous function (https://<businessnamehere>.crm6.dynamics.com/%7B636467084470000154%7D/WebResources/msdyn_/Utils/head.js?ver=1304408081:30:2383)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Clem Profile Picture
    2,541 on at

    Hey,

    Does it happen on ootb forms as well ?

    Did you customize something else than just creating a new form (added some JS files, ?)

    If so please remove those and try again.

    A workaround if it doesn't impact the user experience (except the annoying popup)

    Each users can go to the Gear (top right) > Options > Privacy > "Never send an error report to Microsoft ..."

    Cheers,

    Clément

  • Community Member Profile Picture
    on at

    Hi Eturyu, have you got this issue resolved?. I am facing the same error

  • Verified answer
    Eturyu Profile Picture
    155 on at

    Hi All,

    Clement didn't give me the whole answer, but did put me on the right track to find it. I wish there was a "really helped a lot" button, other than just "verified"

    - It wasn't happening on OOTB forms, but it wasn't a windows error either so turning off the Microsoft notifications didn't fix it.

    Logic told me if it wasn't happening on OOTB forms, then it must be something that i had done to the forms. Either a field customized, or removed, or added that was causing the issue.

    Step 1

    I "saved as" each of the primary entity forms in their OOTB state to create new copies i can work on

    Step 2

    I added all the new fields that i had created, and tested. - no issue

    Step 3

    Edited existing fields to my liking, tested - no issue

    Step 4(and think this was what worked)

    Any field i didn't want to use, i made not visible by default on the form editor. I didn't remove the field this time.

    it all worked!

    To be clear, i'm completely self taught from you tube videos and this CRM forum. i'm sure there is a million better ways to fix this for someone who knows what they are doing.

    If i understand correctly, i think there was some background process or setting that  had relied on a box i removed from a form.

    TL;DR = Hide fields on your custom forms, don't remove them.  

  • Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    community.dynamics.com/.../236886

    Hi, based on that url maybe you should check weather the sec role already assigned in the form?

  • Clem Profile Picture
    2,541 on at

    Hi eturyu,

    I'm glad that you find out the issue.

    Indeed I didn't give you the whole answer but let's say I prefer doing that than giving the real answer "sometimes".

    I assume you learnt more investigating than having directly the solution :)

    Enjoy crm it's a really cool application!

    Clément

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