SSRS report - Invalid URI: The Uri string is too long.

mark goldin 691 Reputation points

I am executing a report from c# code. I use POST to the report's url because I am applying large parameters.
I get the above error that can be found in the report log. Is there a limitation for a size of a single parameter? Is there limit for total parameters length?


SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,819 questions
0 comments No comments
{count} votes

Accepted answer
  1. Isabellaz-1451 3,616 Reputation points

    Hi @mark goldin

    Yes ,I think it has a limitation.

    I've tested the string parameter length and I have no problem creating a parameter with 65535 characters. If I overlap this length, then error is shown. But his was an internal parameter. If you are using a parameter and then passing the parameter back to some query, then the 2000 characters can be an issue related to the Maximum GET request length which is 2083 characters. So if the parameter is passed in the URL then you can reach the limit of 2083 characters as you have the report path on the beginning and eventually other parameters.

    I refer to this thread:

    Best Regards,

    If the answer is the right solution, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful