title: Power BI Publish Report Fails with 400 Bad request (using Azure Blob Storage)
body: <p>I am trying to publish a Power BI report using Power BI REST APIS but i get a RequestedFileIsEncryptedOrCorrupted error.
  Documentation for the Power BI request can be found at <a href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup</a>.</p>
  
  <p>Here are the steps I am following</p>
  
  <ol>
  <li>Create a temporary Blob Location</li>
  </ol>
  
  <p>Request</p>
  
  <pre><code>POST /v1.0/myorg/groups/{groupId}/imports/createTemporaryUploadLocation HTTP/1.1
  Host: api.powerbi.com
  Authorization: Bearer {token}
  User-Agent: PostmanRuntime/7.20.1
  Accept: */*
  Cache-Control: no-cache
  Host: api.powerbi.com
  Accept-Encoding: gzip, deflate
  Content-Length: 0
  Connection: keep-alive
  cache-control: no-cache
  </code></pre>
  
  <p>which returns the following data</p>
  
  <pre><code>{
    "@odata.context": "",
    "url": "",
    "expirationTime": ""
  }
  </code></pre>
  
  <ol start="2">
  <li>Push file to temp blob location</li>
  </ol>
  
  <p>then using the url I send the following request</p>
  
  <pre><code>PUT {url from step 1} HTTP/1.1
  Host: wabieus2bppbiv2.blob.core.windows.net
  x-ms-blob-type: BlockBlob
  User-Agent: PostmanRuntime/7.20.1
  Accept: */*
  Cache-Control: no-cache
  Host: wabieus2bppbiv2.blob.core.windows.net
  Content-Type: multipart/form-data;
  Accept-Encoding: gzip, deflate
  Content-Length: 2057012
  Connection: keep-alive
  cache-control: no-cache
  
  
  Content-Disposition: form-data; name="file"; filename="{local pbix file path here}
  </code></pre>
  
  <p>This request responds with a 201 created</p>
  
  <p>Then I send the publish report call</p>
  
  <pre><code>POST /v1.0/myorg/groups/{groupId}/imports?datasetDisplayName={name}&amp;amp; nameConflict=CreateOrOverwrite&amp;amp; skipReport=False HTTP/1.1
  Host: api.powerbi.com
  Content-Type: multipart/form-data;
  cache-control: no-cache
  
  Content-Disposition: form-data; name="fileUrl"
  
  {url from step 1}
  </code></pre>
  
  <p>I get a 400 Bad Request Error with the following data</p>
  
  <pre><code>{
    "error": {
      "code": "RequestedFileIsEncryptedOrCorrupted",
      "pbi.error": {
        "code": "RequestedFileIsEncryptedOrCorrupted",
        "parameters": {},
        "details": [],
        "exceptionCulprit": 1
      }
    }
  }
  </code></pre>
  
  <p>Any suggestions on what is causing this issue?</p>