Hello Everyone,
I have am receiving a script error when saving a Purchase order in Dynamics 365. I reported the issue and shared the error with Microsoft. They advised me that there is custom code in our form, that is unsupported by the break-fix team. I have only used the API customization in advanced options.
Can anyone advise what the error may be caused by, and how to fix it? The log file is pasted below.
TypeError: Cannot read property 'length' of undefined
at Function.i.ValidateWorkOrderSchedule (xyz.dynamics.com/.../PurchaseOrder.Library.js:13:66501)
at Function.i.RunValidations (xyz.dynamics.com/.../PurchaseOrder.Library.js:13:45635)
at i.OnSave (xyz.dynamics.com/.../PurchaseOrder.Library.js:13:45874)
at Mu.executeFunction (xyz.dynamics.com/.../app.js
at xyz.dynamics.com/.../app.js
at o (xyz.dynamics.com/.../app.js
at Iu._executeIndividualEvent (xyz.dynamics.com/.../app.js
at Iu._executeEventHandler (xyz.dynamics.com/.../app.js
at Object.execute (xyz.dynamics.com/.../app.js
at O._executeSyncAction (xyz.dynamics.com/.../app.js