eDocBuilder will not generate production PDF until the session is approved by clicking on the "Finish Editing" button in the eDocBuilder UI or via approveDocSession() API method.
The getOrderFile() API method returns a string representing an URL to download the production file. In case of an error, it returns a string starting with "ERROR:" instead. Some possible common errors are listed below, but this list is not necessarily complete.
"ERROR: invalid session ID" - the provided session ID is not a valid GUID. Retrying does not make sense. Check and provide a valid GUID as the session identifier.
"ERROR: session not found" - the session was not found, most probably because it has been deleted, or the ID is not correct. Retrying does not make sense. Make sure you're providing identifier of an existing session.
"ERROR: purged session" - the session is purged. It is not possible to generate production files for purged sessions. Retrying does not make sense. Make sure you're providing identifier of a not too old session. See the documentation for "session life time" for details.
"ERROR: session still open" - the session has not been approved. It is not possible to generate production files for opened sessions. Retrying does not make sense until the session is approved either by the user or via the API call.
"ERROR: processing is underway" - generation of the production PDF is being performed. Try again later. When retrying, an exponential backoff approach is recommended.
For more information on the eDocBuilder API, please review the article below.