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 :
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)
  • Suggested answer
    pavanmanideep Profile Picture
    1,331 on at

    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

  • Soroush Profile Picture
    10 on at

    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

    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

    there is no Custom Script in My Crm.

    It just Empty Crm!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans