Loading

CSV Output Delimiter Changes to Comma in Mule Flows

Julkaisupäivä: Nov 2, 2026
Kuvaus
During integration development, a CSV file that was originally generated with semicolon delimiters was received by the target system with commas when the mimetype was set to application/csv. The issue occurred when sending the file through the Mule SFTP connector, while using text/csv preserved the expected delimiter.
Ratkaisu
1. If the flow must use application/csv, explicitly set the separator in the DataWeave output directive to preserve semicolon-delimited output. 2. If the mimetype is being set manually, include the separator parameter in the mimetype value so the CSV writer does not revert to the default comma delimiter. 3. If the file is already correctly formatted and only needs to be passed through, use text/csv, text/plain, or application/octet-stream instead of application/csv. In this case, text/csv resolved the issue and allowed processing to continue. 4. Verify the payload mimetype just before the SFTP Write operation and review the flow for any downstream transformation or outputMimeType setting that could rewrite the CSV formatting. The DataWeave separator property is documented at https://docs.mulesoft.com/dataweave/2.11/dataweave-formats.
Knowledge-artikkelin numero

005465795

 
Ladataan
Salesforce Help | Article