6 Replies Latest reply on Aug 24, 2016 5:48 PM by Ryan B

    REST API Publish Datasource "500 Internal Server error"

    Peter Jones

      Can anyone see anything wrong with this request or why the tableau API service is erroring out?  (Bold emphasis added by me)

       

      From my tableau server event log:

      com.tableausoftware.api.rest.RestApiController - Unhandled exception org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part 'request_payload' is not present.

       

      Here is the HTTP Request pulled from listening thru fiddler:

      POST http://<MyHostIP>/api/2.1/sites/3f99e39c-105b-4dcc-93c9-f337503526a2/datasources?overwrite=true

      X-Tableau-Auth: wfwMbQ1S0306XxK6a3Y4r1L4kfmHdDM5

      Content-Type: Content-type: multipart/mixed; boundary=*****--Boundary--3c920e38-c4fc-4947-9b6d-cffa26cf32bb*****

      Host: <MyHostIP>

      Content-Length: 10370799

      Expect: 100-continue

       

       

      *****--Boundary--3c920e38-c4fc-4947-9b6d-cffa26cf32bb*****

      Content-Disposition: name="request_payload"

      Content-Type: text/xml

       

      <tsRequest><datasource name=StandardExtract_CID_BQ><project id="8b50dfd0-03bb-49ea-bca3-9fb835c30c81" /></datasource></tsRequest>

      *****--Boundary--3c920e38-c4fc-4947-9b6d-cffa26cf32bb*****

      Content-Disposition: name="StandardExtract_CID_BQ"; filename="StandardExtract_CID_BQ.tds"

      Content-Type: application/octet-stream

       

      <binary data stream>

      *****--Boundary--3c920e38-c4fc-4947-9b6d-cffa26cf32bb*****