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
- Land to CPQ through a custom API (global script) from an external system.
- Include a decoded base64 document in the payload to be attached as a CPQ attachment.
- Process the document in the script so it should be present on the quote after creation.
- Open the quote.
- Attempt upload using api/v1/documentGeneration/uploadAttachments?quoteid=<value>.
- Post to the endpoint and error occurs.
Cause
Bug in application.
Resolution
Issue to be fixed in the 2611 release.
See Also
- Refer to: Handling base64 files and attachments in CPQ
- Refer to: Note 3487591 - Known Issues in SAP CPQ
- Refer to: Note 3289626 - CPQ Release Notes
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
SAP Knowledge Base Article - Public