Groups | Blog | Home
all groups > sql server reporting services > april 2005 >

sql server reporting services : Corrupt PDF when using Subscription with file share



Sanjay Gandhi
4/1/2005 2:37:04 PM
I am exporting report document to a file share every 1 hour using
Subscriptions. Sometimes the PDF document that the subscription created is
corrupted. This happens at random.

This is the error I get when I open the PDF either in 5.0 or 6.0:

In 5.0:
"There was an error processing a page. There was a problem reading this
document (109)"

In 6.0:
"There was an error processing a page. There was a problem reading this
Donovan Smith [MSFT]
4/5/2005 1:17:41 PM
If you open the file in notepad, is there an HTML error at the bottom of the
PDF file? If so, what is the stack trace? You can also find it in the
server log file in the LogFiles directory.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Philippe Toulemont
4/8/2005 12:00:00 AM
Hi,

I had the same problem when rendering PDF reports to files thru the Web
Service. The issue was that, when a file existed with the same name, my
FileStream.Write overwrote bytes but, in the case the new report was smaller
thant the previous one, extra bytes were left at the end of the PDF making
it invalid for Acrobat Reader.

The turnaround was to delete the file before rendering the new report.



"Donovan Smith [MSFT]" <donovans@online.microsoft.com> a écrit dans le
message de news: %235Q2FyhOFHA.2468@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Sanjay Gandhi
4/20/2005 2:10:02 PM
I completely forgot about my post.

No there is no http error in the PDF source. I can forward you the PDF
document if needed. The errors just seem to occur at random. This time around
when I opened a PDF document generated by Reportin Services, it just comes
out blank. In viewer it says 24 pages, but it doesnt go beyond 1st page.

I read the post by Philippe and I am in a similar scenario. I generate a PDF
file daily every hour. So the next day around, Reporting Services overwrites
the previous file that it created the day before. I guess I may have to use
the method you have - create my own scheduler and delete the existing PDF and
write the new PDF file everytime.


[quoted text, click to view]
Donovan Smith [MSFT]
4/20/2005 9:07:06 PM
I thought we had fixed an issue like this in SP1. Are you sure you have SP1
applied?

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Sanjay Gandhi
4/21/2005 5:34:02 PM
No I have not yet applied SP1. I will try that out and let you know.
Thanks

[quoted text, click to view]
Sanjay Gandhi
4/25/2005 9:22:01 AM
Thanks Donovan,
I think applying SP1 fixed that problem. I will re-post if the problem
occurs again.

[quoted text, click to view]
AddThis Social Bookmark Button