I am trying to send multiple .csv attachments in a single email bit it keeps failing stating "Invalid Template" other file types I have tested and work flawless .png, .jpg, .xlsx no problem sending the email, It is only the .csv files that are failing. I followed this post to create the flow and used Expression "body('Get_attachment_content').$content" in the Array instead of the SharePoint Get attachment.
ERROR RECEIVED
InvalidTemplate. Unable to process template language expressions in action 'Append_to_array_variable' inputs at line '1' and column '2325': 'The template language expression 'body('Get_attachment_content').$content' cannot be evaluated because property '$content' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.
The flow below works for all common file types except .csv.
JSON Array Value
Error when trying to get .csv attachment