Create blank xlsx file in SP using Javascript sharepoint REST API

%3CLINGO-SUB%20id%3D%22lingo-sub-2389086%22%20slang%3D%22en-US%22%3ECreate%20blank%20xlsx%20file%20in%20SP%20using%20Javascript%20sharepoint%20REST%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2389086%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20create%20a%20blank%20Excel%20file%20in%20SP%20using%20the%20javascript%20rest%20API.%20The%20file%20is%20successifly%20created%20but%20when%20I%20open%20it%20I%20get%20the%20error%20%3A%20unable%20to%20open%20the%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22helgarch_0-1622063844292.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283997iBA3532CCEFF371E8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22helgarch_0-1622063844292.png%22%20alt%3D%22helgarch_0-1622063844292.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20idea%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EHicham%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2389086%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello, 

I'm trying to create a blank Excel file in SP using the javascript rest API. The file is successifly created but when I open it I get the error : unable to open the workbook.

 

helgarch_0-1622063844292.png

 

Do you have any idea ? 

 

Thanks,

Hicham

 

0 Replies