Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

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

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

Categories:
  • Soroush Profile Picture
    Soroush 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
    pavanmanideep 1,329 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
    Soroush 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
    pavanmanideep 1,329 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans