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 365 | Integration, Dataverse...
Suggested Answer

TypeError: Cannot read property 'controls' of undefined

(0) ShareShare
ReportReport
Posted on by 95

Hello everyone, 

I'm getting the following error in the Quote Line Detail form while trying to change the values of Quantity and Unit Price field. The form was perfectly working before our system shifted to Unified Interface recently.

pastedimage1612963574814v1.png

pastedimage1612964436498v4.png



I found that the following onChange function in the QuoteLineDetailInitialization.js is being called on change of Quantity and Unit Price field values.


pastedimage1612963911777v3.png


The above lines of code then call the following functions in UIUtils.js 

pastedimage1612963852678v2.png



pastedimage1612966312592v1.png

The formFieldHasValue function gets field name in the formContext parameter instead of formContext object and 0(null) in the field parameter, that's why in the next line it can't retrieve data and gives the error. The same thing happens in disableAttribute function as it doesn't get formContext object in the first parameter. Both the files are system defined scripts so we are unable to make any changes there. I checked execution context as first parameter option from every function call in the form properties but the error persists. Can anybody help me with this ?


Thanks in advance.


I have the same question (0)
  • Suggested answer
    Henry J. Profile Picture
    5,237 on at

    Hi,

    Sorry to hear about this issue during your transition.
    Can you open a support request on https://admin.powerplatform.microsoft.com/support to get help on troubleshooting that issue?

    Henry

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans