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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

On Update webapi call Javascript Paging cookie is not working

(0) ShareShare
ReportReport
Posted on by 317

Dear All,

I am getting cookies from the WebAPI when it is GET method from JavaScript and I am trying to pass that value in fetch xml and trying to update the value  using PATCH request in WebAPI call.

Suppose we are having 12 records, first call we are retrieving 10 records and we have to use the cookie by passing in fetch query to get the Next values(2 records) using same GET method WebAPI call recursively.

But I am facing issue while passing the cookie. I am getting error-"error":{"code":"0x80040201","message":"Malformed XML in the Paging Cookie"}}.

We have replaced the special characters, still we are unable to get the response for the same.

Raw Value : 

<cookie pagenumber="2" pagingcookie="%253ccookie%2520page%253d%25221%2522%253e%253ccontactid%2520last%253d%2522%257b71A5E5B9-88DF-E311-Q8D5-6F3BE5V8c200%257d%2522%2520first%253d%2522%257b57A0E5B9-88DF-E311-B8E5-6C3BE5A8B200%257d%2522%2520%252f%253e%253c%252fcookie%253e" istracking="False" />

Decoded Value:

<cookie pagenumber="2" pagingcookie="<cookie page="1"><contactid last="{71A5D8B9-88DF-E311-B8E5-6C3BE5A8B200}"
first="{57A0E5B9-88DF-E711-B8E5-6C3BE5B8B200}" /></cookie>" istracking="False" />"

Please let me know any suggestions.

Thanks in Advance!

Regards,

Krishna.

I have the same question (0)
  • Suggested answer
    Stefan Cojocaru Profile Picture
    on at

    Hi Krishna,

    It appears your issue is similar to https://community.dynamics.com/365/sales/f/dynamics-365-for-sales-forum/288369/pagination-fetchxml-paging-cookie-keeps-failing-with-invalid-xml/826368.

    Can you check to see if it helps?

    Let me know what the results are.

    Thank you!

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans