Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

Posted on by 170

Hi,

In one of the customer's online CRM instance (upgraded from CRM 2016 to Dynamics 365), I checked the  in-built web resource 'msdyn_ReportControl' (Display name: Report Control ) . In the script for 'msdyn_ReportControl', the outdated method getServerUrl() is called and it is throwing an error 'Uncaught TypeError: context.getServerUrl is not a function" when I am trying to see the report.

I am able to run my report through Customization -> Components -> Reports -> myReport -> Run Report
But when I tried through the particular page, it is giving the above error.

As it is MSCRM's component, how do I need to resolve this issue.

(Also I checked on other Dynamics 365 online instance but found getClientUrl() method is called at the same place.)

Please help me in resolving this issue.

Thanks.

*This post is locked for comments

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    Actually I have new solution (Report Control Dashboard) ready for 2015+ versions which is running for other customers with latest versions successfully. But my only concern is uninstalling the old RCD solution should not cause any damage or data loss. Because my solution xyz (for which RCDS is a prerequisite) is running on production for this customer. I am in process of creating a test instance so that I can reproduce and resolve the issue.

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    That why you need to build a migration/test instance to identify, address and solve the issues.

    Once you have developed an alternative solution you test this solution together with the customer and if he signs off the alternative solution you can uninstall the old solution and import your new solution to provide equal functionality.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    Thanks Andreas for your reply.

    But I doubt removing the old solution will not cause any problem as the customer is running on production.

  • Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    You cannot use the old solution for Dyn365 as it uses deprecated JavaScript methods.

    You need to remove that old solution and replace it with a new solution approach as I suggested in my last post.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    Hi Andreas,

    Thank you so much for looking into this issue.

    For you information, the old solution for RCD is ReportcontrolforDashboard10man.zip which is for 2011 and 2013. But currently it is there in MS Dynamics 365, this solution contains the msdyn_ReportControl.

    Again thanks for help.

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    I would try to figure out where the old component was used and would try to migrate it to a new solution Approach as described here:

    www.powerxrm.com/add-report-to-dashboards-in-crm-20152016

    or

    ledgeviewpartners.com/.../turn-report-dashboard-dynamics-crm

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    Hi Andreas,
    Thanks for the reply.

    You have shown me a way towards the issue resolution.
    So the scenario is, one of my customer previously on CRM 2013 upgraded to CRM 2015 then 2016 then MS dynamics 365.

    The report control dashboard solution was imported by my team as a prerequisite for my solution xyz on CRM 2013. After the customer's CRM up-gradation, my team has installed an upgraded solution xyz as per the new versions of CRM. But I guess the report control dashboard solution remained as it is.

    At this stage please suggest me how to proceed further.

    The client is running with dashboards, reports on production, should I delete the old RCDS and import the new one for 2015+ versions. Will it impact on the current reports in CRM ?

    Thanks in advance.

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    Hi,

    I think you have a very old solution or component deployed to your CRM instance called "Dashboard Reporting Control for Microsoft Dynamics CRM 2011"

    crmramblingsbysteven.wordpress.com/.../using-the-dashboard-reporting-control-for-microsoft-dynamics-crm-2011

    As this solution and the included web resource is targeted for CRM 2011 the method getServerUrl() was not outdated back then. Thats why you get the error on newer CRM versions.

    I recommend you to remove the old solution if you cannot fix this web resource yourself, because it is a managed solution component.

    Cheers,

    Andreas

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: In-built web resource 'msdyn_ReportControl' having script calling outdated method getServerUrl()

    Hi,

    Please help me and let me know if you are aware of the reason why the inbuilt component 'msdyn_ReportControl' is calling the getServerUrl(). Is it related with some wrong configuration done while upgrading from 2016 to dynamics 365 ?

    Thanks in advance.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans