# Rendering errors

Lob occasionally encounters problems with the creative when rendering mailpieces; this can occur with either PDFs or HTML. To avoid sending out erroneous mailpieces, Lob provides visibility of these errors, with proactive notification of rendering errors in place.&#x20;

{% hint style="success" %}
We always recommend testing; and where possible, sending yourself a printed mailpiece.&#x20;
{% endhint %}

## PDF

**Lob will fail incorrectly formatted PDFs.** [See our PDF preflight checklist here](https://help.lob.com/print-and-mail/designing-mail-creatives/creative-formatting/pdf-preflight-checklist) to ensure your file will process through our rendering engine.

## HTML

**Lob will fail HTML that includes inaccessible assets (images, fonts, any other URLs):**

* the link to an asset is incorrect
* the asset referenced in the file is missing
* Lob has not been given the correct permission to access the asset (ensure that the link is set to public viewing, and not private)
* when a remote asset references a local asset (for example, a remote asset is at [www.example.com](http://www.example.com) which then references something local in that directory)
* slow or under-resourced server providing the asset (we recommend using a performant service, such as Amazon S3, to host the content)

### HTML Template Preview

If your HTML contains an inaccessible asset, your HTML preview will error. Details of the error will be displayed in a future release.

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2F5IeRgocdJgIAoUvP4DSw%2Ftemplate_preview.png?alt=media&#x26;token=e2170e2b-3b4a-4099-b989-a4de5e4d0fe5" alt="" width="375"><figcaption></figcaption></figure>

### In the Campaigns UI flow

* **When creating your Campaign, you&#x20;*****may*****&#x20;be notified when you generate a Creative Proof** (if the sample mailpiece that is rendered results in an error); if this occurs you should troubleshoot against the above list.

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FGUTZvm3AZ1FerJzpehYM%2Fproof-error.png?alt=media&#x26;token=3ea325af-db7e-4cf6-b3b3-3598d879b2f7" alt=""><figcaption></figcaption></figure>

* **After placing the order, you will be notified in the dashboard,** and the reason for the error will be provided (click to enlarge):

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2F2SKOsFjwpC1lnhJxrFNa%2Ferror-dashboard-campaigns.png?alt=media&#x26;token=cfd2b496-441f-4a1b-9c04-321bbcdf9e0e" alt=""><figcaption><p>Campaigns - dashboard</p></figcaption></figure>

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FRq8yd4wUyAss8K1NfB5c%2Ferror-formfactor.png?alt=media&#x26;token=11e676d5-97fd-4b3e-88e9-eae3f33015e1" alt=""><figcaption><p>Campaigns - Form factor (ex: Postcards)</p></figcaption></figure>

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FK7zAe4cZolCpBrSzPzvV%2Ferror-formfactor2.png?alt=media&#x26;token=f5125b3b-53a6-44f3-9d97-90b86818aad6" alt=""><figcaption><p>Campaigns - Form factor (ex: Postcards)</p></figcaption></figure>

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FhQYsGB78ea6aZvvGy38c%2Ferror-orderdetails.png?alt=media&#x26;token=0150ec97-930e-41c7-8900-e2cf3d10bafb" alt=""><figcaption><p>Campaigns - order details</p></figcaption></figure>

* The Lob support team will proactively reach out.

### API users

* API customers will receive an error notification in the API response.
* The Lob support team will proactively reach out.

## Webhooks&#x20;

Webhooks users can subscribe to receive notifications of failed orders. (Learn more about [using webhooks](https://help.lob.com/print-and-mail/getting-data-and-results/using-webhooks) here.)

1. Under Webhooks in the dashboard, in the Live environment, click Create.
2. Check \[formfactor].failed; click Create.

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FLvZZhoKaDQgE2eTOZmxj%2Fcreate_webhook.png?alt=media&#x26;token=ffc18ed7-8829-4634-ace6-4229336b8b41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FQ4d8Q9xw0MmlbxuF2v6C%2Fsubscribe_failed.png?alt=media&#x26;token=05794922-302d-4b68-ac4b-530f050f0a1b" alt=""><figcaption><p>self_mailer.failed also available</p></figcaption></figure>

If subscribed to postcard.failed, letter.failed, and/or check.failed, and Lob fails an order during rendering, the following error messages are possible:

*"Rendering failed due to asset issue:*

* *The requested asset was not found: \<asset link>"*
* *The requested asset is not permitted: \<asset link>"*
* *Authentication is required to access the requested asset: \<asset link>"*
* *An internal server error occurred for: \<asset link>"*
* *The requested asset timed out: \<asset link>"*
* *An unknown server error occurred for: \<asset link>"*
* *The requested service is unavailable for: \<asset link>"*
* *An unknown error occurred for: \<asset link>"*

If not one of the most common errors above, or a PDF failure, *"try re-render”* will be returned.

<figure><img src="https://1775164782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiXDYGxBp6aAwhpEhTMNC%2Fuploads%2FjIhXFiKGEjMJBQYdfusp%2Fwebhook_error_messaging.png?alt=media&#x26;token=b73010f3-a296-442e-8627-cb590398a91d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you are unable to resolve the error, please reach out to [support@lob.com](https://email:support@lob.com)
{% endhint %}
