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 :
Customer experience | Sales, Customer Insights,...
Answered

Script Error on Lead Record

(0) ShareShare
ReportReport
Posted on by 155

Hi,

I get this script error when I open a Lead record:

One of the scripts for this record has caused an error. For more details, download the log file.

The Log file:
ReferenceError: Web resource method does not exist: Sales.DocumentsTabController.shouldShowDocumentsTab
at Nu.execute (myinstance.crm11.dynamics.com/.../app.js
at myinstance.crm11.dynamics.com/.../app.js
at o (myinstance.crm11.dynamics.com/.../app.js
at Iu._executeIndividualEvent (myinstance.crm11.dynamics.com/.../app.js
at Iu._executeEventHandler (myinstance.crm11.dynamics.com/.../app.js
at Object.execute (myinstance.crm11.dynamics.com/.../app.js
at O._executeSyncAction (myinstance.crm11.dynamics.com/.../app.js
at O._executeSync (myinstance.crm11.dynamics.com/.../app.js
at O.executeAction (myinstance.crm11.dynamics.com/.../app.js
at t.dispatch (https://myinstance.crm11.dynamics.com/uclient/scripts/app.js?v=1.4.583-2004.2:846:5545)

We have just added the Leads entity to the sitemap and haven't to my knowledge done any customisation. Has anyone come across and managed to fix this before?

I have the same question (0)
  • Verified answer
    Miguel Lourenco Profile Picture
    Microsoft Employee on at

    Hi,

    Sales.DocumentsTabController.shouldShowDocumentsTab handler is to show preview features only in preview enabled orgs. This handler is no longer required.

    Most likely you've removed sales_ClientCommon.js from form but the handler is still there:

    pastedimage1588842761172v1.png

    if it was on my org I would simply remove the handler but it's not so deactivate the handler by double clicking on the highlighted handler and uncheck (if something comes up you can activate back):

    pastedimage1588842883693v2.png

  • Suggested answer
    A Wennerwik Profile Picture
    155 on at

    Thanks! That worked :-)

  • Miguel Lourenco Profile Picture
    Microsoft Employee on at

    perfect. please mark it as answered.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans