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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 53 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans