Symptom
You have a requirement to upload Attachments to respective Objects using Data Workbench work center. While uploading the Attachments, you receive the Processing error:
Enter either "FilePath" or "WebLink" for attachment in the manifest
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to Data Workbench work center
- Select Import view
- Select the radio button for Attachments
- Select the respective Data Workbench Object
- Select Download Manifest File
Consider the example of Account Attachments. The data that should be entered in the manifest.csv file are as follows:
- CorporateAccountExternalKey of the object (node) for which you are importing attachment
- AccountID which is the InternalID for Account
- AttachmentTypeCode which is the Type Code defined for an attachment type
- AttachmentName Name of the attachment to be uploaded
- FilePath which is the Path from the root within the archive file
- WebLink which is the webpage where information is available
If the attachments are all placed in the root folder, then the manifest.csv file will have the below details:
- CorporateAccountExternalKey: XXXXXXXXXX
- AccountID: YYYYYYYYYYY
- AttachmentTypeCode: 10001
- AttachmentName: ZZZZZZZZZZ
- FilePath: ZZZZZZZZZZ.docx
- WebLink: https://example@example.com
* XXXXXXXXXX represents the External Key for the Corporate Account,
10001 represents the Type Code for an attachment type,
YYYYYYYYYYY represents the Account ID
ZZZZZZZZZZ represents the Name of the attachment
ZZZZZZZZZZ.docx represents the FilePath of the attachment from root within the archive file
https://example@example.com represents the WebLink
Note:
- Name of the manifest file is case sensitive. Name the file as manifest.csv
- The size if the zip archive must not exceed 100 MB, and size of each attachment must not exceed 10 MB.
- Create a zip archive containing the manifest.csv file and the attachments.
To upload the manifest file, follow the below steps:
- Go to Data Workbench work center
- Select Import view
- Select the radio button for Attachments
- Select the respective Data Workbench Object
- Select Next
- Browse for the archive file
- Select Upload
- System throws the error
Enter either "FilePath" or "WebLink" for attachment in the manifest
Cause
In the manifest.csv file, you have provided the FilePath and the WebLink for attachment.
Resolution
As the error states, you must provide either FilePath or WebLink for attachment in the manifest.csv file but not both.
In the manifest.csv file, provide either FilePath or WebLink for attachment and proceed with the attachments upload for the respective Data Workbench object.
Keywords
Attachments upload, Attachments, Manifest, Data Workbench, manifest.csv , KBA , attachments upload , manifest , attachments , manifest.csv , data workbench , LOD-CRM-INT-DWB , Data Workbench , Problem