# Perspective PDF Viewer component "Failed to load PDF File"

**URL:** <https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [February 11, 2020, 6:37am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120 "2020-02-11T06:37:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [February 11, 2020, 6:37am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/1 "2020-02-11T06:37:11Z")

</div>

Hi,

I’m trying to load report in perspective using webdev module and PDF viewer as attached. But I receive error as “Failed to load PDF File”.

May I know is there are any other prerequisites?

 ![PDFViewer](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f4842df5b5b8bc697d814862236aab87610959c9.jpeg) ![Webdev%20report](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4ac34e63d64ef11c3a21a7fc99e12dae9a86b3f1.jpeg)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 11, 2020, 12:23pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/2 "2020-02-11T12:23:15Z")

</div>

Consider breaking your single-line execute and return code for the report into separate lines, and place them in a try-except block. Log any exceptions and unconditionally log how many pdf bytes you are getting. Proving that the report is executing properly is the first thing I’d verify.

(The logging will come out in the gateway’s status pages.)

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [February 12, 2020, 8:50am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/3 "2020-02-12T08:50:41Z")

</div>

@pturmel Thanks for prompt response. Its working now. I didnt notice that the webdev is runnning on trial mode. When I reset trial it worked today. sorry for that!

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [February 12, 2020, 8:52am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/4 "2020-02-12T08:52:46Z")

</div>

However I’m waiting for perspective report viewer 8.0.9 to be stable for me to upgrade. Or is it recommended to upgrade live projects to nightly build? Would there be an issue?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 12, 2020, 12:45pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/5 "2020-02-12T12:45:38Z")

</div>

Nightly builds are definitely not recommended for production use. Nor release candidates. If the live project is not critical to production, then it is up to you.

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [February 12, 2020, 1:42pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/6 "2020-02-12T13:42:59Z")

</div>

I’ve had experiences where the PDF viewer doesn’t load my PDF consistently. I haven’t done any significant projects in versions past 8.05 yet so I don’t know if it was fixed in future versions.

I agree with pturmel. It’s not a good idea to use pre-release builds in production environments. If you do it; I would strongly recommend you keep backups from before you did the upgrade and understand you could have pretty bad surprises and downtime as you roll back to previous version.

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [February 13, 2020, 1:51pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-component-failed-to-load-pdf-file/32120/7 "2020-02-13T13:51:17Z")

</div>

Sure. Will wait for 8.0.9 to be stable! Thanks.
