Forum Discussion
multipartmimestreamformatexception error when importing pbix files using rest api
- Anonymous6 years ago
finally found the problem.
the code itself has no problem, the problem is on the ps1 file itself.
I don't know why but the ps1 file on my local is being recognized as a UNIX based files. because my OS is windows I just changed it into win based files again and it works just fine.
Hi lbendlin
yes, I've tried my code in the sandbox and it works just fine.
this code is for my web app where it will call my PowerShell to import a PBI file from Azure Storage.
the strange thing about this [MultiPartMimeStreamFormatException] error is, it's only occurred when I try to run the code from my local environment. while if I released it to my app container on top of Azure it worked just fine.
finally found the problem.
the code itself has no problem, the problem is on the ps1 file itself.
I don't know why but the ps1 file on my local is being recognized as a UNIX based files. because my OS is windows I just changed it into win based files again and it works just fine.