SAP Knowledge Base Article - Public

2741026 - Error: “Enter either "FilePath" or "WebLink" for attachment in the manifest” While Importing Attachments Using Data Workbench Work Center

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

  1. Go to Data Workbench work center
  2. Select Import view
  3. Select the radio button for Attachments
  4. Select the respective Data Workbench Object
  5. 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:

  1. Name of the manifest file is case sensitive. Name the file as manifest.csv
  2. The size if the zip archive must not exceed 100 MB, and size of each attachment must not exceed 10 MB.
  3. Create a zip archive containing the manifest.csv file and the attachments.

To upload the manifest file, follow the below steps:

  1. Go to Data Workbench work center
  2. Select Import view
  3. Select the radio button for Attachments
  4. Select the respective Data Workbench Object
  5. Select Next
  6. Browse for the archive file
  7. Select Upload
  8. 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

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions