Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

multipartmimestreamformatexception error when importing pbix files using rest api

hi,   So I'm using powershell to automate my power BI reports into my workspace through imports API. here's the code which I'm using : $PBIXuri="my azure blob storage url", $Workspaceur...
  • Anonymous's avatar
    Anonymous
    6 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.