Solved

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

Posted on 2014-12-23
2
66 Views
Last Modified: 2016-06-21
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
C--Users-craig.mason.METHODWARELOCAL-Doc
Can you please let me know how I can locate the problem?
0
Comment
Question by:Papa1NZ
2 Comments
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 500 total points
ID: 40526932
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
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question