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

mark goldin 691 Reputation points
2022-02-05T13:01:58.63+00:00

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?

Thanks

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,815 questions
0 comments No comments
{count} votes

Accepted answer
  1. Isabellaz-1451 3,616 Reputation points
    2022-02-07T02:38:50.68+00:00

    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:https://ask.sqlservercentral.com/questions/91651/ssrs-string-parameter-maximum-length.html

    Best Regards,
    Isabella


    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