Cant send a csv as an attachment, get this error. Using latest mail plugin

cant send a csv as an attachment, get this error. All I am doing is using

[{“content”:[jsontocsv].[csv]",“filename”:“report.csv”}] where a JSON array is converted into a CSV.

During handling of the above exception, another exception occurred:

Something unexpected occurred. Check the logs and if the issue persists please contact support. Response was: {“error”:{“code”:“BadRequest”,“message”:“Invalid OData type specified: “Microsoft.OutlookServices.FileAttachment””,“innerError”:{“date”:“2021-07-09T20:22:25”,“request-id”:“16058fad-b4e4-4b4f-9228-eb18f623800e”,“client-request-id”:“16058fad-b4e4-4b4f-9228-eb18f623800e”}}}

Try converting the contents with the base64 plugin before attaching it. I think the “content” field only accepts bytes.

I am using the bytes output from the json to csv step and using that as the input for the “Content” field so far.

[json to csv].[csv] of bytes type → content:

Hmmm…ok. Let me look more into this, give us some time on this one.

1 Like

Ok, I’ve got a ticket in with our internal teams to take a look at this. Normally I’d do it immediately, but I’m on a high priority thing right now.

Sorry for the delay, we’ll get back to you ASAP.

1 Like