Forum Discussion
Can't open EXCEL attachments in a SharePoint List
SaettoneRoberto same here, my workaround is to zip them first
Seems it’s a Microsoft issue, which they applied a fix that didn’t work, and so are still working on it.
- MZgheibOct 19, 2022Copper ContributorHello, do you have any updates on this issue, I am trying to open excel file attached to SP item and having same error "This workbook couldn't be opened because the file format may not be matching with the file extension."
- AlessioCecchinOct 27, 2022Copper Contributor
MZgheib for me it worked when i put the code below for contentbytes in the add attachement to sharepoint element function.
base64ToBinary(items('Auf_alle_anwenden')?['contentBytes'])
hope it works for you too.
Best wishes
Alessio
- MZgheibNov 07, 2022Copper Contributor
AlessioCecchin thanks for the reply, i don't have content type since i am not using get content from onedrive or sharepoint, instead i am using the manual trigger to upload files and then add these files to sharepoint item as attachments. Anyway eventually i had to change my flow's concept since dealing with attachments is very limited and requires lot of work compared to saving files directly to sharepoint folder.
- AlessioCecchinSep 14, 2022Copper ContributorIs there a solution to this problem? I am facing this with png and pdf files.