Skip to main content
Participant
October 11, 2022
Answered

Uploaded assets are disappearing/expiring after a few days

  • October 11, 2022
  • 1 reply
  • 871 views

We are using the PDF Services document generation API (https://developer.adobe.com/document-services/docs/overview/pdf-services-api/howtos/api-usage/) for generating documents. When we upload a template using the POST https://pdf-services.adobe.io/assets API call, the asset works fine for document generation for a few days. However, after a few days, the API call to generate a document starts producing the following error:

 

{
    "error": {
        "code": "NOT_FOUND",
        "message": "Asset Not Found."
    }
}

 

At that point, we have to upload a new template and update the asset ID used to generate the document. How can we make it so the template asset does not expire and we can continue to generate documents from the same template?

This topic has been closed for replies.
Correct answer Raymond Camden

It is not meant to be permament. I believe we only guarantee 24 hours. 

1 reply

Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
October 11, 2022

It is not meant to be permament. I believe we only guarantee 24 hours. 

Participant
October 12, 2022

Thanks @Raymond Camden ! In that case, we'll modify our code to upload a new template each time before we generate a document.

Raymond Camden
Community Manager
Community Manager
October 12, 2022

Well, I'd probably suggest doing a bit more work and have your code remember the upload time. You'll get much better performance if you upload once a day.