In dataloader.io from Mulesoft, a task that inserts attachments fails with the error: “The attachment body has an incorrect type. Expected byte[] or InputStream.”
This issue occurs when the files listed in the CSV do not exactly match the files included in the ZIP file. Differences in file names (including case or special characters) or missing files can trigger this error.
Additionally, if the ZIP file contains a folder instead of the files directly at the root level, the task may fail with the same error.
Verify that the number of files in the ZIP matches the number of attachment records in the CSV. Then ensure that each file name exactly matches the corresponding value in the CSV (including capitalization and characters).
005318741

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.