Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Invalid URI: The Uri string is too long issue while retrieve data using fetchxml and batch request

Posted on by 24,094

Hi,

We used to fetchxml retrieve records from CRM. We used batch request but it throws below error.

{"Message":"Invalid URI: The Uri string is too long.","ExceptionMessage":"Invalid URI: The Uri string is too long.","ExceptionType":"Microsoft.Crm.CrmHttpException"

We have long fetchxml so e used batch request still facing same issue. we follow link https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/223201/request-url-too-long-for-fetchxml-query-types/707735 but it also did not work.

So how to resolve this issue.

Thanks!

  • Anubha Soni Profile Picture
    Anubha Soni 35 on at
    RE: Invalid URI: The Uri string is too long issue while retrieve data using fetchxml and batch request

    Do you have Any idea that how we can solve it, I am also facing the same issue but didn't find any solution.

    please suggest possible solutions for this issue, I also tried adding CustomViewFilter Function then also same error is coming.

    Thanks!

    Anubha

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Invalid URI: The Uri string is too long issue while retrieve data using fetchxml and batch request

    Hi,

    Thanks for your reply.

    Is there any way to handle it.

    Thank!

  • Suggested answer
    RE: Invalid URI: The Uri string is too long issue while retrieve data using fetchxml and batch request

    Dear Partner,

    Curently URI string only supports 32768 characters and as the UCI uses a batch, the long query is inside the URL of the inner request. This is by design.

    Please help to mark this as answered, if this post help you.

    Regards,

    Mohamed Sanuj Basheer

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

Product updates

Dynamics 365 release plans