MuleSoft · File Connector
FILE:ILLEGAL_CONTENT
Short answer
FILE:ILLEGAL_CONTENT means the File Connector Write operation received content it cannot write. Check the expression in the operation's content, and make sure it produces writable data.
VerifiedLast verified
01Error text
Error type: FILE:ILLEGAL_CONTENT02Likely causes
- The Write operation received invalid content to write.
03How to fix it
- Inspect the value the Write operation's content expression resolves to at run time.
- Transform it into content that can be written, with the output format you intend for the file.
- Handle the failure with an error handler of type
FILE:ILLEGAL_CONTENT.
04Official documentation
→Related errors
- FILE:ILLEGAL_PATHFILE:ILLEGAL_PATH means a File Connector operation was given a path that does not exist while Create parent directories is set to false. Correct the path, or let the operation create the missing directories.
- FILE:FILE_ALREADY_EXISTSFILE:FILE_ALREADY_EXISTS means the target file already exists and the operation is not allowed to overwrite it. Set Overwrite to true, pick a different write mode, or use a unique file name.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer