Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Uploaded assets are disappearing/expiring after a few days

New Here ,
Oct 11, 2022 Oct 11, 2022

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?

TOPICS
PDF Services API
658
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Oct 11, 2022 Oct 11, 2022

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

Translate
Adobe Employee ,
Oct 11, 2022 Oct 11, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 12, 2022 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 12, 2022 Oct 12, 2022
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources