Symptom
You have a requirement to upload Attachments to respective Objects using Data Workbench work center. While importing the Attachments, you receive the Processing error:
Content-Type should be ‘multipart/mixed’
Environment
SAP Hybris CLoud for Customer
Reproducing the Issue
- Go to Data Workbench work center
- Select Import view
- Select the radio button for Attachments
- Select the respective Object
- Select Download Manifest File
The data that should be entered are:
- External Key of the object (node) for which you are importing attachment
- Type Code defined for an attachment type
- Name of the attachment
- Mime Type or the media type of the attachment, say, text/html
- Path from the root within the archive file
Example:
If you are importing the Attachments of an Account, and the attachments are all placed in the root folder, then the manifest file will have the below details:
- CorporateAccountExternalKey: XXXXXXXXXX
- TypeCode: 10001
- AttachmentName: YYYYYYYYYYY
- MimeType: PQR/DEF
- Path: ZZZZZZZZZZ
(where XXXXXXXXXX represents the External Key for the Corporate Account,
10001 represents the Type Code for an attachment type,
YYYYYYYYYYY represents the Name of the attachment,
PQR/DEF represents the MIME Type of the document,
ZZZZZZZZZZ represents the Path from root within the archive file)
Name of the manifest file is case sensitive. Name the file as manifest.csv
- Go to Data Workbench work center
- Select Import view
- Select the radio button for Attachments
- Select the respective Object
- Select Next
- Browse for the archive file
- Select Upload
- Select Next
- Select Import
- In the Monitor tab, check for the respective Task ID
- The records in the file have the Processing error
Cause
The update is failing as some of the MIME Types for Document Upload are incorrectly filled in the manifest file.
Resolution
There are various MIME Type Codes with respect to each MIME Type. Check the activity Allowed MIME Types for Document Upload in the Overview view of Business Configuration workcenter for valid values and upload the manifest file.
Keywords
Manifest, MIME Type. MIME, Muiltipart , KBA , multipart , content-type should be multipart/mixed , LOD-CRM-INT-DWB , Data Workbench , How To