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 :
Small and medium business | Business Central, N...
Answered

Malfunction when I clicked on fields

(0) ShareShare
ReportReport
Posted on by

Hi,

In BC 2019 w2 OnPremise we have some problem when we work with te aplicattion. 

Sometimes, when clicking on a calculated field or on a list field that the tab should show me, the application stops.
We have observed, in the event viewer, that errors occur with the javascript files and we don´t understand why.
Any idea or help to resolve.

Regards,

 
  • Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    Can  you post the call stack from the event log. Is this a new installation or a technically upgraded environment (binaries replacement within the cumulative update range), etc. We do sometimes see that some DLL files are locked. 

    Running command within PowerShell GCI -path %programfiles%\microsoft dynamics 365 Business Central\160  - Recurse | Unblock-File and similar to c:\inetpub and %programfiles(x86) may help. 

    Hope it does help.

    Thanks.

  • Community Member Profile Picture
    on at

    Hi Marco,

    This is a new installation.

    I try to run the commands that you say.

    This is the event log:

    Error al acceder al sitio web

    Unhandled error occurred on a browser or device client:

    {

     "clientInfo": {

       "platform": "Win32",

       "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37",

       "browserLanguage": "es"

     },

     "message": "Cannot read property 'length' of undefined",

     "pageUrl": "localhost:8080/.../

     "originalError": {},

     "detailedMessage": "    at t.getCommandButtonProps (localhost:8080/.../desktopTSFramework.js    at t.onRenderCommandButton (localhost:8080/.../desktopTSFramework.js    at localhost:8080/.../desktopTSFramework.js    at Ni (localhost:8080/.../logicalclientdll.js    at Ga (localhost:8080/.../logicalclientdll.js    at Qa (localhost:8080/.../logicalclientdll.js    at Au (localhost:8080/.../logicalclientdll.js    at Iu (localhost:8080/.../logicalclientdll.js    at Su (localhost:8080/.../logicalclientdll.js

     "silent": true

    }

    Thanks

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    The call stack is almost similar to an existing one where an extension is loaded without a caption. Telemetry such as this indicates that a script exception is the last thing happening in the browser and is causing the unresponsiveness. From what we can see, we believe there might be an action or a group of actions added to the role center or a role center part which doesn't have a caption or has its caption hidden. This should be fine, but a bug on our end is causing the client to silently crash. We have created a repair item to address this.

    The customer can confirm this by navigating to the client and opening the developer console and seeing if any errors are reported. The one in particular that I expect them to see is

    TypeError: Cannot read property 'length' of undefined

    possibly followed by

    Cannot read property 'then' of undefined

    Any of the following mitigation actions should work:

    1. Navigate to https://<<publicwebbaseurl>>/?page=146 to navigate directly to the Posted Purchase Orders page (or any other page).

    2. Use a different role center which does not have this issue

    3. f there is an extension which modifies the role center, ensure that all actions/groups have a visible caption.

    If you do find that changing an extension helps, any information about what AL code causes the issue could be helpful. Best probably is to raise a support ticket with Microsoft via your CSP.

    Let us know if this did work out for you so other can make usage of it.

    Thanks.

  • Community Member Profile Picture
    on at

    Hi,

    It is possible that some caption is missing, but I expose an example. Installation is standard BC 150 onPrem and does not have custom extensions:

    - Choose the role of Project Manager

    - Click on Upcoming Invoices

    from here, the application stops working

    Please do this test and tell me if the error occurs.

    Thanks

  • Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    I just did and there is no error:

    pastedimage1591083273748v1.png

    Could it be that you are working in a localized release? But again, this does look like an issue you can report to Microsoft support via your CSP. 

    Thanks.

  • Community Member Profile Picture
    on at

    Hi,

    Indeed it is by localized release. In my case Spain.

    Thanks for your help. It has been very useful.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    I did setup a Spanish release, but the error is not there in standard CRONUS. 

    pastedimage1591177196997v1.png

    Is this happening at your side also in a CRONUS company that is unmodified?

    Thanks.

  • Verified answer
    Community Member Profile Picture
    on at

    Hello,

    I have recently installed the last Cumulative Update and work fine.

    I have BC 15.2 and the BC15.6  fixes the problem.

    Thanks

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    Thank you for sharing. Yes, I did test with latest available CU.

    Have a great day.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 360 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 201 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans