• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 104
  • Last Modified:

SSRS printing report to PDF causes following error: Object reference not set to an instance of an object.

Hi I get an error when rendering report to PDF. Only happens I select all my selected groups in the filter. Appears some data somewhere is causing an issue when rendering report to PDF.

See screenshot of error
Can you please let me know how I can locate the problem?
1 Solution
Robberbaron (robr)Commented:
generally one of the objects in your code is null.

need to put a break point on code before the error occurs,
run the app using the data selections that cause the error and then step through each line , checking each variable to get its value.

particularly, check all the values in the urlQuery NameValueCollection
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now