Skip to main content
Participant
10월 11, 2022 4:08 오후 UTC
해결됨

Uploaded assets are disappearing/expiring after a few days

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?

이 주제는 답변이 닫혔습니다.
Raymond Camden
Community Manager
10월 11, 2022 6:29 오후 UTC

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

3 답변

Raymond Camden
Community Manager
Community Manager
10월 11, 2022 6:29 오후 UTC

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

번역
Participant
10월 12, 2022 1:30 오후 UTC

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
10월 12, 2022 1:32 오후 UTC

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.

번역