Skip to main content
Version: 10.0

Error Codes

If an error occurs when attempting to call a web service, the web service will throw an exception (REST API or SOAP API). This exception will normally contain an error code, a text indicating the reason behind the exception, and the error’s "stack trace."

In the case of SOAP web services, the exception will be defined with the WSDL and can be mapped directly to a "WebserviceException" object. This object will then contain the corresponding information.

In the case of REST web services, the exception information will be returned as a response to the HTTP request. The web service responds with the HTTP response status code and returns a JSON structure with the corresponding exception in its response.

Following is a list of the various possible error codes.

General​

The server itself and all web services return these codes - through the REST and SOAP interfaces - when a request cannot be accepted or run, or when a general step such as loading the source document, checking the parameters or reading and writing a file fails. The message is the text of the exception; parts in angle brackets are filled in by the server.

UNKNOWN_EXCEPTION = -1

  • Message: Unknown exception
  • Cause: An unexpected error that the server does not assign to a more specific code, for example an I/O error while a PDF document is opened, while the documents of a session are packed into an archive, or while the server runs the job.
  • Solution: Check the server log at the time of the request. If the reason is not clear from it, send the log and the document to support.

SERVER_NOT_STARTED = -2

  • Message: Web service is not initialized
  • Cause: The requested web service is not running:
    • it could not be started when the server started, for example because its working folder cannot be created (see TEMPORARY_FOLDER_ERROR = -25); the server log names the reason,
    • for a request through the REST interface: the web service is disabled in the configuration or not covered by the license. The SOAP interface answers this case with WEBSERVICE_DISABLED = -3.
  • Solution: Check the status of the web service in the Admin Portal, see Web services, and the server log of the server start. Enable the web service or check the license. After a start error, remove its reason and restart the server.

WEBSERVICE_DISABLED = -3

  • Message: Web service is disabled
  • Cause: A web service that the request needs is disabled in the configuration or not covered by the license:
    • the web service that is called through the SOAP interface (the REST interface answers with SERVER_NOT_STARTED = -2),
    • a web service that a conversion calls for a follow-up step: the "Pdfa" web service for a PDF/A conversion after a conversion or OCR, the "Signature" web service for a signature after a conversion, and the "Toolbox" web service for merging converted e-mail attachments into the document.
  • Solution: Enable the web service in the Admin Portal, see Web services, and check the license, or remove the follow-up step from the request.

UNABLE_TO_SAVE_SOURCE_FILE = -4

  • Message: Unable to save data to temporary file
  • Cause: The source document of the request cannot be stored in the working folder of the job:
    • the document cannot be written to the temporary folder, for example for lack of access rights or disk space,
    • the SOAP fileURL parameter names a document that cannot be loaded: the request to the http or https address fails, or a file: address (if allowed) names a file that cannot be read,
    • the user information of a fileURL address contains an unencoded @. The address is rejected before a request is sent; the message names it without the user information and adds the hint how to write the @.
  • Solution: Make sure that the server may write to its temporary folder and that there is enough disk space, see Directory structure. For fileURL, check the address and whether the server can reach it, including a required proxy; write an @ inside the credentials as %40. The stack trace of the exception names the reason of a failed load.

NOT_ENOUGH_MEMORY_FOR_RETURN_FILE = -5

  • Message: Not enough memory to return file content
  • Cause: Not returned by this version; the code is reserved.

NO_RETURN_FILE = -6

  • Message: No file content to return
  • Cause: The operation ended without an error, but its result file is missing or empty. The code is also returned when a conversion or OCR cannot store the result of a follow-up step - a PDF/A conversion, a signature or the merge of converted e-mail attachments - as its new result.
  • Solution: Check the server log for the job, and the access rights and the free space of the temporary folder, see Directory structure.

READ_ERROR_RETURN_FILE = -7

  • Message: Unable to read pdf file content
  • Cause: The operation ended and wrote its result file, but the server cannot read the file to return it, for example because another program locks or removes it, or because of a read error of the file system.
  • Solution: Check the access rights to the temporary folder and make sure that no other program, such as a virus scanner, locks or removes files in it, see Directory structure.

THREAD_WAS_INTERRUPTED = -8

  • Message: The execution of the instance was interrupted
  • Cause: The thread that runs the job was interrupted before the job ended. This happens when the server or the web service is stopped while jobs are running: the running jobs are interrupted and end at their next checkpoint with this code. It is also returned when the thread of the request that waits for the job is interrupted.
  • Solution: Repeat the request when the server is running again. For the handling of running jobs during a shutdown, see Worker thread handling.

UNABLE_TO_FIND_FREE_THREAD = -9

  • Message: No free instance could be found to perform the operation

  • Cause: The web service cannot accept the job, and the job is not run:

    • the queue of the web service is full (queueSize, or the size that the server calculates in the automatic queue mode),
    • no thread of the web service is running and a new one cannot be started, for example because the process or thread limit of the container or the operating system is reached.

    Through the REST interface, the server answers with HTTP status 429.

  • Solution: Repeat the request later, with exponential backoff, reduce the number of parallel requests, or increase the number of instances (instances), see Waiting queue and Number of instances. If no thread can be started, check the server log and the process and thread limits.

MAX_LATENCY_OF_THREAD_REACHED = -10

  • Message: Maximum execution time of the instance reached
  • Cause: The job has not ended within the permitted time (maxLatency, 180 seconds by default). The time is counted from the moment the job is placed in the queue, so it includes the time the job waited for a free instance. A job that is still waiting is removed from the queue; the thread of a running job is interrupted and replaced by a new one. Typical reasons:
    • many parallel requests: under high load, short jobs also reach the limit while they wait in the queue,
    • a large document or an operation that takes a long time, for example OCR of many pages,
    • a document that keeps the processing busy, for example a damaged file,
    • an external resource that does not answer, for example images of an e-mail when the server has no internet access.
  • Solution: Reduce the number of parallel requests or increase the number of instances (instances). Increase maxLatency if the jobs need more time. See Maximum latency and Max. runtime of an instance. Check a document that always reaches the limit on its own.

INTERNAL_ERROR = -11

  • Message: Internal error, often followed by a line with the reason
  • Cause: An error that the server does not assign to a more specific code, for example:
    • an external program that the operation needs is not available to the web service, such as the document converter, the Office bridge, ImageMagick, Tesseract or the PDF tools of the "Pdfa" web service,
    • the schema against which the request is checked is not loaded; only the server log names the schema,
    • a toolbox operation that the server does not know (Operation not defined),
    • in the administration: a statistics request with an invalid date (Invalid date value) or with the name of an unknown or disabled web service (Invalid webservice name), or a request for the dead-letter queue of events that is not available or names an unknown entry.
  • Solution: Check the server log for the reason. For a missing program, check the installation and the server log of the server start. Correct the values of an administration request. If the reason is not clear, send the log to support.

UNABLE_TO_LOAD_CONTENT_FROM_URI = -12

  • Message: Unable to load data from URI '<address>', in some cases followed by a line with the reason. If the HTML error report is enabled, the message is the report itself (XML or JSON).

  • Cause: A document or a resource that the request references by an address cannot be loaded:

    • A file field with source="uri" references an address that is not loaded. Only http or https addresses with a host are loaded; an address that starts with // and names a host (for example //www.example.com/invoice.pdf) is loaded via http. An address without a host (for example www.example.com/invoice.pdf, which is read as a path) or with another scheme (for example ftp:) is rejected before a connection is made; the message names the address as it was sent. file: addresses are handled separately, see URI_FILE_PROTOCOL_NOT_ALLOWED = -29; if the file: protocol is allowed, this code is returned when the file cannot be read, and for a file: address with a host, such as a UNC path.
    • The address cannot be parsed. The message then names the reason and the position of the syntax error instead of the address.
    • The user information of the address contains an unencoded @. This applies to source="uri", to the source of the "URLConverter" web service and to the address of a time stamp authority (TSA). The address is rejected before any request is sent, and the message adds The user information of the address contains an unencoded '@'; write it as %40.
    • The request fails: the host cannot be resolved or reached, the connection breaks or times out, or the TLS handshake fails (the message then contains its reason). This also applies to the main page of the "URLConverter" web service and to the time stamp authority of a signature.
    • The TLS settings of the request cannot be applied, for example because the truststore cannot be used.
    • The HTML error report of the "Converter" web service is enabled (errorReport with mode="message" in the html settings), and resources of an HTML page or images of an HTML e-mail could not be loaded.

    Credentials in the address (https://user:password@host/file.pdf) apply to that one request only and are not shown in error messages. A colon inside the password is sent completely (written as %3A or as :). An answer with an HTTP error status, for example 404, is not reported with this code: the content of the answer is processed as the document. For the SOAP fileURL parameter, a failed load and an unencoded @ are reported with UNABLE_TO_SAVE_SOURCE_FILE = -4 instead.

  • Solution: Check the address in the request and whether the server can reach it, including a required proxy, the truststore for https and the HTTP settings of the request. Write an @ inside the credentials as %40. For the HTML error report, check the resources that the report names, see HTML converter.

INVALID_URL_FOR_WEBSERVICE = -13

  • Message: Invalid URL parameter for Web service
  • Cause: Not returned by this version; the code is reserved.

UNHANDLED_EXCEPTION_IN_THREAD = -15

  • Message: Unhandled exception in the instance
  • Cause: The job ended with an unexpected error that the web service did not handle itself. The job is aborted, and the server log contains the error with its stack trace.
  • Solution: Check the server log at the time of the request, and send it together with the document to support.

WRITE_ERROR = -16

  • Message: Unable to write data

  • Cause: A file or a data stream cannot be written while the request is processed, for example:

    • a text file whose character encoding the server converts to UTF-8 before the conversion,
    • a vCard or iCalendar file that is converted,
    • an Outlook message in TNEF format (winmail.dat) that is converted,
    • converted e-mail attachments that are stored or merged into the document,
    • the support information that is created in the administration.

    The code is also returned when the links, bookmarks or named destinations of a PDF document cannot be read while the server checks whether their targets still exist.

  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure, and the server log. If the error occurs with one PDF document only, the document may be damaged. For the support information, see Support information.

READ_ERROR = -17

  • Message: Unable to read data
  • Cause: A file or a data stream cannot be read while the request is processed, for example:
    • an e-mail or an embedded Outlook message in TNEF format (winmail.dat) during the conversion of an e-mail,
    • a text file whose character encoding the server converts to UTF-8 before the conversion,
    • the server log that is requested through the administration.
  • Solution: Check the source document, for an e-mail for example whether a mail program opens it, and the server log. For the server log, check that the log file exists and that the server may read it, see Directory structure.

INVALID_SOURCE_FORMAT = -18

  • Message: Invalid source file format for the operation
  • Cause: The source document of a "Toolbox" request cannot be processed:
    • it is neither a PDF document nor a ZIP archive,
    • it is a ZIP archive that contains no document,
    • an operation of the request has a result that is not a PDF document (for example images or a ZIP archive), and a further operation follows it in the same request.
  • Solution: Send a PDF document or a ZIP archive with PDF documents. Place an operation whose result is not a PDF document last in the request, or send it in a request of its own, see Toolbox.

UNABLE_TO_FORMAT_XML = -19

  • Message: Unable to format XML document, in some cases followed by a line with the reason
  • Cause: An XML document that the server reads or writes while it processes the request cannot be parsed, normalized or written. Operations that read XML data of the request, such as e-invoice data, XFA form data or XMP metadata, report such a problem with an error code of their own. The code is also returned when the XML processing of the Java runtime does not support a security setting that the server requires; the message then names the setting.
  • Solution: Check the server log for the reason. If the message names a setting of the XML processing, check the Java runtime that the server uses.

PARAMETER_VALUE_ERROR = -20

  • Message: Invalid value for parameter, usually followed by a line that names the value. Some checks return their own message instead, which names the attribute and quotes the value, for example Invalid value in <path>/@locale: "<value>" is not a language tag of the form language[-Script][-REGION].
  • Cause: A value of the request is not valid or cannot be used, for example:
    • a locale or timeZone attribute is not of the required form or not supported by the Java runtime of the server; every value of the request is checked, also one that a more specific element overrides,
    • the language of the toolbox options operation is not a valid language tag,
    • the date of a header or footer does not set day, month and year together,
    • the URL of a SOAP request to the "URLConverter" web service cannot be parsed; the message names the reason and the position, not the URL,
    • in the administration: a date that is not of the form yyyy-MM-dd, or a request for support information without a group,
    • data of the request or of a result cannot be converted to or from XML or JSON.
  • Solution: Correct the value that the message names, see Locale and time zone and Toolbox.

PARAMETER_VALIDATION_ERROR = -21

  • Message: Unable to validate parameter against the schema, or the messages of the schema check (see below)

  • Cause: The parameters of a REST or SOAP request do not match the schema of the web service, for example because a required element is missing, an element or attribute is not known, or a value is not permitted. The REST interface answers with HTTP status 400.

    If the request was rejected by the check against the schema of the web service, the message has a fixed form. Each entry starts with the identifier of the failed check (usually cvc-...) and states the line and column of the request. Control and formatting characters of the rejected value, such as line breaks or text direction marks, are replaced by ? in the text. An entry is shortened to 512 characters and ends with ... [truncated]. A message lists at most 20 entries and at most 8192 characters; the remaining entries are counted as ... [<n> further messages omitted]. The wording after the identifier follows the language of the Java runtime of the server and may differ between servers, so evaluate the identifier, line and column rather than the text.

  • Solution: Correct the request at the line and column that the message names, and check that all parameters of the call are specified, see the parameters of the REST API and the SOAP methods.

PARAMETER_HAS_NO_VALUE = -22

  • Message: Parameter '<name>' has no value
  • Cause: A value that the request needs is missing. The message names it:
    • operation, file content or url: a SOAP request without operation data, without a document (neither fileContent nor fileURL), or a request to the "URLConverter" web service without its settings,
    • fileName: an attachment that the toolbox attachment operation adds has no file name, or one that consists of blanks only; no attachment of the request is added,
    • dataCodewordsMax: a PDF417 barcode sets dataCodewordsMin above 0 and symbolsPerCodewordMax, but not dataCodewordsMax.
  • Solution: Add the missing value, see SOAP methods, Toolbox and PDF417.

PARAMETER_TYPE_ERROR = -23

  • Message: Invalid data type for parameter
  • Cause: Not returned by this version; the code is reserved.

THREAD_WAS_CANCELED = -24

  • Message: The execution of the thread was canceled
  • Cause: The job was canceled before it ended:
    • the session that started the job was closed, by a logout or by an administrator; its waiting and running jobs are canceled,
    • the server shuts down and cancels the jobs that are still waiting or running at the end of the shutdown.
  • Solution: Keep the session open until its jobs have ended. During a shutdown, repeat the request when the server is running again, see Worker thread handling.

TEMPORARY_FOLDER_ERROR = -25

  • Message: Unable to access temporary folder '<path>'
  • Cause: When a web service starts, the server creates a working folder for it in the temporary folder. The temporary folder does not exist, or the working folder cannot be created in it, for example for lack of access rights, and the web service does not start. The caller does not receive this code: it appears only in the server log, and requests to the web service are answered with SERVER_NOT_STARTED = -2.
  • Solution: Make sure that the temporary folder exists and that the server may write to it, see Directory structure, and restart the server.

THREAD_IS_DEATH = -26

  • Message: The request was terminated because the executing thread seemed to hang and stopped responding to requests
  • Cause: Not returned by this version; the code is reserved.

SERVER_NOT_AVAILABLE = -27

  • Message: Web service not available: Server is shutting down
  • Cause: The server is shutting down and no longer accepts requests. Every request to the REST and SOAP interfaces is answered with HTTP status 503 Service Unavailable and this code in a JSON body, a SOAP request as well.
  • Solution: Repeat the request when the server is running again, or send it to another server. For orchestrated platforms, see Graceful shutdown.

URI_FILE_PROTOCOL_NOT_ALLOWED = -29

  • Message: The file protocol is not allowed for the URI '<address>'

  • Cause: A document reference points to a file: address (for example file:///etc/passwd or a UNC path such as file://host/share/document.pdf), but reading local server files through this reference is disabled. This protects the server - which by default accepts anonymous requests - from returning the content of local files to the caller. The request is rejected before anything is read, and the message names the address without its user information. This applies in two cases, each with its own opt-in:

    • a document parameter with source="uri": allowed by WEBPDF_HTTP_OPTIONS_ALLOW_FILE_PROTOCOL=true (or -Dwebpdf.http.options.allow.file.protocol=true),
    • the SOAP fileURL parameter with the file: scheme: allowed by the same WEBPDF_HTTP_OPTIONS_ALLOW_FILE_PROTOCOL=true, or, to allow only this narrower capability, by WEBPDF_HTTP_OPTIONS_ALLOW_FILE_PROTOCOL_SOAP_FILE_URL=true (or -Dwebpdf.http.options.allow.file.protocol.soap.file.url=true).

    A file: source of the "URLConverter" web service is reported with URLCONVERTER_INVALID_SOURCE_URL = -205 instead.

  • Solution: Send the document itself or load it from an http or https address. Enable an opt-in only if the deployment needs it, for fileURL preferably the narrower one. See Proxy Configuration for the full option matrix.

Admin​

The administration returns these codes - in the Admin Portal and through the administration API - when it checks, saves or reads settings. The message is the text of the exception; parts in angle brackets are filled in by the server.

ADMIN_RESTART_NOT_ALLOWED = -30

  • Message: Restart not allowed.
  • Cause: A restart of the server was requested, but the shutdown port of the server is switched off (port of the shutdown element in server.xml is 0 or lower). The server restarts itself only through this port.
  • Solution: Set a shutdown port (default 8005) and restart the server once by hand so that the port is opened, see Start and stop.

ADMIN_PORT_ACCESS_DENIED = -31

  • Message: Access to restart port denied.
  • Cause: The server accepted a restart request but could not connect to its own shutdown port afterwards. The restart runs after the request has been answered, so the caller does not receive this code: it appears only in the server log, and the server keeps running without a restart.
  • Solution: Check the server log for the reason, for example a firewall rule or another program on the port, and restart the server by hand, see Start and stop.

ADMIN_INVALID_LICENSE_KEY = -32

  • Message: Invalid license key or key information (<number>).
  • Cause: The license check rejected the license: the license key or the licensee is missing, or the key is not valid for this licensee and webPDF. The number is an internal check code.
  • Solution: Enter the license key and the licensee exactly as stated in the license document, see License. If the check still fails, send the number to support.

ADMIN_UNKNOWN_WEBSERVICE = -33

  • Message: Unknown Web service.
  • Cause: Not returned by this version; the code is reserved.

ADMIN_INVALID_TSA_DATA = -34

  • Message: Invalid settings for time stamp authority (TSA).
  • Cause: The check of the time stamp settings failed: no time stamp authority is configured, its settings are invalid, it cannot be reached, or its answer contains no TSA data. The message names the reason when one is known.
  • Solution: Check the address and the access data of the time stamp authority and whether the server can reach it, including a required proxy. See Timestamp failures.

ADMIN_INVALID_KEYSTORE_DATA = -35

  • Message: Invalid settings for keystore. or Keystore access error: <reason>
  • Cause: A keystore cannot be read when it is checked - the signature keystore, the truststore or the keystore of a TLS connector. Typical reasons are missing keystore data, a wrong password, a missing or wrong alias, a certificate without a private key, or a number of certificates that does not match. For a PKCS#11 keystore (smart card or token), the PKCS#11 configuration file is missing, no card terminal is available, or the card reports an error. The code is also returned when a password is changed for a user keystore that does not exist.
  • Solution: Check the keystore file, the password and the alias; for PKCS#11, check the configuration file, the card reader and its driver. See Keystore, Truststore and TLS.

ADMIN_INVALID_FILE_DATA = -36

  • Message: Invalid settings for data file.
  • Cause: A file for the appearance of the portal (theme, logo or background) could not be uploaded or deleted: the upload is empty, the file cannot be saved, or the file cannot be deleted.
  • Solution: Upload the file again and check that the server may write to its data folder, see Directory structure.

ADMIN_INVALID_LICENSE_KEY_LENGTH = -37

  • Message: License key not valid for the current version.
  • Cause: The license key is valid but does not cover this version of webPDF (major and minor version). Despite its name, the code has nothing to do with the length of the key.
  • Solution: Use a license key for this version, see License.

ADMIN_CONFIG_UPDATE_ERROR = -40

  • Message: Unable to update configuration settings.
  • Cause: Not returned by this version; the code is reserved.

ADMIN_CONFIG_SAVE_ERROR = -41

  • Message: Unable to save configuration settings.
  • Cause: Not returned by this version; the code is reserved.

ADMIN_CONFIG_GET_ERROR = -42

  • Message: Unable to get configuration settings
  • Cause: The administration cannot read a configuration: an unknown type of configuration was requested, or the logging configuration (log4j2.xml) cannot be read.
  • Solution: Check that log4j2.xml exists in the configuration folder and that the server may read it, see Logging and Directory structure.

ADMIN_CONFIG_USER_UPDATE_ERROR = -43

  • Message: Unable to update user settings.
  • Cause: A check of the user settings was requested, but the request contains no user settings.
  • Solution: Send the user settings with the check, see administration API.

ADMIN_CONFIG_SERVER_UPDATE_ERROR = -44

  • Message: Unable to update server settings. <reason>
  • Cause: Two different situations return this code:
    • Saving a configuration failed - server, application, user, logging, cluster or provider settings - because the file cannot be written, for example for lack of access rights or disk space, or because the configuration folder of a container is read-only. The message names the reason.
    • A REST request of any web service sends a JSON body that cannot be mapped to the expected parameters, for example a value of the wrong type or an unknown value of an enumeration. The server answers with HTTP status 400. The message contains the details of the JSON parser.
  • Solution: For saving, make sure that the server may write to its configuration folder, see Configuration files and Directory structure. For a REST request, check the JSON body against the REST API.

ADMIN_LDAP_CONNECT_ERROR = -45

  • Message: Unable to connect to LDAP server. [<reason>]
  • Cause: The check of the LDAP settings cannot connect to or log on to the LDAP server. The message contains the reason reported by the connection.
  • Solution: Check the address, the port, the encryption and the access data of the LDAP server, see The LDAP connection cannot be established and the command line diagnostics.

ADMIN_LDAP_NAMING_ERROR = -46

  • Message: Unable to validate LDAP settings (user). [Unable to find User '<name>'] or Unable to validate LDAP settings (role). [Unable to find group '<group>' with member '<name>']
  • Cause: The connection to the LDAP server works, but the check does not find the test user (user), or the user is not a member of the group that grants the user role (role).
  • Solution: Check the search settings for users and groups, see The login name is not found and The user can be found, but no groups are mapped.

ADMIN_CONFIG_EXECUTABLE_ERROR = -47

  • Message: Unable to validate executable
  • Cause: The check of an external program failed, for example of Chromium, the Office bridge or SharePoint Online, or the test document for the check could not be created. The result of the check names the program and the reason.
  • Solution: Make sure that the program is installed and may be run by the server, and check the server log. See Chromium, Office bridge and SharePoint Online.

ADMIN_CONFIG_VALIDATE_ERROR = -48

  • Message: Unable to validate configuration settings: <reason>
  • Cause: The check of settings failed. The reason names the setting, for example:
    • the default locale or time zone of the server or of a web service is not valid or not supported by the Java runtime of the server,
    • a cluster setting is not valid: the cluster name is empty, the role is unknown, the secret key is empty or not a hexadecimal AES key of 32, 48 or 64 characters, the namespace is not valid, or its prefix is changed while the server runs in cluster mode,
    • a local folder is not allowed for the cluster,
    • a storage or cache provider (MinIO, Azure Blob, SMB, Redis or Valkey) cannot be reached or refuses access, its settings are empty, or the shared folder of SMB does not exist,
    • since 10.0.8, the check font finds that the font directory (fontPath) of an enabled web service does not exist, cannot be read or contains no font file, so that the web service would not start; the message names the web service, the attribute and the directory.
  • Solution: Correct the setting named in the message, see Font directories, Locale and time zone, Secret key, Namespace and Providers.

REST web service​

The REST web services return these codes for the document storage, the sessions, the login and the authorization; the SOAP web services return some of them as well, mainly the authorization codes from -80 on. The message is the text of the exception; parts in angle brackets are filled in by the server.

WEBSERVICE_INVALID_DOCUMENT_ID = -50

  • Message: Document ID is not valid
  • Cause: The document ID of the request does not address a document of the session:
    • the ID is empty or contains more than one -, or the history ID in the path of a history request is negative,
    • no document with this ID exists in the session of the access token - it was never uploaded in this session, it was deleted, or it belongs to another session,
    • the document was deleted while the request was changing it,
    • the merge operation of the toolbox lists its documents by ID (format="id"), and one of them cannot be found or read.
  • Solution: Use a document ID that the server returned for this session, for example from the upload or from GET /documents/list, together with the access token of the same session. See Document id and Session.

WEBSERVICE_DOCUMENT_IO_ERROR = -51

  • Message: Document IO error, in some cases followed by Unable to convert document or Unable to convert Word document into HTML
  • Cause: The code is not returned for a failed upload. It covers these situations:
    • A document is downloaded as HTML (GET /documents/{documentId} with format=html), and copying or converting it fails with a read or write error. For a Word document, the code also stands for a document that the conversion to HTML cannot process.
    • An operation that starts without a document - the toolbox or barcode web service without document ID, or the URL converter - cannot create its new, empty PDF document.
    • Reading a stored document fails an internal check of the document storage.
  • Solution: For the HTML download, check that the document opens in its own application, or download it without format. In the other cases, check the free disk space of the server and the server log, and contact support if the error persists.

WEBSERVICE_OPTIONS_NOT_SET = -52

  • Message: No settings for Web service operation available
  • Cause: A history entry of a document is changed (PUT /documents/{documentId}/history/{historyId}), but the request has no body with the new settings of the entry.
  • Solution: Send the history entry as JSON in the request body, see Documents.

WEBSERVICE_UNABLE_TO_LOCK_DOCUMENT = -56

  • Message: Unable to lock the document
  • Cause: Not returned by this version; the code is reserved.

WEBSERVICE_ENCODING_EXCEPTION = -57

  • Message: Invalid file data encoding or input contains unmappable characters
  • Cause: Practically not returned. The server reads the file name of an upload as UTF-8 and returns this code only if the Java runtime lacks the character sets needed for that, which every Java runtime provides. A file name with unusual characters does not trigger it.
  • Solution: Contact support with the server log if the code occurs.

WEBSERVICE_INVALID_URL = -58

  • Message: Invalid URL syntax, followed by the reason
  • Cause: The URL converter web service of the REST API cannot read the address passed in url: it has a syntax error, it is not absolute, or its protocol is unknown. The message names the reason and, for a syntax error, its position, but never the address itself, so a user name and password in the address do not reach the response.
  • Solution: Pass a complete, absolute address with protocol and host, for example https://www.example.com/page.html, and encode characters that are not allowed in an address. See HTML conversion.

WEBSERVICE_DOCUMENT_SIZE = -59

  • Message: Document limit exceeded: <reason>
  • Cause: A limit of the REST session is reached. The local authorization limits what a session may store; the limits are checked when a document is uploaded, when an archive is extracted into the session and when a created archive is stored in it. An upload request without a Content-Length header counts as too large as soon as an upload or storage limit is set. The reason names the limit:
    • Maximum upload size per document of <n> megabytes reached - the upload request is larger than uploadLimit (uploadLimitUser for logged-in users),
    • Maximum storage limit of <n> megabytes reached - all documents of the session together would exceed diskSpaceLimit (diskSpaceLimitUser),
    • Maximum number of <n> files in the storage reached - the session would hold more documents than maxFiles (maxFilesUser).
  • Solution: Delete documents that are no longer needed from the session, log in as a named user if its limits are higher, or raise the limits in the Admin Portal, see REST session limits.

WEBSERVICE_SESSION_TOKEN_NOT_FOUND = -60

  • Message: Session for provided token not found
  • Cause: The request needs a session, but there is none. A web service request with a token of the local login whose session has already ended returns -9009 (WEBSERVICE_SESSION_TOKEN_REVOKED) instead; this code is returned in these situations:
    • A login (/authentication/user/login) carries a token - as Bearer in the Authorization header, in the Token header or as Token query parameter. A login creates a new session and must not carry a token. HTTP status 401.
    • A logout (/authentication/user/logout) has no active session: the token is missing or invalid, or its session has already ended. HTTP status 401.
    • The session ends - by a logout, by an administrator or because its time is over - while a request is still storing a document in it. The request is aborted and leaves nothing behind. HTTP status 400.
  • Solution: Log in without a token. After the end of a session, log in again and upload the documents again, see End session with logout.

WEBSERVICE_SESSION_EXPIRED = -62

  • Message: Session has expired
  • Cause: The session of the request ended - by a logout, by an administrator or because its time ran out - after the token of the request had been accepted and before the request was carried out. This can only happen in that short moment, on a server that keeps its sessions in its local session storage. A request that arrives after the end of the session returns -9009 (WEBSERVICE_SESSION_TOKEN_REVOKED) for a token of the local login, or -9002 (WEBSERVICE_SESSION_TOKEN_INCORRECT_CLAIM) for a token that has expired by itself. HTTP status 401.
  • Solution: Log in again; the documents of the ended session are deleted. Extend a session that is still needed in time with a refresh token, see Extend session.

WEBSERVICE_SESSION_UNABLE_TO_CREATE = -63

  • Message: Unable to create a new unique session: <reason>
  • Cause: The server cannot create a session. If this happens while the token of a request is checked, the response carries the code but not the reason.
    • At a login, the new session cannot be stored - with a Redis/Valkey session storage, for example because its lock cannot be taken in time or the storage reports an error. HTTP status 401.
    • For the access token of an OAuth2 provider, no session for its user could be established after three attempts, for example because concurrent requests with the same token interfered.
  • Solution: Repeat the login or the request. If the error persists, check the session storage - for Redis/Valkey its connection, see Cannot Connect to Redis - and the server log.

WEBSERVICE_SESSION_TOKEN_NOT_ALLOWED = -64

  • Message: Session token in context not allowed
  • Cause: A function of the administration API (/admin/...) was called with the token of a user who does not have the admin role. HTTP status 401.
  • Solution: Log in with a user of the admin group, see User groups.

WEBSERVICE_SESSION_GENERAL_ERROR = -65

  • Message: General session error: <reason>
  • Cause: Two different situations return this code. If the error occurs while the token of a request is checked, the response carries the code but not the reason.
    • A request arrived before the session management of the server had started (Session manager not completely started), for example while the server starts.
    • With a Redis/Valkey session storage, the lock of a session could not be taken in time because another node or request holds it, for example when a refresh token is redeemed, a session is logged out or the passwords of a keystore of the session are updated.
  • Solution: Repeat the request. If the lock error occurs often, check the load and the response times of Redis/Valkey, see Distributed Locking and Slow Response Times.

WEBSERVICE_SESSION_TOKEN_NOT_VALID = -66

  • Message: Session token is not valid: <reason>
  • Cause: The token of the request cannot be checked. A web service request then answers with HTTP status 401 and without the reason, a refresh (/authentication/user/refresh) with 400 and the reason. Other faults of a token have codes of their own, for example -9002 for an expired token.
    • The token is empty, for example Authorization: Bearer without a token or an empty Token query parameter (Token is empty or was not specified).
    • The signature or the encryption of the token cannot be processed; the reason comes from the token check.
  • Solution: Pass the token exactly as the login returned it, see Passing the authorization.

WEBSERVICE_SESSION_TOKEN_KEY_CREATION = -67

  • Message: Unable to create keys for token signing.
  • Cause: At startup, the server cannot create or open the keys it signs its access and refresh tokens with. They are kept in the file oauth in the keystore folder and are protected with the key in conf/secret.key. The file cannot be read or written, a key is missing in it, or it cannot be opened because conf/secret.key was replaced. webPDF does not start; the server log shows Unable to initialize OAuth settings.
  • Solution: Restore the keystore folder together with the matching conf/secret.key. If the keys cannot be restored, remove the file oauth from the keystore folder so that the server creates new keys; tokens issued before are then invalid. In a cluster, see Data the coordinator must keep.

WEBSERVICE_SESSION_ID_NOT_VALID = -68

  • Message: Session id is not valid: <value>
  • Cause: The session addressed by its ID does not exist or has ended:
    • An administrator closes a session (POST /admin/session/{sessionId}/close) that does not exist, has already ended or has expired. The value is the session ID.
    • The passwords of a keystore are updated (PUT /authentication/user/certificates/passwords/{keyStoreName}) for a session that has ended or expired in the meantime.
    • At a login, the server finds no free ID for the new session. HTTP status 401.
  • Solution: Reload the session table; a session that is no longer listed has already ended. In the other cases, log in again.

WEBSERVICE_SESSION_PROVIDER_ERROR = -69

  • Message: <provider>: <reason>
  • Cause: The Redis/Valkey session storage cannot be reached or reports an error. The provider is REDIS; the reason names the failed action, for example Failed to fetch session data for session '<id>'. This includes a session whose end fails because its lock is held elsewhere. If the error occurs while the token of a request is checked, the response carries the code but not the reason.
  • Solution: Check that Redis/Valkey runs and can be reached from every node, see Cannot Connect to Redis, and check the server log.

WEBSERVICE_INVALID_HISTORY_ID = -70

  • Message: History ID is not valid
  • Cause: The history part of a document ID (<documentId>-<historyId>) is not a number, or the document has no history entry with this number.
  • Solution: Use a history ID from the history list of the document (GET /documents/{documentId}/history), see Documents.

WEBSERVICE_HISTORY_ID_NOT_SUPPORTED = -71

  • Message: History ID as part of the document ID is not supported for this operation
  • Cause: A document ID with history part (<documentId>-<historyId>) was passed to a request that only accepts the plain document ID: deleting a document (DELETE /documents/{documentId}), updating its information (POST /documents/{documentId}/update) or listing its history (GET /documents/{documentId}/history).
  • Solution: Pass the document ID without the history part.

WEBSERVICE_AUTHORIZATION_UNKNOWN_ERROR = -80

  • Message: Unknown authorization error
  • Cause: Only the SOAP web services return this code: the server cannot read the HTTP headers of the SOAP request to check its authorization. This is an internal error.
  • Solution: Contact support with the server log.

WEBSERVICE_AUTHORIZATION_NO_INFO_FOUND = -81

  • Message: No authorization information found
  • Cause: A SOAP web service was called without an Authorization header, although anonymous access to the SOAP web services is switched off (<localAuth><soap allowAnonymous="false"/></localAuth> in server.xml). A REST request without a token returns -9003 (WEBSERVICE_SESSION_TOKEN_NOT_PROVIDED) instead.
  • Solution: Pass user name and password as Basic or an access token as Bearer in the Authorization header, see SOAP authorization.

WEBSERVICE_AUTHORIZATION_SYNTAX_ERROR = -82

  • Message: Wrong syntax in the authorization information
  • Cause: The Authorization header of a SOAP request cannot be read: Basic without credentials, credentials without a colon between user name and password, or Bearer without a token. A REST login does not return this code: it ignores a header it cannot read and continues as an anonymous login (see -87).
  • Solution: Pass Basic followed by the Base64-encoded <user name>:<password>, or Bearer followed by the access token, see SOAP authorization.

WEBSERVICE_AUTHORIZATION_WRONG_SCHEME = -83

  • Message: Invalid authorization schema information
  • Cause: The Authorization header of a SOAP request is empty or uses a scheme other than Basic or Bearer. Both schemes are accepted: Basic with user name and password, Bearer with an access token of the local login or of an OAuth2 provider. A REST login does not return this code.
  • Solution: Use one of the two schemes, see SOAP authorization.

WEBSERVICE_AUTHORIZATION_EMPTY_CREDENTIALS = -84

  • Message: No authorization credentials specified
  • Cause: Practically not returned. The SOAP web services return it only for an Authorization header whose value cannot be read at all. An empty header returns -83, Basic or Bearer without content returns -82, and an empty user name or password returns -85.
  • Solution: Check the Authorization header of the request, see SOAP authorization.

WEBSERVICE_AUTHORIZATION_INVALID_LOGIN = -85

  • Message: Invalid authorization credentials
  • Cause: A login with user name and password failed - at the REST login or with Basic at a SOAP web service: the user does not exist in the user source, the password is wrong, the user name or the password is empty, or the server has no user source. The REST login answers with HTTP status 401.
  • Solution: Check user name and password against the configured user source; for LDAP, see The login name is not found.

WEBSERVICE_AUTHORIZATION_NO_USER_ROLE = -86

  • Message: Authorization credentials do not include the 'user' role.
  • Cause: The user was authenticated but does not have the user role: the user is not a member of the group that grants it (roleUserGroup, default user), or the access token of an OAuth2 provider does not carry the role configured for the provider (roleNameUser) in its roles claim. The message always names user, even if the group or the role has another name.
  • Solution: Add the user to the group that grants the user role, or configure the OAuth2 provider so that its tokens carry the role. See User groups and The user can be found, but no groups are mapped.

WEBSERVICE_AUTHORIZATION_ANONYMOUS_NOT_ALLOWED = -87

  • Message: Anonymous user authorization not allowed.
  • Cause: A REST login (/authentication/user/login) has no credentials, but anonymous login is switched off (<localAuth><rest allowAnonymous="false"/></localAuth> in server.xml). A login counts as anonymous if the Authorization header is missing or is not a readable Basic header. HTTP status 401.
  • Solution: Pass user name and password as Basic in the Authorization header, see Named login, or allow anonymous login again, see Anonymous login.

WEBSERVICE_AUTHORIZATION_LOCAL_PROVIDER_NO_AVAILABLE = -88

  • Message: Authorization not possible because the local authorization provider is not available.
  • Cause: The local authorization is switched off (enabled="false" on the <localAuth> element in server.xml). The REST session management needs the local authorization provider for its tokens, so webPDF does not start: the server log shows Unable to start the session manager with this code.
  • Solution: Switch the local authorization on again - remove enabled="false" from <localAuth> - and restart the server, see Local authorization and Start and stop.

WEBSERVICE_AUTHORIZATION_API_DISABLED = -89

  • Message: Authorization for the API is disabled in the local authorization provider.
  • Cause: The API is switched off in the local authorization:
    • a SOAP web service was called while the SOAP API is switched off (<localAuth><soap enabled="false"/></localAuth>),
    • a REST login was requested while the REST API is switched off (<localAuth><rest enabled="false"/></localAuth>). HTTP status 401.
  • Solution: Switch the API on again in the Admin Portal or in server.xml, see Authorization.

Converter web service​

The Converter web service returns these codes when it converts a document to PDF; a few of them also come from the URLConverter, Toolbox, OCR and Barcode web services, as the entry states. The message is the text of the exception; parts in angle brackets are filled in by the server. If Outside In Technology reports the error, the message continues with the status text of Outside In and ends with its status number in square brackets, for example [4].

CONVERTER_UNABLE_TO_START_EXPORTER = -101

  • Message: Unable to start external converter
  • Cause: An external program of the conversion fails:
    • Outside In reports that its converter could not be started (status [127]).
    • ImageMagick ends with an error while it reads or converts an image, for example a WebP or HEIC image. The OCR web service returns the code as well when ImageMagick fails while it prepares or optimizes an image.
  • Solution: Check the server log for the reason, and check that the outsidein and imagemagick folders of the installation are complete, see Directory details. For an image, check that it opens in an image viewer. If the error remains, collect the support information and contact support.

CONVERTER_OUT_OF_MEMORY = -102

  • Message: Out of memory
  • Cause: Outside In cannot allocate memory while it converts the document (status [13]). Outside In runs in a process of its own; the memory settings of the Java runtime of the server do not apply to this process.
  • Solution: Reduce the number of conversions that run at the same time, or give the system or the container more memory, see Adapting the memory and cores.

CONVERTER_UNABLE_TO_LOAD_FILE = -106

  • Message: Unable to load the file, because format is not supported
  • Cause: The converter cannot read the file. Despite the message, the code also covers files of a supported format:
    • Outside In ends with a status that has no code of its own, for example for a damaged file. The message names the status. This includes the case that the server cannot read the status of Outside In; the message then names an I/O error while communicating with the native process.
    • The native Word Converter cannot read the docx document or cannot write the PDF.
    • An image file contains no image.
  • Solution: Check that the file opens in its application. For a docx document, try another converter, see Choosing an alternative converter. If the file is valid, send it to support.

CONVERTER_FONT_ALIAS_USED = -107

  • Message: A font replacement was used to convert the document, as the font used in the document is not available
  • Cause: A font of the document is not installed and was replaced by another font. The code is only returned if the fontAliasUsage option of the report parameter is set; without it, the conversion succeeds. Outside In and the native Word Converter report it. For the Word Converter it is the usual result for a font that is not found: the font is replaced by a font that covers the text - an alternate font named by the document, the substitute font, the default font or another installed font. With the Word Converter, the message lists the entries of the report; with Outside In, it names the status of Outside In.
  • Solution: Install the font on the server, or leave the option off if replacements are acceptable. See Reports of the native Word Converter and Conversion reports.

CONVERTER_FONT_IS_MISSING = -108

  • Message: A required font is not available for the conversion of the document and a replacement font could not be found, so the default font is used
  • Cause: A font is missing or cannot be used. The code is only returned if the fontIsMissing option of the report parameter is set. Outside In reports it for fonts that are not available on the system. The native Word Converter reports it when no installed font declares the character set of the text and the default font is used instead, when a font that was found cannot be used (for example because it cannot be read or its license does not permit embedding), and when the font that draws the text has no glyph for characters of the text; the report then names the font and the characters.
  • Solution: Install fonts that cover the text of the document. A font that cannot be used is named in the server log. See Font decisions in the native Word Converter and Conversion reports.

CONVERTER_CONTENT_PROBLEMS = -109

  • Message: Some contents of the document may cause conversion problems because they are unknown or not currently supported
  • Cause: The document contains content that the converter cannot reproduce faithfully. The code is only returned if the contentProblems option of the report parameter is set. Outside In reports, for example, vertical text, equations, forms, tables with right-to-left text, unsupported text effects, compressions or color spaces, PDF text without a Unicode map, or an embedded document that failed. The native Word Converter reports elements and rendering that it does not support. If the Word Converter finds several kinds of problems, this code takes precedence over CONVERTER_FONT_IS_MISSING, which takes precedence over CONVERTER_FONT_ALIAS_USED; the message lists the entries of all kinds. The same order applies to the attachments of an e-mail, see E-mail attachments.
  • Solution: Check the result for the content named in the message, or leave the option off if the result is acceptable. See Conversion reports.

CONVERTER_UNSUPPORTED_FORMAT = -111

  • Message: An unsupported file format was detected
  • Cause: The server cannot convert the format of the file:
    • Outside In has no filter for the format of the file (status [4]). Before the server returns the code, it tries to convert the file as text; the code remains if the file is not recognized as text either.
    • Since 10.0.8: The content of an image does not match its type. The server lets ImageMagick read only WebP, HEIC, PNG, TIFF and JPEG images. If the content of a WebP or HEIC image, or of a PNG image with transparency that is converted to JPEG, is recognized as another format, for example EPS or GIF, the image is not read and the conversion ends with this code. In a Word document, such an image is replaced by a placeholder instead; with the contentProblems option of the report parameter, the conversion ends with CONVERTER_CONTENT_PROBLEMS = -109.
  • Solution: Check the format against the supported file formats. If you know the format and the detection is wrong, pass the file extension with the fileExtension attribute of the converter parameter; this switches the automatic detection off. For an image, check that its content matches its file type, for example by opening it in an image viewer and saving it again in that format.

CONVERTER_UNABLE_TO_LOAD_FILE_PROTECTED_DOCUMENT = -112

  • Message: Unable to open the protected document
  • Cause: The document is protected by a password, and the password is missing or wrong:
    • Outside In reports a password-protected or encrypted file (status [11]) or incorrect credentials (status [3328]).
    • The native Word Converter cannot decrypt the docx document with the password of the request.
  • Solution: Send the document password with the accessPassword attribute of the converter parameter. Outside In supports it only for Microsoft Office documents with the default password methods; encryption based on certificates is not supported. See Word Converter.

CONVERTER_PAGE_RANGE_ERROR = -114

  • Message: Invalid page range specified
  • Cause: The pages attribute of the converter parameter selects no page; entries that are not valid page numbers or ranges are ignored:
    • Outside In reports a start page that is larger than the number of pages of the document or than the end page.
    • After the conversion, none of the selected pages exists in the result.
    • For an image, none of the selected pages matches an image of the file.
  • Solution: Check pages, for example 1-10 or 1,2,5-10, against the number of pages of the document. For images, see Specification of pages.

CONVERTER_PARAMETER_ERROR = -115

  • Message: Unknown parameter or invalid parameter value
  • Cause: A step of the conversion receives a value that it cannot use:
    • Outside In reports an invalid value for an option that the server passes to it (status [15]).
    • The Chromium engine gets no file to convert or no target, or the address of the content cannot be used. This also applies to the URLConverter web service.
    • An image of the file cannot be embedded in the PDF.
  • Solution: Check the parameters of the request against the REST API. If they are valid, send the document and the request to support.

CONVERTER_UNABLE_TO_LOAD_EXPORT_FILTER = -116

  • Message: Unable to load the export filter for the file format
  • Cause: Outside In cannot load the filter for the format of the file (status [2]). This can happen for Office formats such as DOC or XLS when the font folder that Outside In gets is not valid, for example on Linux without installed fonts.
  • Solution: Install fonts and check the font folders of the Converter web service, see Directories and Fonts under Linux.

CONVERTER_EMPTY_FILE = -117

  • Message: Empty file content
  • Cause: Outside In reports that the file is empty (status [10]).
  • Solution: Check that the request sends the complete content of the file.

CONVERTER_EXTERNAL_ACCESS_VIOLATION = -118

  • Message: Access violation in external process '<name>'
  • Cause: Outside In ends with an access violation while it converts the document (status [961]). The name is the Outside In program.
  • Solution: The document triggers an error in Outside In. Send the document to support. For an Office document, the Office Bridge is an alternative converter if Microsoft Office is available.

CONVERTER_EXTERNAL_PROCESS_ABORTED = -119

  • Message: External process '<name>' aborted
  • Cause: An external program of the conversion was interrupted before it finished:
    • The conversion in the Chromium engine was interrupted. This also applies to the URLConverter web service.
    • Outside In ends with the status [2048].
  • Solution: Send the request again. If the code recurs, check the server log for the reason.

CONVERTER_EXTERNAL_PROCESS_IO_ERROR = -124

  • Message: IO error in external '<name>' process: '<reason>'
  • Cause: An external program of the conversion cannot work with its files:
    • The server cannot prepare the files for the conversion of an image with ImageMagick, for example because a temporary file cannot be written. The name is IMAGEMAGICK.
    • Outside In ends with the status [2049].
  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure, and the server log.

CONVERTER_EXTERNAL_PROCESS_EXCEPTION = -125

  • Message: Exception in external process '<name>'
  • Cause: Outside In ends with an unknown exception while it converts the document (status [977]). The name is the Outside In program.
  • Solution: The document triggers an error in Outside In. Send the document to support. For an Office document, the Office Bridge is an alternative converter if Microsoft Office is available.

CONVERTER_NO_FONTS_OR_INVALID_FOLDER = -126

  • Message: No fonts files available or font folder is invalid
  • Cause: Outside In reports that the font folder contains no font files or is not valid (status [2818]).
  • Solution: Check that the font folders of the Converter web service contain TrueType fonts and that the list of font folders is not longer than 256 characters. If a custom font directory is configured, check it as well. See Directories and Custom font directory.

CONVERTER_INVALID_BASE_URL = -127

  • Message: Invalid base URL for the document, Invalid base URL for the document because the base URL must be an absolute URL with schema. or Scheme 'file' not allowed for base URL.
  • Cause: The base address of an HTML document cannot be used:
    • The baseURL attribute of the html parameter is not a valid address, has no scheme or uses the scheme file.
    • The HTML document names a base address (<base href>) that is not a valid address or uses the scheme file.
  • Solution: Set baseURL to an absolute address with http or https, for example https://www.example.com/, and remove a file: base address from the document. See HTML Converter.

CONVERTER_UNABLE_TO_PARSE_MESSAGE = -130

  • Message: Unable to parse the mail document
  • Cause: An e-mail (EML, MHT or MSG) or an HTML document cannot be opened, or the content of a winmail.dat file cannot be turned into an e-mail.
  • Solution: Check that the e-mail opens in an e-mail program. If it does, send it to support.

CONVERTER_NO_VALID_MESSAGE_FILE = -131

  • Message: Not a mail message (message class '<class>')
  • Cause: An MSG file is not an e-mail: its message class is not IPM.Note and does not start with IPM.Note., for example an Outlook appointment or contact. The message names the class.
  • Solution: Only e-mails are converted from the MSG format. Export appointments and contacts from Outlook as iCalendar (ics) or vCard (vcf) files, which the converter supports, see Templates.

CONVERTER_UNABLE_TO_COPY_PDF_FILE = -135

  • Message: Unable to copy created PDF document
  • Cause: The server cannot copy a file in the working folder of the job:
    • The source is already a PDF document, which the converter takes over as the result, and the copy fails.
    • The HTML that was created from a vCard or iCalendar file cannot be copied for the conversion.
  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure.

CONVERTER_UNABLE_TO_DETECT_FILE_FORMAT = -136

  • Message: Unable to detect file format
  • Cause: The detection of the file format fails. A format that is merely unknown does not return this code; the conversion goes on and ends with another code if the format cannot be converted. The code comes from:
    • the program that detects the format, which ends with an error; the number in square brackets is its exit code,
    • an image reader that names an image format the server does not support.
  • Solution: Check the server log. If you know the format of the file, pass the file extension with the fileExtension attribute of the converter parameter; this switches the automatic detection off. If the error remains, send the file to support.

CONVERTER_NOT_SUPPORTED_SMIME_MESSAGE_FILE = -137

  • Message: Unsupported S/MIME mail message type '<type>'
  • Cause: The e-mail is encrypted (ENCRYPTED) or carries only certificates (CERTS). This covers encryption with S/MIME and OpenPGP. An e-mail with an S/MIME signature is converted; an e-mail that is signed in another way, for example with OpenPGP, is treated as encrypted.
  • Solution: Decrypt the e-mail before the conversion.

CONVERTER_EXTERNAL_TEMPLATE_ERROR = -138

  • Message: Template format error
  • Cause: A template fails while it is filled with the data of the document, for example because it uses a value that does not exist. This applies to the templates for e-mails, vCard and iCalendar files and text files, to a custom template, to the content of a header or footer, and to an HTML document that is used as a template (useAsTemplate). A syntax error of a template returns CONVERTER_EXTERNAL_TEMPLATE_IO_ERROR or CONVERTER_EXTERNAL_TEMPLATE_DATA_ERROR instead.
  • Solution: Check the template against the template format and the data you pass. If you changed a template of the templates folder, restore the original. See Templates.

CONVERTER_EXTERNAL_TEMPLATE_IO_ERROR = -139

  • Message: Template IO error
  • Cause: A template or its input cannot be read, or its output cannot be written:
    • The template for the format is missing in the templates folder, cannot be read or has a syntax error. The server log names the template.
    • A custom template passed with file of the template parameter cannot be read or has a syntax error.
    • The text file, the resources of the text template (the fonts and js folders in the templates folder) or the vCard or iCalendar file cannot be read.
    • The output of a template cannot be written.
  • Solution: Check the templates folder of the installation and the custom template, and see the server log for the template and the reason. See Templates and Template format.

CONVERTER_UNABLE_TO_SAVE_HTML = -140

  • Message: Unable to save HTML document
  • Cause: The HTML that the server prepares from an e-mail or an HTML document cannot be written to the working folder of the job.
  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure.

CONVERTER_UNABLE_TO_PARSE_MAIL_CONTENT = -141

  • Message: Unable to parse the content of the mail message
  • Cause: The content of an e-mail cannot be read: the MIME structure of an EML or MHT file is damaged, the RTF body of an MSG file cannot be read or converted to HTML, or a part of the body is missing. If the RTF body of an MSG file cannot be parsed, the server uses its plain text body instead when there is one.
  • Solution: To convert an e-mail whose body part is missing, set ignoreMissingBodyChunk of the mail parameter. Otherwise check that the e-mail opens in an e-mail program, and send it to support if it does. See HTML Converter.

CONVERTER_UNABLE_TO_PARSE_MAIL_HEADER = -142

  • Message: Unable to parse the header of the mail message
  • Cause: The header of an e-mail (EML, MHT or MSG) cannot be read.
  • Solution: Check that the e-mail opens in an e-mail program. If it does, send it to support.

CONVERTER_UNABLE_TO_GET_HTML_CONTENT = -143

  • Message: Unable to extract the HTML content
  • Cause: Not returned by this version; the code is reserved.

CONVERTER_UNABLE_TO_PARSE_HTML_CONTENT = -144

  • Message: Unable to parse the HTML content
  • Cause: An HTML document cannot be read for the conversion.
  • Solution: Check that the file is complete and can be read. If it can, send it to support.

CONVERTER_INVALID_VCARD_TEMPLATE = -145

  • Message: The selected template file is not compatible with vCard or iCalendar elements
  • Cause: Not returned by this version; the code is reserved.

CONVERTER_UNABLE_TO_PROCESS_MAIL_ATTACHMENT = -146

  • Message: Unable to process attachment of the mail message
  • Cause: An attachment of an MSG e-mail cannot be read, for example an embedded e-mail or object.
  • Solution: Check that the e-mail and its attachments open in Outlook. If they do, send the e-mail to support.

CONVERTER_UNABLE_TO_READ_SVG_IMAGE = -147

  • Message: Unable to read SVG image
  • Cause: An SVG image cannot be read or is not well-formed XML. The Toolbox web service returns the code as well for an annotation with an SVG appearance.
  • Solution: Check the SVG image, for example in a browser or an XML validator.

CONVERTER_EXTERNAL_TEMPLATE_DATA_ERROR = -148

  • Message: Template data error
  • Cause: The input of a template cannot be used:
    • The custom data of the request - data of the template parameter or templateData of the html parameter - is not valid JSON.
    • An HTML document that is used as a template (useAsTemplate) or the content of a header or footer contains a syntax error of the template language.
  • Solution: Check the JSON data and the template syntax, see HTML as a template and Template format.

CONVERTER_CHROMIUM_INSTANCE_NOT_AVAILABLE = -149

  • Message: Chromium instance is not available
  • Cause: The conversion needs the Chromium engine, but no usable Chromium instance is running. This concerns HTML documents, e-mails, SVG images, vCard and iCalendar files and XRechnung visualizations. The URLConverter web service and an annotation with an SVG appearance in the Toolbox web service return the code as well.
  • Solution: Make sure that the Chromium Bridge is not switched off, and check the server log for errors when Chromium starts. See Chromium engine.

CONVERTER_TRANSFORMATION_RESOURCE_ERROR = -150

  • Message: Unable to prepare transformation resources
  • Cause: The files of a transformation cannot be prepared: a resource cannot be written to the working folder of the job, or the stylesheets supplied with the server for the detected XRechnung format are not available.
  • Solution: Check the free space and the access rights of the temp folder of the server and the server log. See Transformation.

CONVERTER_TRANSFORMATION_FAILURE = -151

  • Message: Unable to apply transformation
  • Cause: A stylesheet fails while it is applied to the XML document, or the XML document cannot be read.
  • Solution: Test the stylesheet with the XML document in an XSLT 3.0 processor, and check the XML document. See Transformation.

CONVERTER_TRANSFORMATION_RESOURCES_INCOMPLETE = -152

  • Message: Unable to apply transformation, because the provided resources are incomplete
  • Cause: The xslTransformation of the transform parameter contains no stylesheet: no resource has the format xslt, and the XML document is neither a stylesheet itself nor does it reference one that can be compiled.
  • Solution: Pass the stylesheet as a resource with the format xslt, which is the default. See Transformation.

CONVERTER_TRANSFORMATION_UNKNOWN = -153

  • Message: Unknown type of transformation
  • Cause: The transform parameter contains neither xslTransformation nor xRechnung.
  • Solution: Set one of the two, see Transformation.

CONVERTER_TRANSFORMATION_XSLT_NOT_VALID = -154

  • Message: XSLT transformation file is not valid
  • Cause: A resource with the format xslt cannot be read or compiled as an XSLT stylesheet. This includes a stylesheet of a custom XRechnung visualization. As xslt is the default of format, another resource, for example a CSS file, without format="other" returns the code as well.
  • Solution: Check the stylesheet, and set format to other for every resource that is not a stylesheet. See Transformation.

CONVERTER_TRANSFORMATION_XRECHNUNG_VISUALIZATION = -155

  • Message: Unable to apply XRechnung visualization
  • Cause: The HTML that the XRechnung visualization created cannot be prepared for the conversion: it cannot be read, changed or written.
  • Solution: If you pass a visualization of your own, check its HTML output. Otherwise check the server log and send the invoice to support. See XRechnung.

CONVERTER_TRANSFORMATION_XRECHNUNG_UNKNOWN_FORMAT = -156

  • Message: Unable to detect XRechnung data file type
  • Cause: The xRechnung transformation is requested, but the XML document is not an invoice in a known format: its root element is not a CII CrossIndustryInvoice, a UBL Invoice or CreditNote, or an XRechnung invoice, each in its namespace.
  • Solution: Check that the document is an electronic invoice in one of these formats. See XRechnung.

CONVERTER_UNABLE_TO_READ_METADATA = -157

  • Message: Unable to read metadata information for the file: <reason>
  • Cause: The metadata of an image, for example its EXIF data, cannot be read. The OCR web service returns the code as well for a TIFF image, and the Barcode web service for an image in which it detects barcodes.
  • Solution: Check the image file; the reason in the message names the problem. See Graphic formats.

CONVERTER_UNABLE_TO_LOAD_IMAGE = -158

  • Message: Unable to read the image, because no image reader is available for the file format
  • Cause: An image cannot be read or embedded: no image reader is available for the format, the file is damaged or not an image, or the image cannot be drawn into the PDF. The Barcode web service returns the code as well.
  • Solution: Check that the image opens in an image viewer and that its format is supported, see Graphic formats.

CONVERTER_EXCEPTION = -159

  • Message: Unexpected exception: <reason>
  • Cause: An unexpected error in a converter; if the job was cancelled, for example when maxLatency was reached, the code is THREAD_WAS_INTERRUPTED (-8) instead. The reason names the detail:
    • The native Word Converter fails on the document.
    • An image cannot be processed (The image could not be processed).
  • Solution: Send the document and the message to support. For a docx document, another converter can be used meanwhile, see Choosing an alternative converter.

CONVERTER_CHROMIUM_PROCESS_ERROR = -160

  • Message: Execution error in external '<name>' process: '<reason>'
  • Cause: The communication with the Chromium engine fails during the conversion, for example because a page does not answer in time, or because Chromium rejects the locale or the time zone of the request. This also applies to the URLConverter web service.
  • Solution: Check the locale and timeZone of the request, see Locale and time zone. If pages keep timing out, see Self-healing of an unresponsive browser and check the server log.

URLConverter web service​

The URLConverter web service returns these codes when it loads a web page from an address and converts it to PDF. The message is the text of the exception; parts in angle brackets are filled in by the server. Most errors of this web service have codes of other sections: a page that cannot be loaded returns UNABLE_TO_LOAD_CONTENT_FROM_URI = -12, an address with a syntax error returns WEBSERVICE_INVALID_URL = -58 (REST) or PARAMETER_VALUE_ERROR = -20 (SOAP, see URLConverter in the SOAP methods), and an error of the conversion in Chromium returns a code of the "Converter" web service, for example CONVERTER_CHROMIUM_PROCESS_ERROR = -160. The page is loaded with the proxy settings of the server or the proxy of the request, the truststore and the HTTP settings of the request.

URLCONVERTER_INVALID_SOURCE_URL = -205

  • Message: Invalid source URL: <reason>

  • Cause: The source address of the conversion cannot be used:

    • It is a file: address, and reading local server files is not allowed. The message is Invalid source URL: File protocol is not allowed, and the request is rejected before the file is opened. Only WEBPDF_HTTP_OPTIONS_ALLOW_FILE_PROTOCOL=true (or -Dwebpdf.http.options.allow.file.protocol=true) allows a file: source of this web service; the narrower WEBPDF_HTTP_OPTIONS_ALLOW_FILE_PROTOCOL_SOAP_FILE_URL does not apply to it. If the file: source is allowed but the file cannot be read, the request ends with UNABLE_TO_SAVE_SOURCE_FILE = -4.
    • The address cannot be parsed when the conversion starts. The message is Invalid source URL: Invalid syntax, followed by a line with the reason and the position of the error. An address with a syntax error is normally rejected earlier, with WEBSERVICE_INVALID_URL = -58 through the REST interface and PARAMETER_VALUE_ERROR = -20 through the SOAP interface.

    An http or https address that cannot be loaded, or whose user information contains an unencoded @, is reported with UNABLE_TO_LOAD_CONTENT_FROM_URI = -12.

  • Solution: Load the page from an http or https address. Allow the file: source only if the deployment needs it, see File protocol access. See also HTML converter.

URLCONVERTER_NOT_AN_ABSOLUTE_URL = -207

  • Message: Not a absolute URL
  • Cause: Not returned by this version; the code is reserved.

URLCONVERTER_UNABLE_TO_CREATE_PDF_FILE = -212

  • Message: Unable to convert HTML content into a PDF document
  • Cause: Not returned by this version; the code is reserved.

URLCONVERTER_PARAMETER_ERROR = -215

  • Message: Invalid parameter
  • Cause: Not returned by this version; the code is reserved.

URLCONVERTER_EXTERNAL_PROCESS_IO_ERROR = -224

  • Message: External IO error
  • Cause: The main page of the address was loaded, but the server cannot prepare it for the conversion: the loaded page cannot be written to a file in the working folder of the job, for example for lack of access rights or disk space. Despite the message, no external program is involved. A connection that fails, breaks or times out while the page is loaded is reported with UNABLE_TO_LOAD_CONTENT_FROM_URI = -12. The resources of the page, such as images, are loaded by Chromium during the conversion and do not return this code.
  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure, and the server log.

URLCONVERTER_EXTERNAL_PROCESS_EXCEPTION = -225

  • Message: External process exception
  • Cause: Not returned by this version; the code is reserved.

URLCONVERTER_EXTERNAL_PROCESS_UNKNOWN_EXITCODE = -226

  • Message: Unknown exit code of external application
  • Cause: Not returned by this version; the code is reserved.

URLCONVERTER_EXTERNAL_PROCESS_PRINT_ERROR = -227

  • Message: Unable to convert HTML content
  • Cause: Not returned by this version; the code is reserved.

Signature web service​

The Signature web service returns these codes when it signs a PDF document or removes its signatures; a conversion that signs its result (signature of the converter parameter) returns them as well. The message is the text of the exception; parts in angle brackets are filled in by the server. Several errors of a signature have codes of the PDF document section, for example PDF_CHANGING_SIGNED_DOCUMENT = -5038 for a change that the signatures of the document do not permit, PDF_CERTIFICATE_PEM_DECODE_ERROR = -5051 for PEM data that cannot be decoded, and PDF_CERTIFICATE_WRONG_PASSWORD = -5057 for a wrong password of an encrypted private key.

SIGNATURE_UNEXPECTED_SIGN_EXCEPTION = -300

  • Message: Unexpected sign exception
  • Cause: Adding a signature fails with an error that has no code of its own:
    • the image of the visible appearance (data of image in appearance) cannot be read, for example because it is damaged,
    • the PKCS#11 token (smart card) that holds the key was removed or can no longer be accessed while the document is signed.
  • Solution: Check the image of the appearance and, for PKCS#11, the token and its reader. The stack trace of the exception names the reason.

SIGNATURE_KEY_NOT_FOUND = -311

  • Message: Unable to sign file: key not found
  • Cause: The signature uses a certificate of a keystore (the request contains no signer), and the key cannot be found:
    • keyName of add is empty, for example because the request sets neither keyName nor signer,
    • no certificate with this alias exists, neither in the keystore of the user of the session nor in the global keystore of the server.
  • Solution: Set keyName to the alias of a certificate in the global keystore, see Use of the global keystore and Keystore configuration. To sign with a certificate of your own instead, pass it in signer, see Use of individual certificates.

SIGNATURE_PEM_PARSE_ERROR = -312

  • Message: Unable to get certificates and keys from PEM content, followed by the line No key pair available
  • Cause: The request contains signer without keyPair. The schema check of the REST and SOAP interfaces already rejects such a request with PARAMETER_VALIDATION_ERROR = -21, so this code is not expected. PEM data that cannot be decoded is reported with PDF_CERTIFICATE_PEM_DECODE_ERROR = -5051, a wrong password of an encrypted private key with PDF_CERTIFICATE_WRONG_PASSWORD = -5057.
  • Solution: Pass the certificate and the private key in keyPair of signer, see Use of individual certificates and PEM.

SIGNATURE_NO_CERTIFICATE_AVAILABLE = -313

  • Message: Unable to sign file: no certificate available
  • Cause: The PEM data in signer contains no certificate, for example because certificate holds only a key, or text without a PEM block. PEM data that cannot be decoded is reported with PDF_CERTIFICATE_PEM_DECODE_ERROR = -5051 instead.
  • Solution: Pass the certificate of the signer in certificate of keyPair, as a PEM block that starts with -----BEGIN CERTIFICATE-----, see PEM.

SIGNATURE_NOT_A_X509_CERTIFICATE = -314

  • Message: Unable to sign file: not a X509 certificate
  • Cause: Not returned by this version; the code is reserved.

SIGNATURE_TOO_MANY_X509_CERTIFICATES = -315

  • Message: Too many certificates: exactly one certificate with public and private key is required
  • Cause: The PEM data in signer contains more than one certificate that is not the issuer of another certificate of the data, for example the certificates of two signers. The certificate of the signer together with the certificates of its chain is accepted, because the issuing certificates are recognized as its chain. A certificate that does not link to the chain of the signer counts as a further certificate - for example a root certificate whose intermediate certificate is missing.
  • Solution: Pass only the certificate of the signer, if needed with the complete chain of its issuing certificates, and its private key, see PEM.

SIGNATURE_NOT_A_PDF_FILE = -321

  • Message: Unable to sign file: not a pdf file
  • Cause: The document to be signed is not a PDF document: it does not contain the PDF signature %PDF-, or it is a ZIP archive, for example an Office document. The code is returned only when a signature is added, after the key has been checked.
  • Solution: Send a PDF document. To sign a document in another format, convert it with the "Converter" web service and let the conversion sign the result (signature of the converter parameter).

SIGNATURE_NO_PRIVATE_KEY_AVAILABLE = -322

  • Message: Unable to sign file: no private key available
  • Cause: The certificate of the signature has no usable private key:
    • the PEM data in signer contains no private key that belongs to the certificate,
    • the keystore entry that keyName selects has no private key, or its private key is protected by a password that neither the keystore configuration nor keyPassword of add unlocks.
  • Solution: Pass the private key that belongs to the certificate in privateKey of keyPair, or set the correct keyPassword. Make sure that the keystore contains the certificate together with its private key, see Keystore configuration and Use of the global keystore.

SIGNATURE_TSA_ACCESS_SERVER = -323

  • Message: Unable to use the TSA server: <reason>

  • Cause: A time stamp authority (TSA) is configured, and the time stamp for the signature cannot be obtained from it. The reason names the problem:

    • <status> <text>: the TSA answered with an HTTP error status, for example 401 Unauthorized,
    • No response received to the TSA request: the answer is empty,
    • Unable to decode the TSA response: the answer is not a valid time stamp response, or it does not match the request,
    • <text> (PKI status: <number>): the TSA rejected the request; the text is the one of the TSA,
    • Response does not have a time stamp token: the TSA granted the request but sent no time stamp.

    If the TSA cannot be reached - the host cannot be resolved, the connection fails or times out, or the TLS handshake fails - the signature ends with UNABLE_TO_LOAD_CONTENT_FROM_URI = -12 instead; the same applies to an unencoded @ in the user information of the TSA address. When the "Signature" web service starts, it requests one time stamp to check the TSA. If that fails, the web service does not start: the server log names the TSA and the reason, and requests are answered with SERVER_NOT_STARTED = -2.

  • Solution: Check the address, the user, the password and the hash algorithm of the TSA, see TSA configuration and Timestamp failures, and whether the server can reach the TSA, including a required proxy. If the web service did not start, remove the reason and restart the server.

SIGNATURE_CERTIFICATE_NOT_VALID = -327

  • Message: Certificate is not valid (not in validity period)
  • Cause: The certificate of the signer is outside its validity period at the time of signing: it has expired, or it is not valid yet. Only the certificate of the signer is checked, not the certificates of its chain.
  • Solution: Use a valid certificate, or renew it. If a valid certificate is rejected, check the date and time of the server.

SIGNATURE_INVALID_PAGE_NUMBER = -328

  • Message: Invalid page number
  • Cause: The page of the visible appearance (page of appearance, counted from 1) is greater than the number of pages of the document.
  • Solution: Set page to a page of the document, see Position and size of the visible appearance.

SIGNATURE_INVALID_OPERATION = -329

  • Message: Invalid signature operation
  • Cause: The signature parameter contains neither add nor clear. The schema check of the REST and SOAP interfaces already rejects such a request with PARAMETER_VALIDATION_ERROR = -21, so this code is not expected.
  • Solution: Send add to sign the document or clear to remove its signatures, see Digital signature.

SIGNATURE_PRIVATE_KEY_ACCESS_ERROR = -330

  • Message: Private key access error (<reason>)
  • Cause: Not returned by this version; the code is reserved.

SIGNATURE_PKCS11_ACCESS_ERROR = -331

  • Message: PKCS#11 keystore access error (<reason>)
  • Cause: The key of the signature is stored on a PKCS#11 token (smart card), and the login to the token fails before the document is signed. The reason is the message of the PKCS#11 provider, or No keystore available. The PIN is keyPassword of add if it is set, otherwise the password of the keystore configuration.
  • Solution: Check that the token is available in its reader, the PIN, and the PKCS#11 configuration file pkcs11.cfg in the configuration folder. See Global keystore and Keystore configuration.

SIGNATURE_REMOVE_WRITE_ERROR = -332

  • Message: An error occurred, when writing a document, after removing it´s signatures.
  • Cause: Not returned by this version; the code is reserved.

SIGNATURE_NOT_FOUND_FOR_REMOVAL = -333

  • Message: The signature that should have been removed, could not be found.
  • Cause: The clear operation is requested for a document that contains no signature. Signature fields that are not signed do not count.
  • Solution: Check whether the document is signed; a document without signatures needs no clear. See Remove signatures while preserving the visual appearance.

SIGNATURE_RECERTIFICATION_NOT_ALLOWED = -334

  • Message: A certifying signature must be unique in the document, adding another certifying signature is forbidden.
  • Cause: A certifying signature is requested for a document that already contains one, and a document can hold only one certifying signature. A signature certifies the document whenever certificationLevel of add is not none; the default is noChanges. The code is returned with the default signatureEditProfile adobeRestrictions of settings/signature. With generalEditRestrictions, the request ends with PDF_CHANGING_SIGNED_DOCUMENT = -5038 instead; with noEditRestrictions, the existing signatures are removed and the new signature is added.
  • Solution: Add an approval signature with certificationLevel set to none, if the certifying signature of the document permits further signatures. Otherwise remove the existing signatures first, if that is acceptable. See Change restrictions of signed documents and Signature settings.

SIGNATURE_APPEARANCE_FONT_NOT_FOUND = -335

  • Message: The font for the visual signature was not found: <name>
  • Cause: The font that the request names for the visible appearance (name of font in appearance) is not found in the font directories of the "Signature" web service, by its family name or its PostScript name, and no substitute font that is configured for it is installed either. The code is also returned if the web service has no fonts at all. The value Helvetica (in any case) is not searched: it selects the PDF standard font.
  • Solution: Correct the name, or install the font in the font directories of the "Signature" web service (fontPath), or leave font out to use the fonts of the server. See Text and font of the visible appearance, Configuration of the Signature web service and Fonts.

SIGNATURE_APPEARANCE_FONT_NOT_USABLE = -336

  • Message: The font for the visual signature cannot be embedded: <name>
  • Cause: The font that the request names for the visible appearance is found, but it cannot be used: it is not a TrueType font or TrueType collection, its file cannot be read or embedded, or it has no line metrics. Only a font named in the request returns this code. A font of the server that cannot be used is skipped with a warning in the server log, and a defaultFont that cannot be used is reported in the server log when the web service starts.
  • Solution: Name another font, or leave font out to use the fonts of the server. Check the server log for the reason, see Diagnosing font problems and Text and font of the visible appearance.

SIGNATURE_APPEARANCE_CHARACTER_NOT_SUPPORTED = -337

  • Message: The text of the visual signature contains characters that the font cannot display: <code points>, for example U+4E2D, U+6587; after 20 code points the list ends with and <number> more.

  • Cause: The text of the visible appearance - from the request or from the certificate - contains characters that cannot be drawn:

    • A font that is named in the request is binding: its missing characters are not drawn with another font.
    • Without a font in the request, none of the fonts of the server has the characters: the defaultFont of the web service, then "Go Noto Current", "Go Noto CJKCore", "Go Noto CJKExt", "Go Noto Emoji", "DejaVu Sans", "Arial Unicode MS" and, under Windows, "Arial".
    • If no font of the server can be used, the text is drawn with the standard font Helvetica, which shows only the characters of the Windows Latin character set.

    The message names the code points only, never the characters, because the text can come from a certificate. A localized date that the fonts cannot draw is written in the ISO form instead and does not return this code. The code is not returned when the value Helvetica selects the PDF standard font.

  • Solution: Name a font that has the characters, or leave font out to use the fonts of the server. If none of them has the characters, install a font that covers them in the font directories of the "Signature" web service. See Text and font of the visible appearance and Fonts.

SIGNATURE_APPEARANCE_TEXT_TOO_LARGE = -338

  • Message: The text of the visual signature does not fit into the signature field, even at the smallest font size
  • Cause: A text of the visible appearance does not fit into its area of the signature field even at a font size of 1 point. If the appearance shows both a name and an identifier text, each of them has half of the field. The code is not returned when the value Helvetica selects the PDF standard font.
  • Solution: Enlarge the signature field (width and height of position; the unit is millimeters unless metrics says otherwise), or shorten the text, for example by showing fewer identifierElements. See Position and size of the visible appearance.

Pdfa web service​

The Pdfa web service returns these codes when it converts a PDF document to PDF/A (convert), validates a PDF/A document (analyze) or embeds or checks an electronic invoice. The message is the text of the exception; parts in angle brackets are filled in by the server. If the PDF/A converter reports the error, the message continues with the error lines of its report and ends with the exit code of the converter in square brackets, for example [4]. The codes from -400 to -411 and -416 are not always returned as an error, because the XML report can take their place: in analyze, and in convert with errorReport set to file, the report is the result of the request and carries the code in error and the exit code in sub-error; with errorReport set to message, the message consists of the report.

PDFA_UNABLE_TO_CONVERT = -400

  • Message: Unable to convert document into requested PDF/A format

  • Cause: The PDF/A converter reports that the document does not conform, or cannot be made to conform, to the requested level:

    • [4]: the document has problems that the conversion cannot fix,
    • [5]: the analysis before the conversion finds the document damaged, and the conversion stops because the content could change,
    • [6]: the converted document still fails the check after the conversion,
    • [8]: the document itself does not conform to the level.

    If errorCorrection is enabled, the server tries to repair the document after a failed conversion and converts it a second time; the code remains if the second conversion fails as well.

  • Solution: Request the XML report with errorReport and check its analysis and post-analysis sections, see Error and fixes. Install the fonts that the document uses but does not embed, see Fonts. For a level a, the document needs tags; autoTagging adds them, or choose a level b. For a damaged document, enable errorCorrection and check the result, see Error correction.

PDFA_COMMAND_LINE = -402

  • Message: Invalid argument on the PDF/A converter command line
  • Cause: The PDF/A converter rejects an argument that the server passes to it (exit code [3]). The server builds the arguments from its configuration and from the request, for example the level, the image quality, the password of the document and the font folders.
  • Solution: Check the parameters of the request against the REST API. If they are valid, collect the support information and contact support.

PDFA_UNKNOWN_ERROR = -404

  • Message: Unknown error from external converter application
  • Cause: The PDF/A converter ends with an exit code that has no code of its own. The number in square brackets is the exit code.
  • Solution: Check the server log and that the pdftools folder of the installation is complete, see Directory details. If the error remains, send the document and the exit code to support.

PDFA_LICENSE_NOT_VALID = -405

  • Message: Invalid license for PDF/A converter
  • Cause: The PDF/A converter rejects the license key that the server passes to it (exit code [10]). This key is part of the installation; it is not the webPDF license key. If the webPDF license does not cover the Pdfa web service, the web service is not available at all, see SERVER_NOT_STARTED = -2 and WEBSERVICE_DISABLED = -3.
  • Solution: Make sure that the pdftools folder belongs to the installed webPDF version and has not been changed or replaced, see Directory details. Collect the support information and contact support.

PDFA_FILE_COULD_NOT_BE_OPENED = -406

  • Message: Unable to read source PDF document for PDF/A conversion
  • Cause: The PDF/A converter cannot open the source document (exit code [1]): the document is damaged or not a PDF document, or it is protected by a password to open it and the request passes no password or a wrong one.
  • Solution: Check that the document opens in a PDF viewer. For a protected document, pass the password with the open attribute of the password parameter, see the REST API. To check an invoice XML without a PDF, use the invoice operation, see Invoice validation without a PDF.

PDFA_FILE_COULD_NOT_BE_SAVED = -408

  • Message: Unable to save converted PDF/A document
  • Cause: The PDF/A converter cannot create its output file in the working folder of the job (exit code [2]), for example because the disk is full or the server may not write to its temp folder.
  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure.

PDFA_INVALID_LEVEL_FOR_ZUGFERD = -409

  • Message: Not a valid PDF/A level for ZUGFeRD
  • Cause: The convert operation is to embed an invoice (zugferd), but its level is below PDF/A-3 (1a, 1b, 2a, 2b or 2u). An invoice can only be embedded in a PDF/A-3 document.
  • Solution: Set level to 3a, 3b or 3u, see Data embedding.

PDFA_ZUGFERD_SCHEMA_VALIDATION_ERROR = -410

  • Message: XML document cannot be validated using the selected ZUGFeRD schema: <reason>
  • Cause: The invoice XML of zugferd does not match webPDF's schema for the version and profile selected with version of xmlFile. The reason lists the findings of the schema check in the same form as for PARAMETER_VALIDATION_ERROR = -21. This check covers the structure of the invoice only; the business rules are checked by the invoice rule validation, see PDFA_ZUGFERD_RULE_VALIDATION_ERROR = -416. If the schema of the selected version is not available on the server, the reason is Internal error and the server log names the schema.
  • Solution: Select the version that matches the version and profile of the invoice, and correct the invoice at the line and column that the message names. See Data embedding and Supported schemas.

PDFA_ZUGFERD_INVALID_XML_FILE = -411

  • Message: Invalid XML syntax in ZUGFeRD file

  • Cause: The invoice XML of zugferd cannot be read as XML:

    • it is not well-formed, or it contains bytes that are not valid in the encoding that it declares,
    • it contains a DOCTYPE declaration, which is rejected by default,
    • with DOCTYPE declarations allowed: it refers to an external DTD, which is always rejected, or its entities exceed the expansion limits of the server.

    The message does not name the reason; the stack trace of the exception contains the message of the XML parser.

  • Solution: Check the invoice with an XML validator and remove the DOCTYPE declaration; ZUGFeRD and Factur-X do not use a DTD. See Security: DOCTYPE declarations are rejected by default. If a generator cannot do without the declaration, see Opt-out.

PDFA_ZUGFERD_UNABLE_TO_STORE_XML_FILE = -412

  • Message: Unable to store ZUGFeRD XML file inside the PDF document
  • Cause: The PDF/A converter reports in its report that it could not add the invoice XML to the document. The code takes precedence over the result of the conversion and over errorReport; the report of the converter is not returned.
  • Solution: Convert the document without zugferd to check whether the PDF/A conversion itself succeeds. If it does, send the document and the invoice XML to support.

PDFA_REPORT_ACCESS_ERROR = -413

  • Message: Unable to read the PDF/A report file
  • Cause: Despite the message, the server cannot write a report:
    • convert with successReport set to zip or linked: the report cannot be combined with the converted document, because the ZIP archive cannot be created or the report cannot be appended to the document,
    • invoice: the invoice validation report cannot be written as the result document.
  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure.

PDFA_UNKNOWN_OPERATION = -414

  • Message: Unknown PDF/A operation
  • Cause: Practically not returned. The server returns it when the pdfa parameter contains none of the operations convert, analyze and invoice; a REST or SOAP request without one of them is already rejected by the schema check with PARAMETER_VALIDATION_ERROR = -21.
  • Solution: Pass exactly one of convert, analyze and invoice in the pdfa parameter, see PDF/A.

PDFA_REPORT_SAVE_ERROR = -415

  • Message: Unable to save the PDF/A report file
  • Cause: The server cannot write the XML report of the PDF/A converter. It writes the report for every convert and analyze request to its temporary folder, and with errorReport set to file also as the result document. The code replaces the result of the conversion.
  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure.

PDFA_ZUGFERD_RULE_VALIDATION_ERROR = -416

  • Message: ZUGFeRD/Factur-X invoice rejected by rule validation: <reason>

  • Cause: The invoice of zugferd was rejected by the invoice rule validation (invoiceRuleValidation with mode set to enforce) during convert, before it is embedded. The check runs after webPDF's own schema check (-410). The reason tells the two kinds of rejection apart:

    • <n> rule violation(s) found (rule set '<id>'): the rule package rejects the invoice; the number counts its errors,
    • document could not be evaluated (reason: <reason>, rule set: <id>): the invoice could not be checked, for example because no rule package matches it (noScenario) or the time budget was exceeded (timeBudgetExceeded), and notEvaluable is reject, the default.

    Only convert returns this code. The analyze and invoice operations never return it: they record the same decision as enforcement in the report they return - the invoice element of the XML report, or the invoice validation report - and the request succeeds.

  • Solution: Request the report with errorReport to see the findings in its invoice element, see Invoice validation report, and correct the invoice. If the wrong rule package was chosen, force the right one with ruleSet, see Rule packages. To let invoices pass that cannot be evaluated, set notEvaluable to accept. See How a rejection surfaces, per branch.

Toolbox web service​

The Toolbox web service returns these codes when it runs one of its operations on a PDF document, for example to merge, split or protect a document, to export pages as images, to print, or to add a watermark, a background, headers and footers, annotations or form data. The message is the text of the exception; parts in angle brackets are filled in by the server.

TOOLBOX_NO_OPERATION_SELECTED = -500

  • Message: No Web service operation selected
  • Cause: The request contains no operation to run:
    • The toolbox parameter contains no operation.
    • The security operation contains none of encrypt, encryptCertificate and decrypt.
  • Solution: Add at least one operation to the toolbox parameter, see Toolbox. For security, set one of the three elements, see Encrypting and decrypting documents.

TOOLBOX_MULTIPLE_SOURCE_DOCUMENTS_NOT_SUPPORTED = -501

  • Message: This operation does not support a source containing more than one document
  • Cause: The source document of the call is a ZIP archive that holds more than one document, and the operation produces a result file of its own, so it can answer for a single document only. This applies to split, image, extraction, compress and transcribe, to attachment and portfolio with extract, and to forms with export. The code is returned before any result is written. Only the merge operation takes an archive of several documents as its source, through its sourceIsZip parameter.
  • Solution: Pass a source that contains exactly one document, or process the documents one by one. To work with the contents of an archive, extract it first, see Archives.

TOOLBOX_SECURITY_UNABLE_TO_ENCRYPT_DOCUMENT = -523

  • Message: Unable to encrypt the document
  • Cause: The encrypt element of the security operation contains no password element, so there is nothing to encrypt the document with.
  • Solution: Set password with the password to open the document (open), the password for the permissions (permission), or both, see Passwords.

TOOLBOX_SECURITY_CERTIFICATE_FAILURE = -524

  • Message: Unable to encrypt the document using the given certificate
  • Cause: The encryption with certificates (encryptCertificate) fails:
    • A recipient contains no certificate.
    • The document cannot be encrypted with the certificates of the recipients. The stackTrace of the error response contains the reason.
  • Solution: Give every recipient exactly one certificate, and check the reason in the error response. See Certificates.

TOOLBOX_SECURITY_ACCESS_RECIPIENT_UNCLEAR = -525

  • Message: One valid recipient certificate must be selected
  • Cause: The certificate of a recipient of encryptCertificate contains more than one certificate, for example a complete certificate chain. A recipient takes exactly one certificate; copies of the same certificate count once.
  • Solution: Pass only the certificate of the recipient itself. For several recipients, add one recipient for each. See Certificates.

TOOLBOX_SECURITY_ACCESS_RECIPIENT_INVALID = -526

  • Message: The set recipient certificate seems to be invalid
  • Cause: The certificate of a recipient of encryptCertificate contains no certificate, for example because the data is empty or is not a certificate in PEM format (-----BEGIN CERTIFICATE-----). A recipient without any certificate element returns TOOLBOX_SECURITY_CERTIFICATE_FAILURE (-524) instead.
  • Solution: Pass the X.509 certificate of the recipient in PEM format, see Certificates.

TOOLBOX_SECURITY_CERTIFICATE_NOT_VALID = -527

  • Message: Certificate is not valid (not in validity period)
  • Cause: The certificate of a recipient of encryptCertificate is not valid at the time of the server: it has expired or is not yet valid. Only the validity period is checked here.
  • Solution: Use a certificate that is currently valid, and check the date and time of the server. See Certificates.

TOOLBOX_SPLIT_UNABLE_TO_CREATE_ZIP = -585

  • Message: Unable to add PDF document to ZIP file
  • Cause: The split operation cannot write its result: the ZIP archive for the parts cannot be created (modes each, group, burst and single), a part cannot be written into it, or the result file cannot be written. Typical reasons are a full disk or missing write permission.
  • Solution: Check the free disk space and the write permission of the folders of the server, see Directory structure, and check the server log.

TOOLBOX_SPLIT_NO_PAGES_TO_SPLIT = -586

  • Message: Selection returns empty content
  • Cause: The settings of the split operation select no page of the document:
    • With the modes first, last and list, the result contains no page, for example because pages lies beyond the last page in the mode first, or selects no existing page in the mode list.
    • With the modes each, group, burst and single, no part is created, for example because startPage lies beyond the last page, or because pages selects no existing page in the mode single.
  • Solution: Check mode, pages and startPage against the number of pages of the document, see Toolbox.

TOOLBOX_SPLIT_IO_ERROR = -587

  • Message: Document's content could not be read
  • Cause: While the split operation builds the parts, it cannot read the resources that the source document shares between its pages (for example fonts and images) or its layers (optional content). The document is probably damaged.
  • Solution: Check that the document opens without errors in a PDF viewer. Re-create the document if possible; otherwise send it to support.

TOOLBOX_MERGE_UNABLE_TO_INSERT_PAGES = -621

  • Message: Unable to insert pages into PDF document
  • Cause: The data to insert cannot be opened for reading. This concerns the id format of data: the server packs the documents that the IDs reference into a temporary archive, and this archive cannot be opened. A document to insert that is damaged or that needs a password to open does not return this code.
  • Solution: Check the free disk space and the server log, see Directory structure.

TOOLBOX_MERGE_NO_FILE_TO_MERGE = -622

  • Message: No file to merge
  • Cause: There is no document to insert: the merge operation has no data element, data has no value, or a document to insert is empty (0 bytes). This includes an empty file in the ZIP archive of data.
  • Solution: Pass the document to insert in data: a single PDF document with format set to pdf, several documents in a ZIP archive with zip, or document IDs with id. If the source document of the call is a ZIP archive with all documents, set sourceIsZip instead. See Toolbox.

TOOLBOX_MERGE_UNABLE_TO_ACCESS_DOCUMENT = -623

  • Message: Unable to access the source PDF document
  • Cause: A part of the documents cannot be read or written while they are merged:
    • The document to insert cannot be copied into a temporary file.
    • The outlines (bookmarks) or the page labels of the source document or of the document to insert cannot be read.
    • The XMP metadata of a PDF/A source document cannot be read when its PDF/A identification is removed. A document to insert that is damaged or that needs a password to open does not return this code; the operation passes no password for the documents to insert.
  • Solution: Check that both documents open without errors in a PDF viewer, and check the free disk space of the server, see Directory structure. For the metadata of a PDF/A document, set resetMetadata to true, so that the result gets new metadata instead.

TOOLBOX_MERGE_UNABLE_TO_ACCESS_SOURCE_ZIP = -624

  • Message: Unable to access the source ZIP file
  • Cause: The source document of the call is a ZIP archive and sourceIsZip of the merge operation is set, but the archive contains no file, or the server cannot copy the archive into its working files. An archive that cannot be opened at all is reported with a code of the Archive section.
  • Solution: Pass an archive that contains the documents. The first file of the archive is the document that the other files are appended to, in the order of the archive; mode does not apply. Check the free disk space of the server, see Directory structure.

TOOLBOX_MERGE_UNABLE_TO_READ_INPUT_ZIP = -625

  • Message: Unable to read the source ZIP file
  • Cause: Despite the message, the code does not only concern ZIP archives:
    • A file of the ZIP archive of data cannot be read.
    • The resources that a document to insert shares between its pages (for example fonts, images and color spaces) cannot be read or added to the source document. This also happens when data holds a single PDF document.
  • Solution: Check that the archive can be extracted and that each document opens without errors in a PDF viewer. Re-create a damaged document if possible; otherwise send it to support.

TOOLBOX_MERGE_NO_PAGES_TO_MERGE = -626

  • Message: No pages to merge
  • Cause: A document to insert has no pages.
  • Solution: Remove the document from the data to insert, or replace it with a document that has pages.

TOOLBOX_MERGE_NOT_A_PDF = -627

  • Message: Document is not a PDF document
  • Cause: The data to insert, or a file of the ZIP archive of data, is not a PDF document. The first file of an archive that is not a PDF document stops the operation.
  • Solution: Insert only PDF documents, and set format to zip for an archive. Convert other files with the Converter web service first.

TOOLBOX_MERGE_NO_FILES_IN_ZIP = -629

  • Message: ZIP file contains no files to merge
  • Cause: The ZIP archive in data contains no file.
  • Solution: Pass an archive that contains the documents to insert.

TOOLBOX_MERGE_PDF_SYNTAX_ERROR = -632

  • Message: A syntax error has been found in one of the given documents
  • Cause: While the contents of the documents are combined - metadata, output intents, resources, names, page labels, article threads, outlines, form fields, layers and the structure tree - an object of one of the documents has a form that the PDF format does not allow at that place. The operation stops instead of losing information.
  • Solution: Check the documents with a PDF validator and re-create the faulty one if possible; otherwise send the documents to support.

TOOLBOX_MERGE_ZIP_REQUIRED = -633

  • Message: This mode requires a ZIP archive as it's source file
  • Cause: Not returned by this version; the code is reserved.

TOOLBOX_IMAGE_UNABLE_TO_CREATE_ZIP_STREAM = -641

  • Message: Unable to create ZIP file
  • Cause: The image operation exports more than one page and writes the images into a ZIP archive, and this archive cannot be created or completed, for example because the disk is full or the server may not write the file.
  • Solution: Check the free disk space and the write permission of the folders of the server, see Directory structure, and check the server log.

TOOLBOX_IMAGE_UNABLE_TO_SAVE = -642

  • Message: Unable to save image file
  • Cause: Not returned by this version; the code is reserved.

TOOLBOX_IMAGE_UNABLE_TO_SAVE_IO_ERROR = -643

  • Message: Image export IO error
  • Cause: The image operation cannot render or write a page:
    • A page cannot be rendered, for example because its content cannot be read.
    • The image file cannot be written, or the output file, which still holds the result of a preceding operation of the call, cannot be emptied first.
    • A multi-page TIFF (multipage) cannot be written completely.
    • The SVG export of a page fails. If the content of a page exceeds a limit for content streams, the code is PDF_CORRUPTED_DOCUMENT (-5028) instead, and the message names the limit.
  • Solution: Check the free disk space and the write permission of the folders of the server, see Directory structure. Check that the page opens without errors in a PDF viewer. If the error remains, send the document to support. See Image export.

TOOLBOX_IMAGE_UNABLE_TO_SAVE_ZIP_IO_ERROR = -644

  • Message: ZIP file IO error
  • Cause: The image operation exports more than one page, and the image of a page cannot be added to the ZIP archive of the result, for example because the disk is full.
  • Solution: Check the free disk space of the server, see Directory structure, and check the server log.

TOOLBOX_IMAGE_NO_PAGES_TO_EXPORT = -646

  • Message: No pages to export
  • Cause: None of the pages that pages of the image operation selects exists in the document, for example 5 for a document with three pages.
  • Solution: Select pages that exist, for example 1, 1-3 or * for all pages. See Image export.

TOOLBOX_IMAGE_METADATA_UPDATE = -647

  • Message: Unable to update metadata of the image
  • Cause: The resolution (dpi) cannot be written into the metadata of a BMP, PNG, JPEG or TIFF image, or the header of a written BMP file is not as expected or cannot be changed.
  • Solution: Try another image format. If the error remains, send the request and the document to support.

TOOLBOX_IMAGE_NO_IMAGE_WRITER = -648

  • Message: No export filter for the image format
  • Cause: The server has no export filter for the selected format (bmp, gif, png, jpeg or tiff). With the formats that the parameters allow, this is not expected.
  • Solution: Collect the support information and contact support.

TOOLBOX_IMAGE_UNKNOWN_TYPE = -649

  • Message: Unknown image type
  • Cause: The image operation selects no image format: none of bmp, gif, png, jpeg, tiff and svg is set.
  • Solution: Set exactly one of the formats, see Image export.

TOOLBOX_IMAGE_MAX_SIZE_EXCEEDED = -650

  • Message: The image dimensions exceed the maximum image size
  • Cause: The image of a page would be too large: the number of pixels that results from the size of the page and the resolution (dpi) or the given width and height exceeds what one image can hold.
  • Solution: Reduce the resolution (dpi) or the dimensions of the image, see Image export.

TOOLBOX_IMAGE_REDUCE_FILE_SIZE = -651

  • Message: Unable to reduce the file size to the requested maximum
  • Cause: The size optimization of a JPEG image (sizeOptimization of jpeg) cannot reach the maximum file size: maxSize is 0 or lower, the file is still larger than maxSize after maxRetries attempts, or the next attempt would lower the quality to zero. Each attempt lowers the quality by stepSize percentage points, starting with jpegQuality.
  • Solution: Raise maxSize or maxRetries, or reduce the resolution (dpi) or the dimensions of the image.

TOOLBOX_PRINT_UNABLE_TO_PRINT_DOCUMENT = -660

  • Message: Unable to print the PDF document
  • Cause: The print operation fails: the printer cannot be used for the print job, the print system reports an error, or the pages cannot be prepared for the printer. In the mode raster, this includes the case that the mark that makes the printer rasterize a page cannot be added. If the content of a page exceeds a limit for content streams, the code is PDF_CORRUPTED_DOCUMENT (-5028) instead, and the message names the limit.
  • Solution: Check that the printer is reachable from the server and ready to print, and check its driver. The stackTrace of the error response contains the reason.

TOOLBOX_PRINT_INVALID_PAGE_RANGE = -661

  • Message: No pages selected
  • Cause: pages of the print operation is not a valid page range for the print system, for example because it contains a page number below 1, is not written as a list of pages and ranges (1-3,5), or selects no page at all. An empty value or a value with * prints all pages. The value is not checked against the number of pages of the document.
  • Solution: Write pages as a comma-separated list of page numbers and ranges, for example 1-3,5, or leave it empty to print all pages.

TOOLBOX_PRINT_INVALID_NUMBER_OF_COPIES = -662

  • Message: Invalid number of copies
  • Cause: copies of the print operation is lower than 1.
  • Solution: Set copies to 1 or higher.

TOOLBOX_PRINT_PRINTER_NOT_FOUND = -664

  • Message: Printer not found
  • Cause: printerName of the print operation names no printer that is available on the server; the name must match exactly, including upper and lower case. Without a name, the default printer is used, and the code means that the server has no default printer.
  • Solution: Install the printer on the server and pass its exact name, or set up a default printer on the server.

TOOLBOX_PRINT_SECURITY_EXCEPTION = -665

  • Message: Print operation with PDF document not allowed
  • Cause: The Java runtime of the server refuses the print job with a security error. Despite the message, the code has nothing to do with the permissions of the PDF document: the print operation does not check whether the document allows printing.
  • Solution: Check the server log and the stackTrace of the error response for the reason. If it remains unclear, collect the support information and contact support.

TOOLBOX_PRINT_ILLEGAL_ARGUMENT = -666

  • Message: Illegal argument for print operation
  • Cause: The print job fails with an error about an illegal argument while it is set up or sent to the printer.
  • Solution: Check the settings of the print operation and the driver of the printer; update the driver or try another printer. The stackTrace of the error response contains the reason.

TOOLBOX_OPTIONS_INVALID_DURATION = -670

  • Message: A selected duration is invalid
  • Cause: duration or autoScrollTime of a pageTransition of the options operation is negative.
  • Solution: Set both values to 0 or higher, see Page transition effects and Automatic page change.

TOOLBOX_OPTIONS_XOBJECT_CREATION_FAILURE = -671

  • Message: A valid XObject could not be created
  • Cause: A background or a header and footer of the options operation cannot be created or drawn:
    • The image of an imageBackground cannot be loaded or read: it is missing, it is not in an image format that the server reads, or its address (source set to uri) cannot be loaded. The original reason is not reported.
    • The background or the header and footer cannot be drawn on a page, or the size of a text of the header or footer cannot be determined.
  • Solution: For an image background, pass the image in a common format such as PNG or JPEG, and check that an address can be loaded from the server. See Backgrounds and Headers and Footers. If the error remains, send the request and the document to support.

TOOLBOX_OPTIONS_METADATA_UPDATE = -672

  • Message: The XObject's metadata could not be created
  • Cause: The data that marks a new background or header and footer as such for PDF editors cannot be written into the document.
  • Solution: Send the request and the document to support.

TOOLBOX_OPTIONS_UNABLE_TO_REMOVE_XOBJECT = -673

  • Message: A XObject could not be removed
  • Cause: An existing background or header and footer cannot be removed, because the content of a page cannot be read or written. This happens with remove of background or headerFooter, and when a new one replaces the existing one (replaceExisting).
  • Solution: Check that the document opens without errors in a PDF viewer. If the error remains, send the document to support.

TOOLBOX_OPTIONS_DOCUMENT_XOBJECT_COLLISION = -674

  • Message: The document does already contain a unique XObject
  • Cause: The document already contains a background, or a header and footer, and the options operation adds a new one of the same kind while replaceExisting is false (the default). A document can hold only one background and one header and footer configuration.
  • Solution: Set replaceExisting to true, or remove the existing one first with remove. See Backgrounds and Headers and Footers.

TOOLBOX_OPTIONS_PAGE_INTERVAL_ERROR = -675

  • Message: Invalid page interval specified
  • Cause: pages of the pageInterval of a background or a header and footer names more than one interval. It must select all pages (*), a single page, or one range of consecutive pages such as 2-5; a list such as 1,3 or 1-3,5-7 is rejected. The value is not checked against the number of pages of the document.
  • Solution: Use a single interval, and limit it with odd and even where needed. See Backgrounds and Headers and Footers.

TOOLBOX_OPTIONS_LOADING_FONT_FAILED = -676

  • Message: A required font could not be loaded
  • Cause: The font of a header or footer (toolbox options operation) cannot be used: the font that the request names is not found in the font folders of the "Toolbox" web service, it cannot be embedded because it is not a TrueType font (.ttf or .ttc), it cannot be read, or the header or footer cannot be written with it. Without a font name, the default font of the web service is used, or Helvetica if no default font is available.
  • Solution: Name a TrueType font that is installed in the font folders of the "Toolbox" web service, or leave out the name to use the default font. See Headers and Footers and Fonts.

TOOLBOX_OPTIONS_UNKNOWN_BOX_TYPE = -677

  • Message: Invalid box type specified
  • Cause: box of boxesResize or boxesRemove names a page box that the server does not know. All values that the parameters allow (media_box, crop_box, bleed_box, trim_box and art_box) are known, so the code is not expected in practice.
  • Solution: Use one of these values, see Setting page boxes.

TOOLBOX_OPTIONS_FONT_ENCODING_FAILED = -678

  • Message: The text contains unencodable content - possibly a missing glyph.
  • Cause: A text of a header or footer contains a character that its font has no glyph for. This applies to a font that the request names, to the default font of the "Toolbox" web service, and to Helvetica, which covers only Western European characters. The text is not shortened.
  • Solution: Use a font that contains every character of the text, or make such a font the default font of the "Toolbox" web service. See Default font and Headers and Footers.

TOOLBOX_WATERMARK_UNABLE_TO_DRAW_WATERMARK = -680

  • Message: Unable to draw watermark
  • Cause: The watermark operation cannot draw the watermark: the image cannot be added to the document, or the text or the image cannot be written into the content of a page.
  • Solution: Send the document and the parameters of the request to support.

TOOLBOX_WATERMARK_UNABLE_TO_GET_FONT = -681

  • Message: Unable to load font file
  • Cause: The font that name of a text watermark names is found, but its file cannot be read or embedded, for example because it is damaged. Without a name, a default font that cannot be read is replaced by Helvetica instead of returning this code.
  • Solution: Name another font, or replace the damaged font file, see Diagnosing font problems.

TOOLBOX_WATERMARK_INVALID_IMAGE_DATA = -682

  • Message: Image data is not valid
  • Cause: The image of an image watermark (data of image) is recognized as an image, but it cannot be read, for example because the file is damaged.
  • Solution: Check that the image opens in an image viewer. Pass it Base64-encoded as the value of data, or with source set to uri and its address in uri.

TOOLBOX_WATERMARK_NO_IMAGE_AVAILABLE = -683

  • Message: No image for watermark specified
  • Cause: The data of an image watermark contains no image that the server can read: it is missing or empty, or it is not in a supported image format.
  • Solution: Pass an image in a common format such as PNG, JPEG or GIF, Base64-encoded as the value of data, or with source set to uri and its address in uri.

TOOLBOX_WATERMARK_UNABLE_TO_GET_FONT_METRICS = -685

  • Message: Unable to get font metrics
  • Cause: The size of the watermark text cannot be determined with its font: the widths or the descent of the font cannot be read, or the font provides no usable line height.
  • Solution: Name another font for the watermark, see Diagnosing font problems.

TOOLBOX_WATERMARK_UNABLE_TO_FIND_FONT = -686

  • Message: Unable to find the font by it's font family name
  • Cause: The font that name of a text watermark names is not found in the font folders of the "Toolbox" web service - neither by its family name, an alternative name nor its PostScript name, with upper and lower case counting - and no substitute font applies to it. The web service reads only files with the extensions .ttf and .ttc; a font in another format, for example .otf, is not found.
  • Solution: Install the font in the font folders of the "Toolbox" web service, or name an installed font in exactly its spelling. Without a name, the default font of the web service is used. See Directories, Font family and style names and Substitute fonts.

TOOLBOX_WATERMARK_FONT_FORMAT_NOT_ALLOWED = -687

  • Message: Font format is not supported
  • Cause: The font that name of a text watermark names is found, but it is not a TrueType font or TrueType collection and therefore cannot be embedded. Because the "Toolbox" web service reads only .ttf and .ttc files, a font in another format usually returns TOOLBOX_WATERMARK_UNABLE_TO_FIND_FONT (-686) instead.
  • Solution: Name a TrueType font, see Directories.

TOOLBOX_WATERMARK_INVALID_CHAR_IN_TEXT = -688

  • Message: The text contains a character which isn't supported by the font
  • Cause: The text of a text watermark contains a character that its font cannot draw. This applies to a font that the request names, to the default font of the "Toolbox" web service, and to Helvetica, which covers only Western European characters. The text is not shortened.
  • Solution: Use a font that contains every character of the text, or make such a font the default font of the "Toolbox" web service. See Default font and, for symbol fonts, Symbol character sets.

TOOLBOX_WATERMARK_UNKNOWN_TYPE = -689

  • Message: Unknown watermark type
  • Cause: The watermark operation contains neither text nor image.
  • Solution: Set text for a text watermark or image for an image watermark, see Toolbox.

TOOLBOX_WATERMARK_UNABLE_TO_USE_HELVETICA_FONT = -690

  • Message: Unable to use default font 'Helvetica'
  • Cause: A text watermark without a font name falls back to the standard font Helvetica when the "Toolbox" web service has no usable default font, and Helvetica provides no usable line height. Its metrics are part of the server, so the code is not expected in practice.
  • Solution: Make a default font available to the "Toolbox" web service, see Default font. If the error remains, contact support.

TOOLBOX_EXTRACTION_UNABLE_TO_GET_CONTENT = -800

  • Message: Unable to extract content from the PDF document
  • Cause: The extraction operation cannot read the content it extracts:
    • the text, words, paragraphs or links of a page cannot be read, because the PDF library reports a read error for the content of the page. A content stream that exceeds a nesting limit or refers to itself is reported with PDF_CORRUPTED_DOCUMENT = -5028 instead.
    • an image of the images extraction cannot be read or converted, or the ZIP archive with the images cannot be written.
  • Solution: Check whether the document opens without errors in a PDF viewer, and check the server log and the free space of the temporary folder. If the document is valid, send it to support. See Toolbox.

TOOLBOX_EXTRACTION_UNKNOWN_MODE = -801

  • Message: Unknown extraction mode
  • Cause: The extraction operation contains none of the elements text, links, words, info, paragraphs or images, so the server does not know what to extract.
  • Solution: Add exactly one of these elements to the operation, see the parameters of the REST API and the SOAP methods.

TOOLBOX_EXTRACTION_UNABLE_TO_BUILD_XML_CONTENT = -802

  • Message: Unable to build XML content, for a character that XML 1.0 does not allow followed by a line that names where the value lies and its code points
  • Cause: The result of the extraction cannot be built:
    • The info extraction cannot read a part of the document information (a read error of the PDF library).
    • A value of an extraction in the format xml (modes words, text, paragraphs, links and info) contains a character that XML 1.0 does not allow, for example a control character such as U+0001. The message names where the value lies (element or attribute, and the page if it is known) and the code points as U+XXXX; it never contains the value. It points to the format json, which returns such control characters unchanged. A lone surrogate (U+D800 to U+DFFF without its partner) cannot be encoded in UTF-8, so the extraction cannot return it in any format; the message then has no hint to json. Until the text extraction keeps such characters intact, this also affects text in a right-to-left script (for example Hebrew or Arabic) that contains an emoji or another character outside the Basic Multilingual Plane, in the modes text and paragraphs: the extraction splits such a character into two lone surrogates. The character U+0000 is still removed without an error.
  • Solution: For control characters, request the format json (fileFormat). For a read error of the info extraction, check the document and the server log, and send the document to support if it is valid.

TOOLBOX_EXTRACTION_UNABLE_TO_WRITE_XML = -803

  • Message: Unable to write XML content
  • Cause: The result of an extraction in the format xml, json or text cannot be written to the result file, for example for lack of access rights or disk space. Despite the message, the code applies to all three formats.
  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure, and the server log.

TOOLBOX_EXTRACTION_UNSUPPORTED_FILE_FORMAT = -804

  • Message: The given file format is not supported in this context.
  • Cause: Practically not returned. The server handles every format that the schema permits for an extraction (text, xml, json and zip). A format that an extraction mode does not offer, for example zip for text, is rejected by the schema check with PARAMETER_VALIDATION_ERROR = -21.
  • Solution: Contact support with the server log if the code occurs.

TOOLBOX_XMP_INVALID_JSON_STRUCTURE = -900

  • Message: Data structure (JSON data) is not valid
  • Cause: The data of the xmp operation is not valid JSON, for example because a value, a comma or a bracket is missing.
  • Solution: Check the JSON data with a JSON validator. See XMP Metadata for the expected structure.

TOOLBOX_XMP_NOT_A_JSON_ARRAY = -901

  • Message: Data structure has no JSON data array
  • Cause: The data of the xmp operation is valid JSON, but its top level is not an array of properties. This includes empty data.
  • Solution: Pass the properties as a JSON array, see XMP Metadata.

TOOLBOX_XMP_INVALID_JSON_PROPERTY_VALUE = -902

  • Message: Invalid JSON data type
  • Cause: A propertyValue does not match its propertyType, for example text for the type Integer, an empty or invalid date for the type Date, or such a value in the fields of a sub-schema (type Schema).
  • Solution: Correct the value, see XMP Metadata. A date is expected in the ISO 8601 form, for example 2004-10-05T16:17:18+02:00.

TOOLBOX_XMP_INVALID_JSON_PROPERTY_STRUCTURE = -903

  • Message: Invalid JSON structure
  • Cause: Practically not returned. The server reports the errors of the JSON data with -900, -901, -902 and -904.
  • Solution: Contact support with the server log if the code occurs.

TOOLBOX_XMP_INVALID_PROPERTY_STRUCTURE = -904

  • Message: Invalid data structure
  • Cause: An entry of the JSON array is not a property: it has no propertyType, its propertyType is not one of Text, Boolean, Date, Integer, Real or Schema, or the entry is null.
  • Solution: Give every entry a propertyType of the list above, see XMP Metadata.

TOOLBOX_XMP_UNABLE_TO_GET_PDF_METADATA = -905

  • Message: Unable to extract the PDF metadata from the document
  • Cause: The existing XMP metadata of the PDF document cannot be read as XML, or the document information (modification date and producer) cannot be updated.
  • Solution: Check the document, for example by opening its document properties in a PDF viewer, and the server log. If the document is valid, send it to support.

TOOLBOX_XMP_UNABLE_TO_GET_PDFA_METADATA = -906

  • Message: Unable to get the PDF/A metadata from the document
  • Cause: The xmp operation can only extend existing XMP metadata:
    • the PDF document has no XMP metadata at all, for example a document of a PDF version older than 1.4; the operation does not create new metadata,
    • the PDF/A identification in the existing XMP metadata cannot be read.
  • Solution: Use a document that already has XMP metadata, for example the result of a PDF/A conversion. Check a document with damaged metadata in a PDF viewer.

TOOLBOX_XMP_UNABLE_TO_UPDATE_METADATA = -907

  • Message: Unable to update the metadata of the document
  • Cause: The new schema cannot be added to the XMP metadata, for example because the namespacePrefix of the namespace element is empty or a property of the type Schema has an empty propertyValue. The code is also returned when the changed metadata cannot be written into the document.
  • Solution: Set namespaceName, namespacePrefix and namespaceURI, and give every sub-schema its typePrefix, typeURI, typeDescription and fields, see Sub-schema.

TOOLBOX_XMP_INCOMPLETE_SETTINGS = -911

  • Message: Incomplete settings
  • Cause: Practically not returned. The code stands for an xmp operation without a namespace or a data element, but the schema check of the request requires both and rejects such a request with PARAMETER_VALIDATION_ERROR = -21.
  • Solution: Specify namespace and data, see XMP Metadata.

TOOLBOX_FORMS_UNKNOWN_MODE = -1000

  • Message: Unknown mode form mode
  • Cause: Practically not returned. The server handles all three modes of the forms operation; a forms operation without a mode returns TOOLBOX_FORMS_UNKNOWN_TYPE = -1017.
  • Solution: Contact support with the server log if the code occurs.

TOOLBOX_FORMS_NOT_A_FORM = -1001

  • Message: PDF document is not a form
  • Cause: The PDF document contains no form (no AcroForm and no XFA form). The forms operation returns the code for every mode. The REST request for the form information of a document (GET /documents/{documentId}/info/form) returns it in the error entry of its answer.
  • Solution: Use a document with form fields. See Documents for the REST document storage.

TOOLBOX_FORMS_NO_XFA = -1002

  • Message: PDF is not a XFA form
  • Cause: The format xdp was requested for the export or import of the forms operation, but the document is an AcroForm without XFA content.
  • Solution: Use the format xml, fdf or xfdf for an AcroForm.

TOOLBOX_FORMS_UNABLE_TO_EXTRACT_CONTENT = -1003

  • Message: Unable to extract form content, in some cases followed by a line that names the field and the reason
  • Cause: The form data cannot be exported (export of the forms operation), or the form information cannot be created (GET /documents/{documentId}/info/form, which returns the code in the error entry of its answer):
    • the field values cannot be read or the export file cannot be written,
    • the export in the format xml or xfdf (and the form template of info/form) meets a field value or field name that contains a character XML 1.0 does not allow, for example a control character such as U+0001; the message names the field and the code points and never contains the field value. For an XFA form, the same applies to its data in the export in the format xml or xdp and to the attributes uuid and timeStamp of the XFA content,
    • the same export of an AcroForm and the form template of info/form meet a form field without a name (its own /T missing or empty, or the /T of a group above it missing; a group with an empty /T is no error); the message says where the field lies. Push buttons and signature fields without a name are not exported and are no error,
    • the export in the format xml and the form template of info/form meet a list with multiple selection whose joined value the import would lead back to a different selection (for example "a" and "b" are selected and "a,b" is also an option); the message names the field and never the value.
  • Solution: Correct the field named in the message, for example by giving the field a name or removing the control character from its value. For control characters in the values of an AcroForm, the format fdf can be used. Check the server log if the message names no field.

TOOLBOX_FORMS_UNABLE_TO_IMPORT_CONTENT = -1004

  • Message: Unable to import data into form
  • Cause: The data of the import of the forms operation cannot be applied to the form:
    • the data of the format fdf cannot be read as FDF, or the PDF library cannot import it,
    • an import in the format fdf meets fields of the same name so many times in the FDF data and in the form that they cannot be assigned (a structure that does not conform to the specification); the cause is included in the stackTrace of the error response,
    • an FDF value has a type the import does not know; the stackTrace names the form field and never the value,
    • after an import in the format xml, xfdf or fdf, the appearance of a form field cannot be written.
  • Solution: Compare the data with an export of the same form in the same format and make the field names unique. Check the server log for the reason.

TOOLBOX_FORMS_RENDER_PROBLEM = -1005

  • Message: Unable to flatten the PDF document
  • Cause: The form fields cannot be flattened (flatten of the forms operation, or import with flatten), because the PDF library reports an error while it writes the field contents into the pages.
  • Solution: Check the server log. If the document opens without errors in a PDF viewer, send it to support.

TOOLBOX_FORMS_UNABLE_TO_EXTRACT_XFA_CONTENT = -1006

  • Message: Document has no XFA content
  • Cause: The form of the document has an XFA entry, but its XFA content cannot be read or is empty. This concerns the export in the format xml or xdp, the import in the format xml or xdp, and the form information info/form.
  • Solution: Check the form in a PDF viewer that supports XFA, and send the document to support if it is valid.

TOOLBOX_FORMS_INVALID_XFA_STRUCTURE = -1007

  • Message: XFA content has invalid structure., in some cases followed by a line with the reason
  • Cause: The XFA content of the document cannot be processed:
    • it cannot be read as XML,
    • it contains no template,
    • a form field of the document is not found in the XFA template, or its name has no index. This is checked when data is imported into an XFA form and for the form information info/form.
  • Solution: Check the form in a PDF viewer that supports XFA. If the form was created with a design tool, save it again there. Otherwise send the document to support.

TOOLBOX_FORMS_INVALID_FIELD = -1008

  • Message: Unknown or unsupported field type
  • Cause: Despite the message, the code does not concern the type of a field: the value of a form field cannot be written during an import of the forms operation, because the PDF library cannot write the appearance of the field. This applies to the formats xml and xfdf, and for the fields of an XFA form to xml and xdp.
  • Solution: Check the server log for the field and the reason, and send the document together with the import data to support.

TOOLBOX_FORMS_NO_ACROFORM = -1009

  • Message: This is not an AcroForm
  • Cause: The format fdf or xfdf was requested for the export or import of the forms operation, but the document is an XFA form.
  • Solution: Use the format xml or xdp for an XFA form.

TOOLBOX_FORMS_INVALID_STRUCTURE = -1010

  • Message: XML data content has invalid structure., for XFDF rich text followed by a line with the reason
  • Cause: The data of the import of the forms operation cannot be read as XML: the data of the format xml or xfdf (into an AcroForm), or of the format xml or xdp (into an XFA form), is not well-formed, or the rich text of an XFDF value-richtext element cannot be read.
  • Solution: Check the data with an XML parser, and compare it with an export of the same form in the same format.

TOOLBOX_FORMS_UNABLE_TO_FIND_XML_DATA = -1011

  • Message: Unable to find data node in XML content
  • Cause: An import into an XFA form finds no data node in the data: for the format xml the element data below document/datasets in the namespace http://schema.webpdf.de/1.0/form/data, for the format xdp the element xfa:data below xdp:xdp/xfa:datasets.
  • Solution: Add the data node, and compare the data with an export of the same form in the same format.

TOOLBOX_FORMS_UNABLE_TO_FIND_XFA_DATA = -1012

  • Message: Unable to find data node in XFA content
  • Cause: A data node is missing:
    • the XFA content of the document has no xfa:datasets element (import in the format xml or xdp into an XFA form), or no xfa:data element below it (export in the format xml or xdp, and the form information info/form),
    • an import into an AcroForm finds no data node in the data: for the format xml the element data below document/datasets in the namespace http://schema.webpdf.de/1.0/form/data, for the format xfdf the element fields below xfdf in the namespace http://ns.adobe.com/xfdf/. Despite the message, the code then concerns the import data, not the XFA content. A missing or wrong namespace has the same effect.
  • Solution: For the import data, add the data node with the correct namespace; an export of the same form shows the expected structure. For the XFA content, check the form in a PDF viewer that supports XFA.

TOOLBOX_FORMS_UNABLE_TO_UPDATE_XFA = -1013

  • Message: Unable to update XFA content in the PDF document
  • Cause: After an import into an XFA form, the changed XFA content cannot be written back into the document.
  • Solution: Check the server log for the reason, and send the document together with the import data to support.

TOOLBOX_FORMS_FLATTEN_NOT_POSSIBLE = -1014

  • Message: Flatten for a 'dynamic XFA' form is not supported
  • Cause: Two situations return this code:
    • The form fields of a dynamic XFA form are to be flattened (flatten of the forms operation, or import with flatten). The server cannot flatten a dynamic XFA form.
    • The redact operation removes the forms of the document (sanitize, forms enabled), and flattening the form fails with an error of the PDF library.
  • Solution: Flatten only AcroForms and static XFA forms. For the redact operation, check the server log; if the form may stay in the document, switch off forms in sanitize.

TOOLBOX_FORMS_NAMESPACE_NOT_DEFINED = -1015

  • Message: XML data file does not contain a valid namespace definition
  • Cause: An import in the format xml into an XFA form: the root element of the data is not in the namespace http://schema.webpdf.de/1.0/form/data.
  • Solution: Declare the namespace on the root element, as an export of the same form in the format xml shows.

TOOLBOX_FORMS_INVALID_FIELD_VALUE = -1016

  • Message: Not allowed value for a field, in some cases followed by a line that names the form field

  • Cause: A form field does not accept a value of the import of the forms operation:

    • the PDF library rejects the value, for example a value that is not one of the options of a check box or a choice field, or a value of a comb field that is longer than its /MaxLen,
    • no font can draw a character of the value of a text field or a choice field, see Form fields,
    • an import in the format xml or xfdf into a list with multiple selection carries a value that cannot be assigned unambiguously to options of the list (a value with a comma is taken whole if it is an option, otherwise it is split at the comma so that every piece is an option).

    Where the error response names the form field - in the message, or for a value that the PDF library rejects in the stackTrace - it never contains the value or the valid values.

  • Solution: Send a value that the field accepts, for example an option of the field. An export of the form shows the values the import reads back.

TOOLBOX_FORMS_UNKNOWN_TYPE = -1017

  • Message: Unknown forms operation
  • Cause: The forms operation contains none of the elements import, export or flatten.
  • Solution: Add exactly one of these elements, see the parameters of the REST API and the SOAP methods.

TOOLBOX_FORMS_NO_DATA_FOR_IMPORT = -1018

  • Message: No data for import
  • Cause: The data element of the import of the forms operation has no content.
  • Solution: Pass the form data in data.

TOOLBOX_ATTACHMENT_UNKNOWN_MODE = -1100

  • Message: Unknown mode for attachment operation
  • Cause: Practically not returned. The code stands for an attachment operation without add, remove or extract, but the schema check of the request requires one of them and rejects such a request with PARAMETER_VALIDATION_ERROR = -21.
  • Solution: Specify add, remove or extract, see the parameters of the REST API and the SOAP methods.

TOOLBOX_ATTACHMENT_SOURCE_FILE_ACCESS_FAILURE = -1101

  • Message: Unable to access the PDF document
  • Cause: The attachments of the document cannot be read or written:
    • the extract of the attachment operation cannot read an attachment or cannot write the result file or ZIP archive,
    • the portfolio operation cannot read or write the files of the portfolio, or the document has no first page, which a portfolio needs for add, remove and sort.
  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure, and the server log. If the error occurs with one document only, the document or its attachments may be damaged.

TOOLBOX_ANNOTATION_INVALID_OPTION_VALUE = -1200

  • Message: Unknown mode for the annotation operation
  • Cause: The annotation operation contains none of the elements add, remove, edit, clear or comment.
  • Solution: Add exactly one of these elements, see the parameters of the REST API and the SOAP methods.

TOOLBOX_ANNOTATION_SOURCE_FILE_ACCESS_FAILURE = -1201

  • Message: Unable to access the PDF document
  • Cause: Not returned by this version; the code is reserved.

TOOLBOX_ANNOTATION_INVALID_FONT_SELECTION = -1202

  • Message: Unable to find the selected font.
  • Cause: The font that the font element of a free text annotation names (name) is not found in the font directories of the "Toolbox" web service, and no installed substitute font replaces it. Besides the family name, the PostScript name of a font is accepted.
  • Solution: Name a font that is installed in the font directories of the "Toolbox" web service, or leave out the name to use the default font. See Directories and Toolbox and Signature.

TOOLBOX_ANNOTATION_UNSUPPORTED_FONT_FORMAT = -1203

  • Message: The selected font format is not supported.
  • Cause: The font that a free text annotation names is found, but it cannot be embedded, because it is not a TrueType font (.ttf or .ttc).
  • Solution: Name a TrueType font, or leave out the name to use the default font, see Font embedding.

TOOLBOX_ANNOTATION_FONT_LOAD_ERROR = -1204

  • Message: The selected font could not be loaded.
  • Cause: The font that a free text annotation names is found, but it cannot be read or embedded into the document, for example because the font file is damaged.
  • Solution: Check the server log for the font file, and name another font. See Diagnosing font problems.

TOOLBOX_ANNOTATION_CONTENT_CREATION_ERROR = -1205

  • Message: Creating the annotations content failed.
  • Cause: The appearance of an annotation or form field cannot be created or drawn:
    • The annotation operation cannot draw an annotation that it adds or edits, for example because the text of a free text annotation cannot be measured, the PDF library creates no appearance for a line, square or circle, or the normalAppearance of a text or rubber stamp annotation cannot be written.
    • The annotations of a page cannot be flattened (remove or clear with flatten).
    • For an annotation or form field without an appearance, the appearance could not be created: a drawing step failed, a limit was exceeded, or rich text could not be read and there is no plain text. This is checked whenever the server draws such an annotation or field: when it renders pages (images, transcribe, redact with sanitize/pages, the "OCR" and "Barcode" web services), flattens annotations and forms, imports form data or redraws form fields.
  • Solution: Check the server log for the annotation and the reason. See Errors for the limits and the operations concerned.

TOOLBOX_ANNOTATION_INVALID_DATA = -1206

  • Message: Appearance data is not valid

  • Cause: The normalAppearance of a text or rubber stamp annotation cannot be used:

    • the image cannot be drawn,
    • the page of a pdf appearance cannot be copied into the annotation,
    • the svg data cannot be stored, or its conversion gives no page or a page that cannot be copied.

    A page whose content exceeds the limit maxPageContentSize is reported with PDF_CONTENT_STREAM_LIMIT_EXCEEDED = -5031 instead. If the svg data cannot be converted at all, the code is CONVERTER_CHROMIUM_INSTANCE_NOT_AVAILABLE = -149.

  • Solution: Check the appearance data, for example by opening the image, PDF document or SVG graphic in a viewer, and the server log.

TOOLBOX_ANNOTATION_RUBBER_STAMP_NO_DATA_AVAILABLE = -1207

  • Message: No data for rubber stamp specified
  • Cause: The normalAppearance of a text or rubber stamp annotation contains no usable content: the data of an image is not an image that the server can read, or the page of a pdf appearance does not exist in its document.
  • Solution: Pass the image in a common format such as PNG or JPEG, or select a page that exists in the PDF document of the appearance.

TOOLBOX_ANNOTATION_REPLY_PAGE_INVALID = -1208

  • Message: Either the page selection is invalid, or the page does not match the annotation, that shall be replied to.
  • Cause: The page of a reply (comment of the annotation operation) does not exist in the document. An annotation that is not on the selected page is reported with -1209.
  • Solution: Select the page that contains the annotation the reply refers to.

TOOLBOX_ANNOTATION_REPLY_ANNOTATION_SELECTION_FAILURE = -1209

  • Message: The annotation to reply to, could not be found.
  • Cause: The annotation that a reply refers to (replyTo) is not found on the selected page: the object ID is wrong, or the annotation lies on another page. The code is also returned when the position of the annotation cannot be read.
  • Solution: Pass the object ID of the annotation in replyTo (the number, or the number and the generation number separated by a space), and select the page that contains it.

TOOLBOX_ANNOTATION_INVALID_REPLY_TARGET = -1210

  • Message: The selected annotation can not be replied to.
  • Cause: The annotation that a reply refers to (replyTo) is itself a state of another annotation (for example a review state or a marked state), and such an annotation cannot be replied to.
  • Solution: Refer the reply to the annotation whose state was set, not to the state.

TOOLBOX_ANNOTATION_MISSING_APPEARANCE = -1211

  • Message: When creating an 'unnamed' annotation, you should provide an appearance for that annotation.
  • Cause: A text or rubber stamp annotation has icon="unnamed", but neither a normalAppearance nor a customIconName.
  • Solution: Pass a normalAppearance (image, PDF page or SVG), or select another icon.

TOOLBOX_ANNOTATION_SVG_INITIALIZATION_FAILURE = -1212

  • Message: The SVG conversion could not be initialized.
  • Cause: Not returned by this version; the code is reserved.

TOOLBOX_ANNOTATION_INVALID_CHAR_IN_TEXT = -1213

  • Message: The text contains a character which isn't supported by the font
  • Cause: A character of a text cannot be drawn:
    • The text of a free text annotation contains a character that the selected font has no glyph for (for example an emoji). The text is not shortened, and no further font is used for it.
    • No available font can draw a character of an annotation without an appearance or of the caption of a push button, when pages are rendered or flattened, form data is imported or form fields are redrawn. For the value of a text field or a choice field, the code is TOOLBOX_FORMS_INVALID_FIELD_VALUE = -1016 instead.
  • Solution: Choose a font that contains every character of the text, see Toolbox and Signature. For annotations and form fields without an appearance, install a font that has the character, see Characters the font does not have.

TOOLBOX_MOVE_INVALID_TARGET_PAGE = -1300

  • Message: The target page is not within the bounds of the document.
  • Cause: The targetPosition of the move operation is greater than the number of pages of the document.
  • Solution: Select a target page that exists in the document.

TOOLBOX_MOVE_UNSTABLE_TARGET_PAGE = -1301

  • Message: The target page must not be contained in the selection of moved pages.
  • Cause: The targetPosition of the move operation is one of the pages that are moved (pages).
  • Solution: Select a target page outside the moved pages.

TOOLBOX_OUTLINE_UNSUPPORTED_MEDIA_FORMAT = -1400

  • Message: A media object has an unsupported format.
  • Cause: The sound of a playSound action in an outline item (outline operation) is not an audio file that the server can read. This only applies when none of the attributes samplingRate, soundChannels, sampleSize and encoding is set; with them, the data is embedded as raw samples without a check.
  • Solution: Pass an uncompressed audio file such as WAV, or pass the raw samples together with samplingRate, soundChannels, sampleSize and encoding.

TOOLBOX_OUTLINE_INVALID_OUTLINE_DATA = -1401

  • Message: The outline data is erroneous.
  • Cause: Not returned by this version; the code is reserved.

TOOLBOX_REDACT_UNKNOWN_FONT = -1500

  • Message: Font determination failed for a redacted page.
  • Cause: The redact operation (blacken with redactTexts) cannot determine the font of text in an area to be redacted, so the text cannot be removed.
  • Solution: Check the server log, and send the document to support.

TOOLBOX_REDACT_READ_ERROR = -1501

  • Message: Redaction failed, unprocessable document content.
  • Cause: The content of the document cannot be processed:
    • blacken cannot read the content of a page, or cannot rewrite its text or paths without the redacted parts. A content stream that exceeds a nesting limit or refers to itself is reported with PDF_CORRUPTED_DOCUMENT = -5028 instead.
    • sanitize cannot read the annotations of a page (annotations enabled).
  • Solution: Check whether the document opens without errors in a PDF viewer, and the server log. If the document is valid, send it to support.

TOOLBOX_REDACT_WRITE_ERROR = -1502

  • Message: Document translation failed.
  • Cause: Despite the message, the redacted document cannot be written: blacken cannot draw the redaction areas on a page, cannot replace the redacted parts of an image, or cannot redraw the form fields after it removed the fields in redacted areas (redactAnnotations).
  • Solution: Check the server log, and send the document to support.

TOOLBOX_SCALE_INVALID_MODE = -1600

  • Message: Unknown mode for the scale operation.
  • Cause: The scale operation has no scalePages element, or scalePages has no dimensions.
  • Solution: Specify scalePages with dimensions, see the parameters of the REST API and the SOAP methods.

TOOLBOX_SCALE_WRITE_ERROR = -1601

  • Message: Failed to adapt page content stream.
  • Cause: The content of a page cannot be read or written while the scale operation scales it.
  • Solution: Check whether the document opens without errors in a PDF viewer, and the server log. If the document is valid, send it to support.

TOOLBOX_COMPRESS_INVALID_MODE = -1700

  • Message: Unknown mode for the compress operation
  • Cause: The compress operation has no compressObjects element.
  • Solution: Specify compressObjects, see the parameters of the REST API and the SOAP methods.

TOOLBOX_TRANSCRIBE_INVALID_MODE = -1800

  • Message: Unknown mode for the transcribe operation.
  • Cause: Practically not returned. The code stands for a transcribe operation without an html element, but the schema check of the request requires it and rejects such a request with PARAMETER_VALIDATION_ERROR = -21.
  • Solution: Specify html, see HTML export.

TOOLBOX_TRANSCRIBE_ERROR = -1801

  • Message: Failed to transcribe the document., followed by the report of the conversion; with errorReport="message", the message is the XML report itself
  • Cause: The conversion of the transcribe operation into HTML failed at the level set with failureLevel: with error only when no usable result is possible, with missingContent also when content is missing, with warning also for warnings. With errorReport="file", the caller does not receive this code: the report file is returned as the result instead. A content stream that exceeds a nesting limit is reported with PDF_CORRUPTED_DOCUMENT = -5028, and an annotation without an appearance that cannot be drawn with -1213 or -1205.
  • Solution: Evaluate the report, see Errors and corrections. If a result with missing content is acceptable, set a less strict failureLevel.

TOOLBOX_TRANSCRIBE_REPORT_ERROR = -1802

  • Message: Failed to write operation report.
  • Cause: The report of the transcribe operation cannot be written: as the report file (errorReport="file") or the XML in the message (errorReport="message") of a failed conversion, or together with the result of a successful conversion (successReport zip or linked).
  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure, and the server log.

OCR web service​

The "OCR" web service returns these codes when it checks and prepares the source document, runs the character recognition and adds the recognized text to the PDF document. The message is the text of the exception; parts in angle brackets are filled in by the server.

OCR_INVALID_LANGUAGE_PARAMETER = -701

  • Message: Unsupported language for the external OCR engine [-1073741819]
  • Cause: The OCR engine Tesseract ended with the exit code -1073741819, which the server reports with this code. The exit code stands for an abnormal end of the process on Windows (status 0xC0000005), so the code only occurs on Windows. The server does not check the language at this point: the language parameter accepts only the supported languages, and a request with another language is rejected by the parameter check before Tesseract starts.
  • Solution: Check that the tesseract folder of the installation is complete, including the language data, see Directory details, and check the server log. If the error remains, send the document and the support information to support.

OCR_EXTERNAL_PROCESS_UNKNOWN_EXITCODE = -702

  • Message: Unknown exit code of the external OCR engine [<exit code>]
  • Cause: Tesseract ended with an error that has no code of its own: an exit code other than 0, 1 and -1073741819. The message ends with the exit code.
  • Solution: Check that the image opens in an image viewer, and repeat the request. With debug mode switched on, the server log also contains the output of Tesseract. If the error remains, send the document and the support information to support.

OCR_EXTERNAL_PROCESS_INIT_ERROR = -703

  • Message: Invalid command line parameter for the external OCR engine [1]
  • Cause: Tesseract ended with the exit code 1. Tesseract returns it when it cannot start the recognition, for example because it does not find its language data. Despite the message, the server does not check the command line.
  • Solution: Check that the tesseract folder of the installation is complete, including the language data, see Directory details. With debug mode switched on, the server log also contains the output of Tesseract.

OCR_UNABLE_TO_FIND_IMAGE = -707

  • Message: Unable to access or read the source image file
  • Cause: The source is an image, the output format is pdf, and the server cannot find or read the image when it creates the pages of the PDF document from it. The server has read the file shortly before to detect its format, so the code only occurs when the file is removed or locked in the temporary folder in the meantime, for example by a virus scanner. A source document that cannot be loaded from an address is reported before the recognition starts, with UNABLE_TO_LOAD_CONTENT_FROM_URI = -12 or UNABLE_TO_SAVE_SOURCE_FILE = -4.
  • Solution: Make sure that no other program, such as a virus scanner, locks or removes files in the temporary folder, see Directory structure, and repeat the request.

OCR_UNABLE_TO_ADD_PAGE_AS_IMAGE = -708

  • Message: Unable to add image as new page into the PDF document
  • Cause: The source is an image and the output format is pdf. The server creates a page for each image of the file - for each image of a multi-page TIFF - and cannot complete one of them: the image file cannot be opened, an image of the file cannot be loaded, the image cannot be embedded into its page, or the images of the new page cannot be read back. No page is left out; the whole request fails.
  • Solution: Check that the file opens in an image viewer, including all pages of a multi-page TIFF, and check the server log. If the image is valid, send it to support.

OCR_UNKNOWN_IMAGE_FORMAT = -709

  • Message: Unknown image format of the source image file
  • Cause: Not returned by this version; the code is reserved.

OCR_UNABLE_TO_ADD_LAYER = -710

  • Message: Unable to add a new text layer to the PDF document
  • Cause: The server adds the recognized text of each page as a layer named page_<n>, where <n> is the page number. The PDF document already contains a layer with this name, for example because the OCR web service has already processed the document and forceEachPage processes its pages again.
  • Solution: Process the original document without its text layers, or leave forceEachPage off so that pages that already contain text are skipped, see Existing PDF documents.

OCR_IMAGE_FORMAT_NOT_SUPPORTED = -712

  • Message: File format of the source document is not supported; for a TIFF image with old-style JPEG compression followed by a line TIFF image with 'old-style JPEG' compression cannot be converted.
  • Cause: The server detects the format from the content of the file, not from its name, and accepts PNG, TIFF, JPEG and PDF:
    • the file has another format,
    • the file cannot be read for the detection,
    • a TIFF image with old-style JPEG compression, which Tesseract does not support, cannot be prepared for the conversion to another compression. If ImageMagick fails during this conversion, the code is CONVERTER_UNABLE_TO_START_EXPORTER = -101.
  • Solution: Send the document as PNG, TIFF, JPEG or PDF, see OCR. A document of another format can be converted to PDF with the "Converter" web service first.

OCR_IMAGE_DPI_TO_LOW = -713

  • Message: DPI resolution of the source image is to low
  • Cause: The source is an image and checkResolution is true (the default). The horizontal or the vertical resolution of the image, rounded to whole DPI, is below 200 DPI; for a multi-page TIFF, the first image is checked. An image without resolution information counts as 72 DPI. The code is also returned when the resolution of the image cannot be read. PDF documents are not checked.
  • Solution: Scan the document with at least 200 DPI, or set checkResolution to false; images with a lower resolution usually give poor results. See Output quality.

OCR_PDF_CONTAINS_TEXT = -714

  • Message: PDF document contains only pages with text
  • Cause: The source is a PDF document, and every page already contains text that can be extracted, so no page is left for the recognition. Pages with text are skipped unless forceEachPage is true. Invisible text, for example the text layer of an earlier recognition, counts as text as well.
  • Solution: The document needs no recognition. To recognize it again anyway, set forceEachPage to true, see Existing PDF documents. For a document that the OCR web service has already processed, see OCR_UNABLE_TO_ADD_LAYER = -710.

OCR_UNSUPPORTED_CHARACTER = -715

  • Message: Unsupported character in the text detected
  • Cause: The caller does not receive this code. Before the server writes a recognized word to the text layer, it replaces characters outside the Western European character set with ?. If the word still contains a character that the font of the text layer cannot encode, for example a control character, the word is left out of the text layer and the server log names the reason; the request ends without an error.
  • Solution: If words are missing from the text layer of the result, check the server log. Languages with other scripts are not supported, see Output quality.

OCR_ADD_TEXT = -716

  • Message: Unable to add text to the PDF layer
  • Cause: The server cannot write the text layer of a page: the content for the layer cannot be created, or it cannot be completed after the words were written. A single word that cannot be written is left out without an error.
  • Solution: Check the server log for the reason. If the error occurs with one document only, send it to support.

OCR_NO_IMAGE_WRITER = -717

  • Message: No valid image writer found
  • Cause: The source is a PDF document, and the server finds no writer for TIFF images, which it needs to pass the images of the pages to the recognition. The installation contains this writer, so the code points to an incomplete or damaged installation.
  • Solution: Check the installation and the server log of the server start. If the error remains, send the support information to support.

OCR_IMAGE_EXTRACT = -718

  • Message: Unable to extract images for the pages from the PDF document
  • Cause: The source is a PDF document. For the pages that are recognized, the server takes the images of the page - or renders the page if it contains no image - and writes them to a TIFF file in the working folder. This fails: the TIFF file cannot be created or written, or the content of a page cannot be read or rendered, for example because the page is damaged. A content stream that exceeds a nesting limit is reported with PDF_CORRUPTED_DOCUMENT = -5028 instead.
  • Solution: Check that the document opens in a PDF viewer, and check the access rights and the free space of the temporary folder, see Directory structure. If the document is valid, send it to support.

OCR_NON_BALANCED_PAGES = -719

  • Message: The number of pages in the PDF document differs from the image pages
  • Cause: The output format is pdf, and the OCR engine returned results for a different number of images than the server passed to it, so the recognized text cannot be assigned to the pages. For a PDF document, every image of a recognized page is passed as an image of its own.
  • Solution: Check the server log, and send the document to support.

OCR_HOCR_PARSER = -720

  • Message: Unable to parse the HOCR output of the external OCR engine
  • Cause: The output format is pdf, and the server cannot read the result file of Tesseract (hOCR) from the working folder: the file is missing or cannot be read.
  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure, and the server log.

OCR_WARNING_TOO_FEW_CHARACTERS = -721

  • Message: The number of characters is insufficient for OCR
  • Cause: The code is only returned if failOnWarning is true. Tesseract ended without an error, but its output contains the warning that it found too few characters on a page (Too few characters. Skipping this page, followed by a note on the orientation of the page). Without failOnWarning, the warning is ignored.
  • Solution: Pages with little text cannot always be recognized. Use a source of better quality, or leave failOnWarning off to accept such results. See Output quality.

OCR_WARNING_INVALID_RESOLUTION = -722

  • Message: The resolution claimed by the image is either invalid or could not be confirmed
  • Cause: The code is only returned if failOnWarning is true. Tesseract ended without an error, but its output contains the warning that the resolution of the image is not valid and that it uses another one (Invalid resolution <dpi> dpi. Using <dpi> instead.). Without failOnWarning, the warning is ignored.
  • Solution: Check the resolution that the image states, or leave failOnWarning off. See Output quality.

Barcode web service​

The Barcode web service returns these codes when it creates barcodes (add) or recognizes them (detect). The message is the text of the exception; parts in angle brackets are filled in by the server.

BARCODE_UNKNOWN_MODE = -2000

  • Message: Unknown mode for the barcode operation
  • Cause: Practically not returned. The server returns it when the barcode parameter contains neither add nor detect; a REST or SOAP request without one of them is already rejected by the schema check with PARAMETER_VALIDATION_ERROR = -21.
  • Solution: Pass either add or detect in the barcode parameter, see Barcodes.

BARCODE_UNKNOWN_FORMAT = -2001

  • Message: Unknown barcode format
  • Cause: Not returned by this version; the code is reserved.

BARCODE_ILLEGAL_ARGUMENT = -2003

  • Message: Illegal argument for the barcode operation: <reason>
  • Cause: A barcode of add cannot be created from its settings: the barcode encoder rejects the value or another setting of the barcode, for example a value with characters or a length that the format does not allow. The reason is the message of the encoder. The Swiss QR invoice (qrswiss) reports its problems with BARCODE_INVALID_CONTENT = -2012 instead.
  • Solution: Correct the value or setting that the reason names. Check the value against the character set and the capacity of the format, see 1D barcodes and 2D barcodes.

BARCODE_OUTPUT_CREATION_FAILED = -2006

  • Message: Unable to create barcode detection content file

  • Cause: The server cannot write the result of the operation. Despite the message, the code covers both modes:

    • detect: the result with the recognized barcodes (outputFormat json or xml) cannot be written,
    • add with an image format as outputFormat (jpg, bmp, png or tif): the barcode image cannot be written, or, for several barcodes, an image cannot be encoded in the format or the ZIP archive with the images cannot be written.

    An add with the default output pdf does not return this code.

  • Solution: Check the free space and the access rights of the temp folder of the server, see Directory structure. The image formats of outputFormat of add are meant for internal use; use the default pdf.

BARCODE_FILE_UNREADABLE = -2008

  • Message: Unable to read PDF document

  • Cause: An I/O error occurs while the document is processed. Despite the message, the code is not limited to reading a PDF document:

    • detect with inputFormat img: the image file cannot be read,
    • detect with inputFormat pdf: a page cannot be rendered for the recognition,
    • add: a barcode cannot be drawn onto a page of the PDF document.

    If a page exceeds a processing limit for content streams during the recognition, the code is PDF_CORRUPTED_DOCUMENT = -5028 instead.

  • Solution: Check that the document or the image opens in a viewer, and check the server log for the reason. If the error remains, send the document to support.

BARCODE_ILLEGAL_HEIGHT = -2009

  • Message: Illegal height value for the barcode
  • Cause: A barcode of add does not fit into the height of its position: the barcode that the encoder creates for the value is higher. The check applies as soon as width or height is set; a value that is not set counts as 15 points, so a position with only a width can fail this check. A rotation by 90 or 270 degrees swaps the width and the height of the barcode. The Swiss QR invoice is not checked.
  • Solution: Increase height, or leave both width and height unset so that the barcode is created in the size that it needs.

BARCODE_ILLEGAL_WIDTH = -2010

  • Message: Illegal width value for the barcode
  • Cause: A barcode of add does not fit into the width of its position: the barcode that the encoder creates for the value is wider. The check applies as soon as width or height is set; a value that is not set counts as 15 points, so a position with only a height can fail this check. A rotation by 90 or 270 degrees swaps the width and the height of the barcode. The Swiss QR invoice is not checked.
  • Solution: Increase width, or leave both width and height unset so that the barcode is created in the size that it needs. A longer value needs a wider barcode.

BARCODE_INVALID_SCAN_AREA = -2011

  • Message: Invalid area for barcode detection
  • Cause: The start point of the scanArea of a selection lies outside the page or the image: x or y is negative or larger than its width or height. An area that reaches beyond the edge is cut at the edge, and a width or height of 0 extends the area to the edge.
  • Solution: Check x, y, metrics and coordinates of scanArea against the size of the page or the image, see Recognition mode.

BARCODE_INVALID_CONTENT = -2012

  • Message: Invalid data structure: <reason>
  • Cause: The data of a Swiss QR invoice (qrswiss) cannot be used. The reason names the problem:
    • with format json of content, the content is not valid JSON or does not match the structure of the bill data,
    • with format plain, the content is not a valid text of a QR bill,
    • the bill data does not pass the check of the Swiss QR bill when the barcode is created.
  • Solution: Correct the content that the reason names, see Swiss QR invoice.

BARCODE_INVALID_PAGE_NUMBER = -2013

  • Message: Invalid page number
  • Cause: A Swiss QR invoice (qrswiss) is to be placed on a page or before a page (mode of pdf is addToPage or insertBefore), but page is smaller than 1 or larger than the number of pages of the document. The default mode appendAtEnd does not use page.
  • Solution: Set page to an existing page, or use appendAtEnd.

BARCODE_UNSUPPORTED_IMAGE_FORMAT = -2014

  • Message: Not supported image format
  • Cause: detect with inputFormat img receives a file that it cannot use as an image: the file is not recognized as an image, for example a PDF document, no image reader is available for its format, or an image of the file cannot be read.
  • Solution: Send the image in a common format such as JPG, PNG or TIF, or set inputFormat to pdf for a PDF document, see Recognition mode.

Sharepoint Online Bridge​

The "Converter" web service returns these codes when it converts a Word, Excel, PowerPoint or Visio document with the SharePoint Bridge, that is, when the request sets sharePointBridge; some of them occur only when the server starts or in the test in the Admin Portal. The message is the text of the exception; parts in angle brackets are filled in by the server. When the bridge is enabled, the server connects to its SharePoint site at the start. If that fails - because of invalid access data, a missing permission or a site name that is not found - the "Converter" web service does not start, its requests are answered with SERVER_NOT_STARTED = -2, and the server log names the reason.

CONVERTER_SHAREPOINT_ONLINE_READ_ERROR = -2131

  • Message: Unable to read source file
  • Cause: The document cannot be read from the working folder of the job while it is uploaded to SharePoint Online, for example because another program, such as a virus scanner, locks or removes it, or because of a read error of the file system.
  • Solution: Check the access rights and the free space of the temporary folder, and make sure that no other program locks or removes files in it, see Directory structure.

CONVERTER_SHAREPOINT_ONLINE_PARAMETER_ERROR = -2200

  • Message: Wrong configuration parameters (<reason>)
  • Cause: The settings of the bridge cannot be used to prepare the sign-in at Microsoft: a value of the app registration - application ID, tenant ID or client secret - is missing or not valid, for example an empty client secret. The reason names the problem. The caller of a conversion does not receive this code. It occurs when the server starts - the "Converter" web service then does not start, and the server log shows Connection to SharePoint Online cannot be initialized with the specified parameters: <message> - and in the result of the test in the Admin Portal.
  • Solution: Enter the application ID, the tenant ID and the client secret of the app registration, see App registration and SharePoint Bridge configuration. Check them with the test in the Admin Portal, save them and restart the server.

CONVERTER_SHAREPOINT_ONLINE_TOKEN_ERROR = -2201

  • Message: Access token for authorization cannot be retrieved: <details>; the details are the request to the sign-in service of Microsoft, the HTTP status of its answer and the answer itself, each on a line of its own.
  • Cause: Microsoft does not issue an access token for the app registration; its answer in the message names the reason, for example an invalid client secret or a wrong tenant ID. The server requests a new token when the current one is about to expire, so the code occurs:
    • when the server starts: the "Converter" web service does not start, and the server log shows the HTTP status and the answer (Unable to access site. - HTTP error: <status> - MS Graph: <answer>),
    • in the result of the test in the Admin Portal,
    • during a conversion, when the token is renewed - for example after the client secret has become invalid while the server runs.
  • Solution: Check the application ID, the tenant ID and the client secret, and create a new client secret if the old one is no longer valid, see Client secret. Check that the server can reach the sign-in service of Microsoft, including a required proxy. Then test the settings in the Admin Portal and restart the server.

CONVERTER_SHAREPOINT_ONLINE_SITE_ERROR = -2202

  • Message: Unable to find the site '<site name>'
  • Cause: Not returned by this version; the code is reserved.

CONVERTER_SHAREPOINT_ONLINE_REMOTE_ERROR = -2203

  • Message: Remote error when using the site: <details>; the details are the request (method and address), the HTTP status and the answer of Microsoft Graph, each on a line of its own, or one of the texts named below.

  • Cause: A request to Microsoft Graph failed. For a conversion, the bridge uploads the document to the site, downloads it as PDF document - SharePoint Online converts it for this download - and deletes it from the site again. A request that is answered with HTTP status 429 (throttling) or a 5xx status is repeated, three attempts by default, after the time that Microsoft names in Retry-After or after an increasing delay. The code is returned:

    • when Microsoft Graph answers with an error status, for example 403 if the app lacks a permission, 429 if SharePoint Online still throttles the requests after the last attempt, or an error status for a document that SharePoint Online cannot convert,
    • for a document larger than 4 MB, which is uploaded in parts, when the upload cannot be started (Unable to create upload session for large file upload.) or does not end with the uploaded document (Upload session did not return a final document response.).

    When the server starts, this code ends the start of the "Converter" web service, and the server log shows the HTTP status and the answer (Unable to access site. - HTTP error: <status> - MS Graph: <answer>). The test in the Admin Portal shows the message. If Microsoft Graph cannot be reached at all, the code is UNABLE_TO_LOAD_CONTENT_FROM_URI = -12 instead.

  • Solution: The answer of Microsoft Graph in the message names the reason. Check the permissions of the app and the admin consent, see API permissions. For throttling, reduce the number of parallel conversions with the bridge. Convert a document that SharePoint Online cannot convert without sharePointBridge. If Microsoft Graph cannot be reached, check the network access of the server and a required proxy.

CONVERTER_SHAREPOINT_ONLINE_WRITE_ERROR = -2204

  • Message: Unable to write conversion result
  • Cause: The PDF document that SharePoint Online returned cannot be written to the working folder of the job, for example for lack of access rights or disk space.
  • Solution: Check the access rights and the free space of the temporary folder, see Directory structure.

CONVERTER_SHAREPOINT_ONLINE_NOT_AVAILABLE = -2234

  • Message: SharePoint bridge is not available
  • Cause: The request sets sharePointBridge for a Word, Excel, PowerPoint or Visio document, but the SharePoint Bridge is not enabled in the configuration. For other formats, sharePointBridge is ignored. A document that the Office Bridge converts because the request also sets officeBridge does not reach the SharePoint Bridge. A bridge that is enabled but cannot connect when the server starts does not return this code: the "Converter" web service then does not start (see above).
  • Solution: Enable the SharePoint Bridge for the "Converter" web service in the Admin Portal and restart the server, see SharePoint Bridge configuration, or remove sharePointBridge from the request.

Office Bridge​

The "Converter" web service returns these codes when it converts a Word, Excel, PowerPoint or Visio document with the Office Bridge, that is, when the request sets officeBridge. The message is the text of the exception; parts in angle brackets are filled in by the server. The codes -2501 to -2504 stand for an exit code of the Office Bridge program; their message is followed by a line Unable to convert document via Office Bridge: <message> (OLE code: <code>) [<exit code>], which repeats what the program reported - the OLE code only if Office reported one. The test of the Office Bridge at the server start and in the Admin Portal does not return these codes: it reports the exit code of the program, see Office Bridge troubleshooting.

CONVERTER_OFFICE_UNKNOWN_FORMAT = -2500

  • Message: Unknown file format
  • Cause: Not returned by this version; the code is reserved.

CONVERTER_OFFICE_OLE_EXCEPTION = -2501

  • Message: Exception during OLE communication, followed by the line of the Office Bridge (see above)
  • Cause: The Office Bridge started the Office application, but the conversion did not end successfully. The exit code in brackets tells the situations apart:
    • [-1]: Office reported an error while it opened, converted or saved the document; the line names the error and its OLE code,
    • [-5]: the conversion did not end within the time that was left of the job, and the Office Bridge ended Office,
    • another exit code: another failure of the Office Bridge program, for example a result file that cannot be renamed.
  • Solution: For [-1], open the document in the Office application under the user account of the server to see whether Office shows a dialog or an error, and check the Office installation and its add-ins, see Office Bridge troubleshooting. For [-5], increase maxLatency or convert large documents without officeBridge, see Max. runtime of an instance. Check the server log for the other exit codes.

CONVERTER_OFFICE_PARAMETER_ERROR = -2502

  • Message: Invalid parameter for Office Bridge, followed by the line of the Office Bridge ending in [-2] (see above)
  • Cause: The Office Bridge program rejected the command line that the server passed to it, for example because the name of the source or the target file is missing. The server builds this command line itself, so the code points to an internal error.
  • Solution: Check the server log at the time of the request, and send it to support.

CONVERTER_OFFICE_PARAMETER_WRONG_FILE_FORMAT = -2503

  • Message: Wrong file format, followed by the line of the Office Bridge ending in [-3] (see above)
  • Cause: The Office Bridge program does not know the Office application that the server passed to it. The server passes only the applications that the program supports, so the code points to an internal error.
  • Solution: Check the server log at the time of the request, and send it to support.

CONVERTER_OFFICE_UNABLE_TO_INITIALIZE_OLE_SERVER = -2504

  • Message: Unable to initialize the OLE server, followed by the line of the Office Bridge ending in [-4] (see above)
  • Cause: The Office Bridge cannot start the Office application of the document - Word, Excel, PowerPoint or Visio - through OLE, so the document is not converted. The test of the Office Bridge reports the same condition as exit code -4.
  • Solution: Check the Office installation and edition, the user account under which the server and Office run, and the DCOM settings of the Office application, see Configuring Office Bridge, Office version and Office Bridge troubleshooting.

CONVERTER_OFFICE_UNABLE_TO_GET_THREAD_LOCK = -2505

  • Message: Unable to get a free thread lock for the OLE server
  • Cause: Not returned by this version; the code is reserved.

CONVERTER_OFFICE_UNABLE_TO_GET_THREAD = -2506

  • Message: Unable to get a free thread
  • Cause: The server converts only one Excel, PowerPoint or Visio document at a time with the Office Bridge; Word documents are converted in parallel. A conversion with Excel, PowerPoint or Visio waits until the conversion before it with the same application has ended, at most for the time that is left of the job: maxLatency minus the time since the server took the request, so the wait in the queue counts as well. The code is returned when the other conversion has not ended in that time, for example under many parallel requests for the same application or when one conversion takes long.
  • Solution: Reduce the number of parallel Office Bridge requests for Excel, PowerPoint and Visio documents, or increase maxLatency, see Max. runtime of an instance and Maximum latency. If the conversions with one application stay blocked, check for Office processes that hang, see Check for stale Office processes.

CONVERTER_OFFICE_NOT_AVAILABLE = -2507

  • Message: Office Bridge is not available.

  • Cause: The request sets officeBridge for a Word, Excel, PowerPoint or Visio document, but the Office Bridge is not available:

    • it is not enabled in the configuration (enabled of the office element in bridges of application.xml, false by default),
    • its test failed when the server started; the server log names the reason,
    • the server does not run on Windows.

    The server decides whether the Office Bridge is available only when it starts. If the bridge is available but the application of the document is switched off for it (useWord, useExcel, usePowerPoint or useVisio; Visio is off by default), the code is not returned and the document is converted as without officeBridge. For other formats, officeBridge is ignored.

  • Solution: Enable the Office Bridge in the Admin Portal and run its test, see Configuring and enabling Office Bridge in webPDF and Check whether Office Bridge is really enabled. After a failed test, check the server log of the server start, remove the reason and restart the server.

CONVERTER_OFFICE_NOT_ENOUGH_EXECUTION_TIME = -2508

  • Message: Office Bridge cannot be executed because the remaining execution time is too short.
  • Cause: The time that is left of the job is shorter than the minimum time reserved for a conversion with the Office Bridge: minExecutionTime of the application (word, excel, powerPoint or visio in the office element of application.xml), 5000 milliseconds by default. The time left is maxLatency minus the time since the server took the request, so it includes the wait in the queue and, for Excel, PowerPoint and Visio, the wait for the conversion before it with the same application (see -2506). The server checks it before it starts the Office Bridge, and for Excel, PowerPoint and Visio also before that wait.
  • Solution: Reduce the number of parallel requests or increase maxLatency, see Max. runtime of an instance and Maximum latency. Lower minExecutionTime only if Office needs less time for its conversions.

Token and OAuth​

The REST and SOAP web services return these codes when they check a token - the access token of a request, passed as Bearer token, or the refresh token of a session extension - and when the server creates the tokens of a login or a refresh. The message is the text of the exception; parts in angle brackets are filled in by the server. A request to a REST web service answers a rejected access token with HTTP status 401; the response then carries the code but not the reason. A SOAP request with a Bearer token and a refresh (POST /authentication/user/refresh, HTTP status 400) return the complete message.

WEBSERVICE_SESSION_TOKEN_INVALID_SIGNATURE = -9000

  • Message: The token signature is invalid and does not match the locally calculated signature. The validity of the token cannot be confirmed and therefore is not trusted.
  • Cause: The token is not trusted:
    • the signature of an access token does not match the key that its key ID (kid) names, or the token is not signed with RS256 - for example because the token was changed after it was issued,
    • a refresh token cannot be decrypted with the token key of the server, for example because a server with other token keys issued it, or because the server has created new token keys since.
  • Solution: Pass the token unchanged, as the login or the OAuth provider returned it, see Token format. Log in again to receive tokens with the current keys.

WEBSERVICE_SESSION_TOKEN_WRONG_FORMAT = -9001

  • Message: Token has wrong format: <reason>
  • Cause: The token cannot be read as a token of the expected kind; the reason names the error, for example Unexpected number of Base64URL parts, must be three:
    • an access token that is not a signed JWT, for example a token that was cut off or changed on its way, a token of an OAuth provider that is not a JWT, or a refresh token sent instead of the access token,
    • at a refresh, a token that is not a refresh token of this server, for example an access token whose session has already ended.
  • Solution: Pass the access token as Bearer token exactly as the login returned it, see Passing the authorization, and use the refresh token only for the refresh, see Extend session.

WEBSERVICE_SESSION_TOKEN_INCORRECT_CLAIM = -9002

  • Message: Token with incorrect claim: <reason>
  • Cause: The token can be read, but its content (claims) is not accepted. The reason names the problem:
    • the token has expired (Expired JWT) or is not valid yet (JWT before use time), taking the permitted time skew (maxTimeSkew) into account. An access token of the local login expires with its session; an access token that was replaced by a refresh keeps its own expiration time,
    • a required claim is missing (JWT missing required claims: [<claims>]): exp, iat, iss, aud, the session claim (claimSessionId) and the client claim (claimClientId) of the provider, and, depending on the provider, the roles claim and nbf,
    • the audience (aud) or the issuer (iss) of the token does not match the provider, for example JWT issuer rejected: <issuer>,
    • the header of the token has no key ID (JWT missing required header field: [kid]),
    • the session claim is empty (The <claim> claim is empty in the JWT claims.) or not a text.
  • Solution: Renew the token before it expires: extend the session with the refresh token, see Extend session and Expiration time, or request a new token from the OAuth provider. For an OAuth provider, check that the claims of its tokens match the configured provider and claim names, and that the clocks of the server and the provider agree, see Claims verification and Session ID.

WEBSERVICE_SESSION_TOKEN_NOT_PROVIDED = -9003

  • Message: Token not provided
  • Cause: A request to a REST web service carries no token - no Authorization header with Bearer, no Token header and no Token query parameter -, for example because it sends user name and password (Basic), which only the login accepts. HTTP status 401. A refresh without a token answers with HTTP status 400.
  • Solution: Log in first and pass the access token with every request, see Passing the authorization. For a refresh, pass the refresh token, see Extend session.

WEBSERVICE_SESSION_TOKEN_NOT_PRIVATE_KEYS = -9004

  • Message: No private keys available to sign the token.
  • Cause: Not returned by this version; the code is reserved.

WEBSERVICE_SESSION_TOKEN_NOT_REFRESH = -9005

  • Message: Token is not a refresh token.
  • Cause: The refresh (POST /authentication/user/refresh) received a valid access token of a running session - of the local login or of an OAuth provider - instead of a refresh token. HTTP status 400.
  • Solution: Request a refresh token at the login and pass it to the refresh, see Request refresh token and Extend session. A token of an OAuth provider cannot be refreshed by webPDF; request a new one from the provider.

WEBSERVICE_SESSION_TOKEN_UNKNOWN_FLOW = -9006

  • Message: The OAuth flow has not been defined in the provider configuration.
  • Cause: Not returned by this version; the code is reserved.

WEBSERVICE_SESSION_TOKEN_PROVIDER_NOT_FOUND = -9007

  • Message: Token provider not found., in some cases followed by a line The provider for kid '<key ID>' is not available.
  • Cause: No provider of the server accepts the access token: no provider has the client ID that the token names in its client claim, or none knows the key ID (kid) with which the token was signed. Typical situations:
    • The token was issued by the local login with token keys that the server no longer has. A server that starts without its keystore folder and conf/secret.key creates new token keys, for example a container without persistent storage. In a cluster, nodes with different token keys reject the tokens of each other with this code.
    • The token comes from an OAuth provider that is not configured, whose settings could not be loaded when the server started (the server log names the reason), or that signed the token with a new key. The server reads the keys of an OAuth provider when it starts.
  • Solution: Log in again to receive a token with the current keys. Keep the keystore folder and conf/secret.key on persistent storage, see Data the coordinator must keep and Directory structure. For an OAuth provider, check its settings and the server log of the server start, and restart the server after the provider has changed its keys, see Verify signature using "OIDC Discovery".

WEBSERVICE_SESSION_TOKEN_SIGN_ERROR = -9008

  • Message: Unable to sign the token.
  • Cause: At a login or a refresh, the server cannot sign the new access token or encrypt the new refresh token with its token keys. A login answers with HTTP status 401, a refresh with 400. The stack trace of the exception names the reason.
  • Solution: Check the server log at the time of the request, and send it to support.

WEBSERVICE_SESSION_TOKEN_REVOKED = -9009

  • Message: The token has been revoked and is no longer valid: <session ID>

  • Cause: A token of the local login refers to a session that no longer runs, or a refresh token is no longer the current one:

    • an access token whose session has ended - by a logout, by an administrator, or by a restart of a server that keeps its sessions in its local session storage. A REST web service request answers with HTTP status 401, a SOAP request with a Bearer token names the session ID,
    • a refresh token that has already been exchanged for a new one - a refresh token can be redeemed only once - or whose session no longer runs, also one whose time is over. HTTP status 400,
    • with a Redis/Valkey session storage, the session ended while a refresh or a change of keystore passwords (PUT /authentication/user/certificates/passwords/{keyStoreName}) was running. HTTP status 400.

    An access token whose session has run out usually returns WEBSERVICE_SESSION_TOKEN_INCORRECT_CLAIM = -9002 (Expired JWT), because it expires with its session. An access token of an OAuth provider whose session has ended does not return this code: it opens a new, empty session.

  • Solution: Log in again; the documents of the ended session are deleted. For a refresh, always use the refresh token of the latest refresh, see Extend session and End session with logout.

Archive​

The server returns these codes when it opens or reads an archive, such as a ZIP or 7Z file, for example when an archive is stored in the document storage and its content is listed, when it is extracted through the REST interface or in the portal, or when the "Toolbox" web service receives a ZIP archive as source document or as data of the merge operation. If the content of a stored archive cannot be listed, the document is stored anyway, and the code appears in the error object of its document information. The message is the text of the exception.

ARCHIVE_INIT = -10000

  • Message: Unable to initialize archive
  • Cause: The server cannot open the document as an archive:
    • the document is not an archive, or its format is not recognized, for example when POST /documents/{documentId}/extract is called for a document that is not an archive (HTTP status 400),
    • the beginning of the archive cannot be read, or the archive is damaged so that it cannot be opened.
  • Solution: Check that the document is an archive in a supported format and that it opens in an archive program, see Archives.

ARCHIVE_IO = -10001

  • Message: Archive read/write error
  • Cause: The server has opened the archive but cannot read the list of its files, for example because the archive is damaged or incomplete. For a ZIP archive, the code also covers other errors that the ZIP processing reports while it opens the archive or reads a file.
  • Solution: Check that the archive opens in an archive program and that it was transferred completely. Create the archive again if needed.

ARCHIVE_UNABLE_TO_EXTRACT_CONTENT = -10002

  • Message: Unable to extract file content from archive
  • Cause: A file cannot be extracted from the archive:
    • the data of the file cannot be read, for example because the archive is damaged, or the file cannot be written to the temporary folder,
    • for GET /documents/{documentId}/archive/{archivePath}: the document is not an archive (fileTypeGroups of its document information is not ARCHIVE), no file in the archive has the path archivePath, or the file cannot be extracted and returned. The path is compared with the full path of the file in the archive, without regard to upper and lower case; folders cannot be requested.
  • Solution: Check the path against the files of the archive, which the metadata of its document information lists, and check that the archive opens in an archive program. Make sure that the server may write to its temporary folder and that there is enough disk space, see Directory structure.

ARCHIVE_PASSWORD = -10003

  • Message: Unable to extract file content from archive, because a valid password is required
  • Cause: The archive, or a file in it, is encrypted. The server does not accept a password for an archive, so it cannot read such an archive. This applies to the encryption methods that the server can process; for other methods, see ARCHIVE_COMPRESSION_NOT_SUPPORTED = -10004 and ARCHIVE_ENCRYPTION_NOT_SUPPORTED = -10005.
  • Solution: Extract the archive with an archive program and send the files without encryption, or create the archive without a password.

ARCHIVE_COMPRESSION_NOT_SUPPORTED = -10004

  • Message: Archive compression not supported
  • Cause: A file in the archive uses a compression method that the server does not support, for example LZMA or PPMd in a ZIP archive, or PPMd in a 7Z archive, also when it is encrypted.
  • Solution: Create the archive with a supported compression method, see Archives.

ARCHIVE_ENCRYPTION_NOT_SUPPORTED = -10005

  • Message: Archive encryption not supported
  • Cause: A file in a ZIP archive is encrypted in a combination that the server does not support: encryption together with a compression other than STORE or DEFLATE, for example DEFLATE64, BZIP2, LZMA or PPMd with ZIP-CRYPTO or AES-256.
  • Solution: Create the archive without encryption, see Archives and ARCHIVE_PASSWORD = -10003.

ARCHIVE_MARK_IS_NOT_SUPPORTED = -10006

  • Message: Mark is not supported by the archive stream
  • Cause: Not returned by this version; the code is reserved.

ARCHIVE_IS_NOT_AN_ARCHIVE = -10007

  • Message: The referenced document is not an archive or has an unsupported archive format
  • Cause: The caller does not receive this code. GET /documents/{documentId}/archive/{archivePath} checks whether the document is an archive, but answers a document that is not an archive with ARCHIVE_UNABLE_TO_EXTRACT_CONTENT = -10002.
  • Solution: See ARCHIVE_UNABLE_TO_EXTRACT_CONTENT = -10002.

PDF document​

These codes come from opening, checking, changing and saving PDF documents, so every web service that processes a PDF document can return them - in particular the Toolbox, Signature, PDF/A, OCR and Barcode web services, and the Converter web service when it changes the PDF document it has created. When a PDF document is stored in the document storage of the REST API, the server reads it as well: a code of this section then appears in error of the document information, and the document is stored nonetheless. The message is the text of the exception; parts in angle brackets are filled in by the server.

PDF_READ = -5000

  • Message: PDF is not readable
  • Cause: The server cannot read the PDF document or a part of it. A damaged document that cannot be parsed at all returns PDF_CORRUPTED_DOCUMENT (-5028) instead. Three situations return this code:
    • The file of the document does not exist or cannot be read, or reading it was interrupted.
    • An encrypted document cannot be loaded with the password in open or the key pair in keyPair for a reason that has no code of its own. A missing or wrong password and a certificate that is not a recipient of the document have their own codes (-5009, -5008, -5060).
    • During an operation, a part of the document cannot be read: the content of a page, a content stream, or an action, a destination or an annotation of an outline entry.
  • Solution: Check that the document opens in a PDF viewer and that the password or the key pair is complete. Check the server log for the reason.

PDF_READ_ZERO_SIZE = -5001

  • Message: PDF is not readable, because file size is zero
  • Cause: The document that is to be opened as a PDF document is an empty file. Some web services check the source document first and return their own code, for example INVALID_SOURCE_FORMAT (-18) in the Toolbox web service.
  • Solution: Send the document again and check that its content arrives, for example that the file data of the request are not empty.

PDF_READ_NOT_A_PDF = -5002

  • Message: PDF is not readable, because the file structure seems to be invalid or file is not a PDF
  • Cause: The file is not a PDF document: it does not contain the PDF header %PDF-, or it is a ZIP archive. Some web services check the source document first and return their own code, for example INVALID_SOURCE_FORMAT (-18) in the Toolbox web service. A file with a PDF header that cannot be parsed returns PDF_CORRUPTED_DOCUMENT (-5028).
  • Solution: Pass a PDF document. Convert documents of other formats to PDF first, see Document conversion.

PDF_WRITE = -5003

  • Message: Unable to write PDF document
  • Cause: The server cannot write the PDF document. Two kinds of situations return this code:
    • The result cannot be saved: the file cannot be written, for example for lack of disk space or access rights, or writing the document fails.
    • Content that an operation creates cannot be written into the document, for example the tags of untagged pages for an accessible PDF/A level, the appearance of a file attachment, the image of a page that a redaction flattens, or the pages of a merge, a split or a portfolio.
  • Solution: Make sure that the server may write to its temporary folder and that enough disk space is available, see Directory structure. Check the server log for the reason.

PDF_WRITE_ZIP = -5004

  • Message: Unable to write PDF document to ZIP file
  • Cause: The Toolbox web service processes a ZIP archive that holds several PDF documents and writes the results into a ZIP archive. The archive cannot be created, or a result cannot be added to it, for example for lack of disk space.
  • Solution: Make sure that enough disk space is available for the temporary files of the server, see Directory structure. To avoid the archive, extract it first and call the web service for each document, see Archives.

PDF_READ_ZIP = -5005

  • Message: Unable to read PDF document from ZIP file
  • Cause: Not returned by this version; the code is reserved.

PDF_METADATA = -5006

  • Message: Unable to parse the PDF metadata
  • Cause: The XMP metadata of the document cannot be read or written. The server reads them whenever it opens a PDF document, to detect a PDF/A identification, so the code can occur in any operation. It also occurs when the server updates the metadata: when the document information is changed (for example with the Toolbox description operation), when the metadata of a document are written after OCR, a merge, or a URL or mail conversion, and when the PDF/A identification is removed because pdfaEditProfile is removePdfaMetadata (the default).
  • Solution: The metadata of the document are damaged. Save the document again with the program that created it. If the code occurs when the PDF/A identification is removed, pdfaEditProfile noEditRestrictions keeps the identification instead, see PDF/A settings.

PDF_PASSWORD_OWNER = -5007

  • Message: Invalid owner password
  • Cause: The document is protected with an owner password, and the password in permission of the password parameter is not this owner password.
  • Solution: Pass the owner password of the document in permission, see Passwords.

PDF_PASSWORD_USER = -5008

  • Message: Invalid user password
  • Cause: The document needs a password to be opened, and the password in open of the password parameter does not open it.
  • Solution: Pass the password that opens the document in open, see Passwords.

PDF_PASSWORD_MISSING = -5009

  • Message: No password set
  • Cause: The document needs a password to be opened, and the request contains no password in open of the password parameter. A password in permission does not open the document.
  • Solution: Pass the password that opens the document in open, see Passwords. For a document in the document storage of the REST API, the password can also be stored with the document (PUT /documents/{documentId}/security/password); it is then used whenever a request contains no password.

PDF_PASSWORD_AES = -5010

  • Message: JCE unlimited strength jurisdiction policy files are not installed
  • Cause: The Java runtime of the server refused the encryption key of the document while the document was opened, decrypted with a key pair or saved. The message names the classic reason: a cryptography policy of the Java runtime that limits the key length, so that 256-bit AES keys, for example, are refused.
  • Solution: Make sure that the cryptography policy of the Java runtime of the server does not limit the key length, see Java environment, and check the server log for the reason.

PDF_NO_PAGES = -5011

  • Message: No pages in the document
  • Cause: Not returned by this version; the code is reserved. The Signature web service refuses a document without pages with SIGNATURE_INVALID_PAGE_NUMBER (-328) before this check.

PDF_SIGN = -5012

  • Message: Unable to sign document, in most cases followed by the reason
  • Cause: The Signature web service cannot create the signature. The message names the reason, for example:
    • the position or the size of the visible appearance (position in appearance) cannot be stated as a PDF number, for example an infinite value or a value that only becomes infinite when it is converted from millimeters,
    • the signature field that fieldName selects has no widget annotation, or - for a visible signature - its widget states no rectangle or an empty one,
    • the key cannot be used: the private key or the certificate is missing, the key is a DSA key (webPDF signs with SHA-256, and a PDF signature allows only SHA-1 for DSA keys), the key algorithm is not supported, no signing method is available for the key, or the certificate chain cannot be built,
    • the signature or its visible appearance cannot be created.
  • Solution: Correct the cause named in the message: state the position and the size as finite values in the unit of metrics, select a usable signature field or another fieldName, and use a supported key with its certificate. See Position and size of the visible appearance, PEM and Global keystore. Without a reason in the message, check the server log.

PDF_SIGN_ALREADY_SIGNED = -5013

  • Message: Document already signed and append is not allowed
  • Cause: Not returned by this version; the code is reserved.

PDF_SIGN_FIELD_CREATION = -5014

  • Message: Unable to create a signature field
  • Cause: The document has no signature field with the name in fieldName, and a new field with this name cannot be created, for example because the name contains a period, which separates the parts of a field name in a PDF document.
  • Solution: Use a fieldName without a period, see Matching an existing signature field by name.

PDF_SIGN_FIELD_IS_SIGNED = -5015

  • Message: The field contains already a signature
  • Cause: The signature field that fieldName selects already holds a signature; an existing signature is never replaced. The name is compared without regard to case, and its default is Signature1, so a document that was signed once is refused when it is signed again without fieldName.
  • Solution: Set a fieldName that the document does not use yet; the signature is then placed in a new field. See Matching an existing signature field by name.

PDF_DYNAMIC_XFA = -5016

  • Message: PDF is a not supported dynamic XFA document
  • Cause: The document is a dynamic XFA form. The OCR web service and the operations of the Toolbox web service do not process such a document; only the Toolbox forms operation accepts it.
  • Solution: Use the forms operation for the form, see Toolbox. For other operations, use a version of the document that is not a dynamic XFA form, for example one that the program that created the form saves as a static form.

PDF_PORTFOLIO = -5017

  • Message: PDF is a not supported portfolio document
  • Cause: The document is a PDF portfolio, a collection of embedded files. The OCR web service and the operations of the Toolbox web service do not process such a document; only the Toolbox portfolio operation accepts it.
  • Solution: Use the portfolio operation, for example to extract the files of the portfolio, and process the extracted files. See Toolbox.

PDF_OBJECT_EXTRACT = -5018

  • Message: Unable to extract object from document
  • Cause: The Toolbox extraction operation with images cannot read an image, or a form in which it searches for images, from the resources of a page. The document is likely damaged.
  • Solution: Check the document in a PDF viewer, and check the server log for the reason.

PDF_ENCRYPT = -5019

  • Message: Unable to encrypt the document
  • Cause: The document cannot be encrypted: the Toolbox security operation cannot apply the passwords of encrypt to the document, or the encryption cannot be prepared when an encrypted document is saved.
  • Solution: Check the server log for the reason. See Encrypting and decrypting documents.

PDF_ATTACHMENT_READ = -5021

  • Message: Unable to read attachments from PDF document
  • Cause: The attachments of the document - its embedded files and the file attachment annotations of its pages - cannot be read. They are read, for example, by the Toolbox operations attachment, portfolio, redact and extraction (info), and by the Converter web service when it processes the attachments of a mail.
  • Solution: The document is likely damaged. Check it in a PDF viewer, and check the server log for the reason.

PDF_ATTACHMENT_WRITE = -5022

  • Message: Unable to alter attachments of PDF document
  • Cause: Attachments cannot be added to or removed from the document. Two situations return this code:
    • Writing the change fails, or the tree of embedded files of the document is nested deeper than 64 levels, so that a change cannot be made safely.
    • The Toolbox redact operation is to remove all attachments (sanitize, attachments enabled, the default), but the document still holds embedded content that cannot be addressed by a name and therefore cannot be removed. The operation fails instead of reporting a cleaned document.
  • Solution: The document is damaged in a way that prevents the change. Create the document again with the program that produced it, and check the server log for the reason.

PDF_ATTACHMENT_ILLEGAL_PAGE = -5024

  • Message: Selected page is out of document's page range
  • Cause: The Toolbox attachment operation is to add a file as an annotation on a page (page of annotation) that the document does not have.
  • Solution: Set page to a page of the document; the first page is 1.

PDF_ATTACHMENT_ALREADY_EXISTING_ENTRY = -5025

  • Message: A document level attachment of that name is already existing
  • Cause: A file is to be attached to the document with a name that an embedded file of the document already uses, for example with the fileName of the Toolbox attachment operation. Files that are attached as annotations on a page are not affected.
  • Solution: Use another fileName, or remove the existing attachment first with remove of the attachment operation.

PDF_SIGN_SIGNATURE_CREATION = -5026

  • Message: Unable to create signature
  • Cause: The Signature web service cannot write the signature value into the signature field of the document.
  • Solution: Check the server log for the reason. If the document brings a prepared signature field, try a new field with another fieldName.

PDF_STATIC_XFA = -5027

  • Message: PDF is a not supported static XFA document
  • Cause: The Toolbox merge operation is to merge a static XFA form - the source document or a document to be added - and removeStaticXFA is not set.
  • Solution: Set removeStaticXFA to true. The XFA parts are then removed: the result contains a plain PDF form that XFA applications no longer recognize as an XFA form.

PDF_CORRUPTED_DOCUMENT = -5028

  • Message: The PDF file does not comply with the PDF standard or appears to contain structural damage., for a damaged part or a limit followed by the reason

  • Cause: The document is structurally damaged, or it exceeds a limit that webPDF enforces to process it safely. Several situations return this code:

    • The document cannot be parsed when it is opened, or a basic part such as the document catalog or the page tree is missing.
    • The logical structure tree (the tags) or a name tree of the document contains a cycle or a node that is referenced more than once, is nested too deeply, or has too many nodes.
    • A content stream - a form, a transparency group (including a soft mask), a tiling pattern, or a Type 3 glyph - exceeds the supported nesting depth, or re-enters itself: a form, group, or Type 3 glyph appearing again within the same drawing context, or a soft mask or tiling pattern appearing again anywhere along the same drawing path. When such a limit is reached during an operation such as redaction, OCR, image rendering, printing, barcode detection, text, word, paragraph, or link extraction, or document transcription, the whole operation is aborted with this code instead of silently returning an incomplete result - for example, silently leaving content in place during redaction.
    • An operation has to rewrite a damaged part: the chain of an article thread is cyclic or too long when pages are deleted, moved or split, or the folders of a portfolio are nested too deeply when folders are removed.
    • An operation of the Toolbox web service, or the extraction of the document information, meets an object of an unexpected type or in an unexpected state.

    An outline that is nested too deeply does not cause this code: its entries beyond the supported depth are left out, also when an operation rewrites the outline. The folders of a portfolio cause it only when folders are removed; when the document is only read, the deeper folders are left out as well.

  • Solution: Check the document in a PDF viewer, and create it again with the program that produced it or repair it. The limits of this code are fixed and cannot be configured. If the document is considered correct, send it to support together with the message.

PDF_UNBALANCED_MARKED_CONTENT = -5029

  • Message: The PDFs marked content MCIDs and structure entries are not balanced.
  • Cause: For an accessible PDF/A level (1a, 2a or 3a), webPDF tags the pages of the document that are not tagged yet - in the PDF/A web service with autoTagging, and in the Converter web service when its pdfa parameter asks for such a level. A page refers to marked content (an MCID) that the structure tree of the document does not contain, so its tags cannot be completed.
  • Solution: Correct the tags of the document in the program that created it, or choose a PDF/A level without the accessibility requirement (b or u). See PDF/A conversion.

PDF_STRUCTURE_ENTRY_COLLISION = -5030

  • Message: It is attempted to create a new structure entry in place of an existing entry.
  • Cause: Not returned by this version; the code is reserved.

PDF_CONTENT_STREAM_LIMIT_EXCEEDED = -5031

  • Message: The content stream exceeds the configured limit of <limit> bytes.
  • Cause: A content stream of the PDF document exceeds a limit of contentStreamLimits: the size of a single content stream in the file (maxEncodedStreamSize), its decoded size (maxDecodedStreamSize), or the total content of a page that is copied as the appearance of an annotation (maxPageContentSize). The limits are switched off by default, so the code only occurs when they are set in application.xml. Where a document is only examined for information, the affected content stream is skipped instead.
  • Solution: The limits protect the memory of the server; they are not a statement about a valid document. If a document that is considered correct is refused, for example a detailed map or a CAD plot, raise the affected limit. A much higher limit can require more memory for the server. See Content stream limits.

PDF_CHANGING_SIGNED_DOCUMENT = -5038

  • Message: According to the current execution settings, a signed PDF would risk invalidation, if the operation was executed.

  • Cause: The document is signed, and the operation would change it in a way that signatureEditProfile in settings.signature does not allow:

    • With adobeRestrictions (the default), every change of the content is refused, for example by the Toolbox operations merge, rotate, delete, compress or watermark, by OCR, by the PDF/A conversion or by adding barcodes. Filling in forms, editing annotations and adding a signature are refused only if a certifying signature of the document does not allow them.
    • With generalEditRestrictions, every operation that changes the document is refused.

    Operations that only read the document are not affected.

  • Solution: To keep the signatures valid, do not change the document. If the change is intended, set signatureEditProfile to noEditRestrictions; the existing signatures are then removed when the change would break them. To keep their visible appearance, remove the signatures first with the clear operation of the Signature web service and flatten. See Signature settings, Change restrictions of signed documents and Remove protection.

PDF_COMPRESSION_OF_UNFIT_DOCUMENT = -5039

  • Message: Document compression would require rewriting a signed document.
  • Cause: A signed document is saved as an addition to its existing content, so that its signatures stay valid - this also applies to a document that the Signature web service has just signed. At the same time, settings.compress asks to compress the document, for example with compressProfile always. The document is older than PDF 1.5 or uses a cross-reference table instead of a cross-reference stream, so it cannot be compressed without being rewritten, which would break its signatures.
  • Solution: Leave compressProfile at never (the default) for such documents, or compress the document before it is signed, for example with the compress operation of the Toolbox web service. See Compress and Incremental storage of signatures.

PDF_CHANGING_PDFA_DOCUMENT = -5040

  • Message: According to the current execution settings, a PDF/A document would risk invalidation, if the operation was executed.
  • Cause: The document claims PDF/A conformance, pdfaEditProfile in settings.pdfa is generalEditRestrictions, and the operation would change the document - also by adding a signature. Operations that only read the document are not affected.
  • Solution: Set pdfaEditProfile to removePdfaMetadata (the default; the document loses its PDF/A identification) or to noEditRestrictions (the identification stays, but the document may no longer conform). To get a PDF/A document again afterwards, convert it with the PDF/A web service. See PDF/A settings and Remove protection.

PDF_CERTIFICATE_PROVIDER_NOT_AVAILABLE = -5050

  • Message: Provider not available
  • Cause: A keystore or an encrypted private key cannot be read because the Java runtime of the server offers no security provider for the type of the keystore or no method for the encryption of the key. The caller receives the code when the passwords of a user keystore are updated (PUT /authentication/user/certificates/passwords/{keyStoreName}) and when the Toolbox encryptCertificate operation reads the certificate of a recipient. For a key pair passed as PEM, the server returns PDF_CERTIFICATE_PEM_DECODE_ERROR (-5051) instead; the check of a keystore in the Admin Portal returns ADMIN_INVALID_KEYSTORE_DATA (-35), and for the keystore of the server only the server log shows the message.
  • Solution: Use a keystore type that the server supports and a private key that is encrypted with a common method. See Keystore configuration and check the server log.

PDF_CERTIFICATE_PEM_DECODE_ERROR = -5051

  • Message: PEM content cannot be decoded and certificates and keys cannot be retrieved.

  • Cause: The PEM data of a certificate or a private key cannot be read, for example because they are not valid PEM or are incomplete. For a key pair, the code also stands for the other errors while its PEM data are processed, except a wrong password (-5057). The PEM data come from:

    • keyPair of the password parameter, to decrypt a document encrypted with certificates,
    • keyPair of signer in the Signature web service,
    • the key pair of PUT /documents/{documentId}/security/password,
    • the certificate of a recipient in the Toolbox encryptCertificate operation.

    An error in keyPair of the password parameter is reported only for a document encrypted with certificates; other documents are processed without the key pair. When the data are loaded from an address (source uri), an error page of the server that answers is read as data and returns this code as well.

  • Solution: Pass the certificate and the private key as complete PEM text, including the -----BEGIN and -----END lines, and check an address in uri. See PEM and Certificates.

PDF_CERTIFICATE_KEYPAIR_FAILURE = -5052

  • Message: One valid recipient with private key and certificate must be selected for decryption.
  • Cause: The document is encrypted with certificates, and the certificate and the private key from keyPair of the password parameter cannot be prepared for decrypting it.
  • Solution: Pass the certificate of a recipient of the document together with its private key, see Certificates. Check the server log for the reason.

PDF_CERTIFICATE_PRIVATE_KEY_FAILURE = -5053

  • Message: One valid private key must be provided and accessible for decryption.
  • Cause: keyPair of the password parameter contains a certificate, but no private key that belongs to it: the private key is missing, or it does not match the certificate. The code is reported when the document is encrypted with certificates, and by PUT /documents/{documentId}/security/password unless the user keystore or the keystore of the server holds the private key of the certificate.
  • Solution: Pass the private key that belongs to the certificate in privateKey of keyPair, see Certificates.

PDF_CERTIFICATE_CERTIFICATE_FAILURE = -5054

  • Message: One valid certificate must be provided and accessible for decryption.
  • Cause: keyPair of the password parameter contains no certificate, or several certificates that do not form one chain. The code is reported when the document is encrypted with certificates, and by PUT /documents/{documentId}/security/password.
  • Solution: Pass exactly one certificate, the certificate of the recipient, in certificate of keyPair, see Certificates.

PDF_CERTIFICATE_KEYPAIR_MISSING = -5055

  • Message: PDF is certificate encrypted and no decryption keypair has been provided.
  • Cause: The document is encrypted with certificates, and the request contains no keyPair in the password parameter.
  • Solution: Pass the certificate of a recipient of the document and its private key in keyPair, see Certificates.

PDF_CERTIFICATE_RECIPIENT_READ_ERROR = -5056

  • Message: Unable to read recipients from the certificate encrypted PDF.
  • Cause: Not returned by this version; the code is reserved.

PDF_CERTIFICATE_WRONG_PASSWORD = -5057

  • Message: Unable to decrypt encrypted private key, please check password and data content.

  • Cause: An encrypted private key or a keystore cannot be opened with the given password, or its data are damaged:

    • an encrypted private key in PEM data, with the password in password of privateKey - in keyPair of the password parameter (reported only for a document encrypted with certificates), in keyPair of signer in the Signature web service, and in PUT /documents/{documentId}/security/password,
    • a user keystore whose passwords are updated (PUT /authentication/user/certificates/passwords/{keyStoreName}).

    The check of a keystore in the Admin Portal returns ADMIN_INVALID_KEYSTORE_DATA (-35) instead, and for the keystore of the server only the server log shows the message.

  • Solution: Check the password of the private key or of the keystore, and check that the data are complete. See PEM.

PDF_CERTIFICATE_PRIVATE_KEY_READ_ERROR = -5058

  • Message: Unable to read encrypted data (private key)
  • Cause: Not returned by this version; the code is reserved.

PDF_CERTIFICATE_KEYSTORE_DECODE_ERROR = -5059

  • Message: Unable to read keystore content
  • Cause: A keystore cannot be read: its file cannot be read, or its content cannot be decoded, for example because of a wrong format, an unknown algorithm or a damaged certificate. The caller receives the code when the passwords of a user keystore are updated (PUT /authentication/user/certificates/passwords/{keyStoreName}). The check of a keystore in the Admin Portal returns ADMIN_INVALID_KEYSTORE_DATA (-35) instead, and for the keystore of the server only the server log shows the message.
  • Solution: Check that the keystore file is complete and is a Java keystore (JKS), and check the server log for the reason.

PDF_CERTIFICATE_RECIPIENT_NOT_MATCHING = -5060

  • Message: The certificate does not match any of the recipients in the PDF document.
  • Cause: The document is encrypted with certificates, and the certificate in keyPair of the password parameter is not one of the recipients that the document was encrypted for.
  • Solution: Pass the certificate and the private key of a recipient of the document. For a document in the document storage of the REST API, the document information lists the recipients (recipients). See Certificates.

Cluster​

These codes come from the cluster connection of a node - when it joins the cluster or asks the other nodes for their state - and from the storages of the documents: the file storage, which keeps their content, and the Redis or Valkey document storage of a cluster, which keeps their records. The message is the text of the exception; parts in angle brackets are filled in by the server, <provider> with the name of the storage (LOCAL, SMB, MINIO, AZURE_BLOB or REDIS). The file storage LOCAL also serves a single server, so the FILE_STORAGE_* codes can occur outside a cluster as well.

CLUSTER_INIT_ERROR = -20000

  • Message: Unable to initialize the cluster
  • Cause: Not returned by this version; the code is reserved.

CLUSTER_JOIN_ERROR = -20001

  • Message: The cluster join was canceled because an error occurred: <reason>
  • Cause: A node cannot connect to the cluster while the server starts. No web service returns this code; it appears in the server log. With stopOnError set to true (the default), the server does not start. With false, it starts as a single server without the cluster, and the cluster status in the Admin Portal shows the error. The reason names the problem, for example:
    • the file with the communication settings of the cluster, cluster-jgroups.xml in the configuration folder, is missing or not valid, or the connection to the cluster cannot be opened,
    • the cluster refuses the node: its secret key is missing or different (The specified token cannot be decrypted. The secret key may be invalid or have an incorrect syntax.), the cluster already has a coordinator, or the node runs another main or minor version of webPDF,
    • a member that takes its configuration from the coordinator cannot prepare its local copy of the configuration.
  • Solution: Give all nodes the same secret key and the same main and minor version, start only one coordinator per cluster, and check that the nodes can reach each other. See Key distribution, Versions, Network communication and Cluster configuration issues. For the behavior after an error, see stopOnError.

CLUSTER_COORDINATOR_NOT_FOUND = -20002

  • Message: Coordinator not found: <reason>
  • Cause: A member has connected to the cluster, but no coordinator became ready within connectTimeout (default 60000 milliseconds): the coordinator is not running, has not finished its start, or cannot be reached. The member waits until the coordinator is online. The reason is Timeout while waiting for the coordinator node, Interruption while waiting for the coordinator node or the text of an unexpected error. No web service returns this code; it appears in the server log, and stopOnError decides whether the server starts without the cluster, as for -20001.
  • Solution: Start the coordinator first and wait until it is online, then start the members. Check that the members can reach the coordinator, and increase connectTimeout in slow environments. See Add member nodes, connectTimeout, Restart node and Network communication.

CLUSTER_COORDINATOR_METHOD_ERROR = -20003

  • Message: Coordinator remote procedure call response
  • Cause: A call between the nodes failed. The server replaces the message with the reason; the text above appears only when no reason is known. Two situations return this code:
    • A member found the coordinator but cannot take over its data: the namespace settings cannot be fetched or do not match (Namespace settings do not match: '<namespace of the coordinator>' (coordinator) != '<namespace of the member>' (member)), or the secret key, the keystore folder or the configuration files cannot be fetched from the coordinator. The last three are fetched only when the member takes its configuration from the coordinator (source COORDINATOR in configuration, the default). The member does not join; the code appears in the server log, and stopOnError decides whether the server starts without the cluster.
    • A node asks the other nodes for their state, and one of them does not answer in time (no response) or answers with an error. The cluster status then shows the code for that node.
  • Solution: For a join, use the same namespace prefix and the same main and minor version on all nodes, and check the server log of the member for the reason. For the cluster status, check that the node is running and can be reached. See Namespace messages, Versions, configuration and Cluster information.

FILE_STORAGE_GENERAL_ACCESS_ERROR = -21000

  • Message: <provider>: Unable to access the file storage: <reason>
  • Cause: The MinIO or Azure Blob file storage of a cluster cannot start: its bucket or container cannot be checked, or it does not exist and cannot be created - for example because the address or the access data are wrong or the storage cannot be reached; with MinIO also because the name of the bucket belongs to another account or the access may not create buckets. The reason names the bucket or container. The code occurs only while the server starts: the start fails, and only the server log shows it (Unable to start the application). The health check of a MinIO file storage reports the same text when it cannot check the bucket. FILE_STORAGE_PATH_ACCESS_ERROR has the same number; the message tells the two apart.
  • Solution: Check the address, the access data and the name of the bucket or container, and whether the node can reach the storage. If the access may not create a bucket or container, create it in advance. Then start the node again. See Automatic bucket creation, Cannot connect to MinIO, Access denied errors, Automatic container creation, Cannot connect to Azure Storage and Authentication errors.

FILE_STORAGE_PATH_ACCESS_ERROR = -21000

  • Message: <provider>: Path access error of the file storage: <reason>
  • Cause: A folder of the file storage cannot be used. FILE_STORAGE_GENERAL_ACCESS_ERROR has the same number; the message tells the two apart. Two situations return this code:
    • While the server starts: the folder of a shared LOCAL file storage (sharedUsage, for example an NFS mount) or of an SMB share does not exist or is not a folder, the folder of the namespace below it cannot be created on the share, or the server cannot write in it. With MinIO or Azure Blob, the folder for the local copies of the files cannot be created in the temporary folder of the server. The start fails, and only the server log shows the error.
    • While the server runs, with SMB: the folder for a document cannot be created on the share. The caller receives the code with HTTP status 500.
  • Solution: Check that the folder or the share exists, is mounted on every node and that the server may write in it, and that the server may write in its temporary folder. See Mount issues, Permission issues, Cannot connect to SMB share, Permission denied, File storage providers and Directory structure.

FILE_STORAGE_RETRIEVE_CONTENT = -21001

  • Message: <provider>: Unable to retrieve content '<id>' from file storage
  • Cause: The content of a stored document cannot be read, for example for a download, for an operation, or when its metadata is read again. With MinIO and Azure Blob, the object cannot be downloaded: the storage cannot be reached or refuses access, the object no longer exists, it kept changing during the download, or the size of the download does not match. When the bucket or container was removed while the server runs, a second line says The bucket of the file storage does not exist or The container of the file storage does not exist. With LOCAL and SMB, the file cannot be read. The caller receives the code with HTTP status 500; some operations that read their input document answer with UNABLE_TO_SAVE_SOURCE_FILE (-4) instead and carry this text as the cause.
  • Solution: Check the connection to the storage and its access data. If the bucket or container is missing, create it again with the configured name; the documents that were stored in it are gone. Make sure that no lifecycle rule or other process deletes the objects of webPDF. See Missing bucket at runtime, Missing container at runtime, What you have to ensure and the server log.

FILE_STORAGE_REMOVE_CONTENT = -21002

  • Message: <provider>: Unable to remove content '<id>' from file storage
  • Cause: The file or object of a document cannot be deleted when a document is deleted or the documents of a session are removed: the storage refuses the deletion or cannot be reached, or the bucket or container no longer exists (second line as for -21001). The record of the document is already deleted at that point; its file stays in the storage. A request that deletes a document receives the code with HTTP status 500.
  • Solution: Check that the server may delete files in the folder or share, or objects in the bucket or container, and that it can reach the storage. See Permission issues, Permission denied, Missing bucket at runtime, Missing container at runtime and the server log.

FILE_STORAGE_STORE_CONTENT = -21003

  • Message: <provider>: Unable to write content '<id>' into file storage
  • Cause: The content of a document - an upload or the result of an operation - cannot be written to the file storage. With LOCAL and SMB, the file cannot be written, for example for lack of disk space or write permission, or because the share cannot be reached. With MinIO and Azure Blob, the upload fails or the bucket or container no longer exists (second line as for -21001); with MinIO also when the size of the stored object does not match the file (File size does not match: ...). With the default upload verification HEAD of MinIO, an object that the storage does not report right after the upload fails the write as well. The caller receives the code with HTTP status 500; the server log contains the reason.
  • Solution: Check the free disk space and the write permission of the folder or share, and the connection, the access data and the bucket or container of the object storage. If MinIO or the S3 storage shows new objects only after a delay, set the upload verification to ETAG. See File storage runtime settings, Missing bucket at runtime, Missing container at runtime, Permission denied and the server log.

FILE_STORAGE_WRITE_CONTENT_INTO_STREAM = -21004

  • Message: <provider>: Unable to write file storage content '<id>' into output stream
  • Cause: A web service operation that uses a stored document as its input cannot copy it into its working file: reading the document or writing the working file fails, for example for lack of disk space in the temporary folder of the server. The caller does not receive this code: the operation answers with UNABLE_TO_SAVE_SOURCE_FILE (-4) and carries this text as its cause.
  • Solution: Check the free disk space and the write permission of the temporary folder of the server, and whether the file storage can be read. See Directory structure.

FILE_STORAGE_COPY_CONTENT_INTO_FILE = -21005

  • Message: <provider>: Unable to write file storage content '<id>' into output file
  • Cause: Not returned by this version; the code is reserved.

FILE_STORAGE_CREATE_CONTENT_STREAM = -21006

  • Message: <provider>: Unable to create input stream for file storage content '<id>'
  • Cause: A LOCAL or SMB file storage cannot open the file of a stored document for reading, for example for lack of access rights or because the share cannot be reached. With SMB, this includes downloads. MinIO and Azure Blob do not return this code. The caller receives the code with HTTP status 500.
  • Solution: Check that the folder or the share is available and that the server may read in it. See Mount issues, Cannot connect to SMB share, Permission denied and the server log.

FILE_STORAGE_EMPTY_STORAGE_ID = -21007

  • Message: <provider>: File storage id is empty
  • Cause: The record of a document has no reference to its content in the file storage, so the content cannot be read, written or removed. Such a record remains when the content of a document was never stored. MinIO and Azure Blob return the code at once, without a request to the storage. The caller receives the code with HTTP status 500.
  • Solution: There is nothing to repair: the content of the document was never written. Discard the document, or end the session that owns it. See Empty or invalid storage reference.

FILE_STORAGE_FILE_NAME = -21008

  • Message: <provider>: Unable to use file name '<name>' for file storage content: <reason>
  • Cause: The file storage cannot use the file of a document. The caller receives the code with HTTP status 500; some operations that read their input document answer with UNABLE_TO_SAVE_SOURCE_FILE (-4) instead. The reason names the case:
    • With LOCAL and SMB, the file does not exist, cannot be read or is not a file - when the document is read, when its metadata is read again, or when it is removed - for example because the file was deleted from the folder or the share outside webPDF.
    • With SMB, a file of the same name already exists when a new document is stored (File name already exists).
    • Every file storage refuses a storage reference that would lead out of its storage path (the storage id leaves the storage path).
  • Solution: Do not change or delete files in the folder or share of the file storage while webPDF uses it, and make sure that all nodes of a cluster use the same shared folder. If a storage reference is refused, send the server log to support. See What you have to ensure, Local folder in a cluster and Directory structure.

DOCUMENT_STORAGE_GENERAL_ACCESS_ERROR = -22000

  • Message: <provider>: Error accessing document storage: <reason>
  • Cause: The Redis or Valkey document storage cannot read or change the record of a document, the documents of a session or the history of a document, and the failure is not a connection error. This includes a lock for a document or for its document ID that is not obtained within the lock timeout (Unable to acquire lock for ...). The reason names the operation; <provider> is REDIS, also with Valkey. The REST web service answers with HTTP status 400.
  • Solution: Check the server log for the cause, and the load and the response times of the Redis or Valkey server. See Distributed locking, Slow response times and Slow response times with Valkey.

DOCUMENT_STORAGE_REMOTE_CONNECTION_ERROR = -22001

  • Message: <provider>: Error accessing the document storage remotely: <reason>
  • Cause: A request of the document storage to the Redis or Valkey server fails, for example on a timeout or a lost connection, or a batch of commands fails. A request that is interrupted while it waits for a lock returns this code as well (Interrupted while acquiring lock). The reason names the operation; <provider> is REDIS, also with Valkey. The REST web service answers with HTTP status 400.
  • Solution: Check that the Redis or Valkey server is running and can be reached from every node, and check its access data. See Cannot connect to Redis, Cannot connect to Valkey and the server log.