Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM app for Tablet Error: Object doesn't support property or method 'selectNodes'

Posted on by Microsoft Employee

Hello,

I have just installed CRM app for Tablet and I get an error every time i open, relead, or try to create a new record.

0726.Error.PNG

When i click ok, it is possible to continue normal work, but i get this error every time.

Is it something about the app version, or something else?

Kind regard,

Milos

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM app for Tablet Error: Object doesn't support property or method 'selectNodes'

    Hello Andrii,

    Thanks for your interest, and sorry for the late answer.

    I have found one more error on the Account entity:

    7776.account.PNG

    On All the forms I have xrmservicetookit.js script, which I believe is causing the errors.

    There is the part of code from that script:

        var selectNodes = function (node, xPathExpression) {

           if (typeof (node.selectNodes) != "undefined") {

               return node.selectNodes(xPathExpression);

           }

           else {

               var output = [];

               var xPathResults = node.evaluate(xPathExpression, node, nsResolver, XPathResult.ANY_TYPE, null);

               var result = xPathResults.iterateNext();

               while (result) {

                   output.push(result);

                   result = xPathResults.iterateNext();

               }

               return output;

           }

       };

       var selectSingleNode = function (node, xpathExpr) {

           if (typeof (node.selectSingleNode) != "undefined") {

               return node.selectSingleNode(xpathExpr);

           }

           else {

               var xpe = new XPathEvaluator();

               var results = xpe.evaluate(xpathExpr, node, nsResolver, XPathResult.FIRST_ORDERED_NODE_TYPE, null);

               return results.singleNodeValue;

           }

       };

    Which contains "selectNodes" and "XPathEvaluator".

    Once again, i have these problems only on tablet, everything works fine on  the desktop.

    Is there any way to change this? Some other version of xrmservicetookit.js, or some changes in the code?

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM app for Tablet Error: Object doesn't support property or method 'selectNodes'

    Hello Milos,

    Can you please provide JavaScript code of onLoad handler for that entity?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans