SAP Knowledge Base Article - Public

3784322 - Cannot attach base64-decoded document to quote via uploadattachments endpoint

Symptom

  • Not possible to attach base64 decoded document to a quote.
  • An error occurs when posting to api/v1/documentGeneration/uploadAttachments?quoteid=<value>.
  • The document appears to be uploaded but cannot be found in the system.
  • Error message observed: "No quote loaded!"

Environment

SAP CPQ 

Reproducing the Issue

  1. Land to CPQ through a custom API (global script) from an external system.
  2. Include a decoded base64 document in the payload to be attached as a CPQ attachment.
  3. Process the document in the script so it should be present on the quote after creation.
  4. Open the quote.
  5. Attempt upload using api/v1/documentGeneration/uploadAttachments?quoteid=<value>.
  6. Post to the endpoint and error occurs.

Cause

Bug in application.

Resolution

Issue to be fixed in the 2611 release.

See Also

Keywords

base64, attachment, uploadattachments, documentgeneration, multipart/form-data, bytes, quote 1.0, quote 2.0, no quote loaded, session cookie, getinitdata, cart, bearer token, httpcontext request files, sales cloud cpq , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem

Product

SAP CPQ all versions