0

Issues converting .xls to .xlsx

Hi I'm getting this error when I try to convert .xls to .xlsx in a power automate flow. Content is wrapped in a base64 function

"An error occurred converting the file provided: The file format and extension do not match."

Any ideas?

1 comment

  • Avatar
    Jay Goodison Official comment

    Hello khadija ceesay

    Assuming you are passing a 'File Content' value to the action, in which case you should not wrap the value in the base64() string. Power Automate already silently converts 'File Content' values to base64, therefor when you wrap a 'File Content' value with the base64() expression the 'File Content' value is converted to a string but as the receiving action is expecting a byte array Power Automate will re-convert the value... thus the 'File Content' value is corrupted. 

    If you need further assistance, please send the Input value sent to the Encodian action to support@encodian.com and we will advise further. 

Please sign in to leave a comment.