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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Java Script Error After Enable Unified Interface (on-premises) V 9.1

(0) ShareShare
ReportReport
Posted on by 10

After Use the new Unified Interface only (recommended) to Yes And Reloading and reloading the page, I get the following error :

"ReferenceError: LCIDUtils is not defined
at ">crm.ZZZZ.com/.../app.js


I disabled the language in Crm and tested again, but it gave the above error again.

app.js Error Line Is :

if (typeof (LCIDUtils) == "undefined") {
   LCIDUtils = {} // Error
}

1768.Untitled.jpg

I have the same question (0)
  • Soroush Profile Picture
    10 on at
    RE: Java Script Error After Enable Unified Interface (on-premises) V 9.1

    there is no Custom Script in My Crm.

    It just Empty Crm!

  • Suggested answer
    pavanmanideep Profile Picture
    1,331 on at
    RE: Java Script Error After Enable Unified Interface (on-premises) V 9.1

    Hi Soroush,

    No, if there is any error with your JavaScript, the error message shows it's coming from app.js only. For this, you can do one thing, identify what is the entity which is having this issue, then take the JS code for that entity and identify piece of code which is referring to Language Id(LCID) and try replacing with new API's as suggested in my previous message.

    Hope it helps...

    Cheers,

    PDMY

    Blog:https://ecellorscrm.com

  • Soroush Profile Picture
    10 on at
    RE: Java Script Error After Enable Unified Interface (on-premises) V 9.1

    thanks Pavan.

    but it's not my script. it's microsoft java script (app.js)

    I Upgraded V9 To 9.1 And When I Set "Use the new Unified Interface only (recommended)" to "Yes" ،

    The above error is displayed...

  • Suggested answer
    pavanmanideep Profile Picture
    1,331 on at
    RE: Java Script Error After Enable Unified Interface (on-premises) V 9.1

    Hi Soroush ,

    The old Client API's to get the user languages are deprecated.

    You may proceed to use globalContext.userSettings.languageId instead of Xrm.Page.context.getUserLcid.

    You may use this to upgrade your scripts to v9.0 and find any pending issues.

    www.xrmtoolbox.com/.../

    Hope it helps..

    Cheers,

    PMDY

    Blog: https://ecellorscrm.com

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 184

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 126 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans