1 Reply Latest reply on Sep 5, 2018 3:17 PM by Patrick A Van Der Hyde

    Python Rest API  publish .hyper file to tableau online Error

    LOK YINLEON

      Python Rest API  publish .hyper file to tableau online

      But "DEBUG:tableau.endpoint:[Truncated File Contents]"  show up

      When i use the hyper file on tableau online for a new workbook,

      "ERROR:  'Extract' does not exist prepare.xml DataServiceFailure" error show up.How can i fix that

       

       

       

       

       

       

       

      DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): us-west-2b.online.tableau.com

      DEBUG:urllib3.connectionpool:https://us-west-2b.online.tableau.com:443 "POST //api/2.3/auth/signin HTTP/1.1" 200 336

      DEBUG:tableau.endpoint:b'<?xml version=\'1.0\' encoding=\'UTF-8\'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd"><credentials token="pqn_RRlkRbu1g-ILNkritQ|ZXcOGMX5ZGsaTtspuuiMFKp5D8El4Odk"><site id="3b626de3-139d-4df7-8810-a718a09d4bc4" contentUrl="testone"/><user id="6612d13b-340b-4740-bc77-2e9a66d77f0b"/></credentials></tsResponse>'

      INFO:tableau.endpoint.auth:Signed into https://us-west-2b.online.tableau.com/ as g1175332@study.ouhk.edu.hk

      INFO:tableau.endpoint.projects:Querying all projects on site

      DEBUG:urllib3.connectionpool:https://us-west-2b.online.tableau.com:443 "GET //api/2.3/sites/3b626de3-139d-4df7-8810-a718a09d4bc4/projects HTTP/1.1" 200 375

      DEBUG:tableau.endpoint:b'<?xml version=\'1.0\' encoding=\'UTF-8\'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd"><pagination pageNumber="1" pageSize="100" totalAvailable="1"/><projects><project id="48db2f32-01ca-4c65-8240-dcfc42d78e6b" name="default" description="The default project that was automatically created by Tableau." contentPermissions="ManagedByOwner"><owner id="b1b3cf84-b4a2-418a-b399-0ad17758b685"/></project></projects></tsResponse>'

      DEBUG:tableau.endpoint:Server response from https://us-west-2b.online.tableau.com//api/2.3/sites/3b626de3-139d-4df7-8810-a718a09d4bc4/projects:

        <?xml version='1.0' encoding='UTF-8'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd"><pagination pageNumber="1" pageSize="100" totalAvailable="1"/><projects><project id="48db2f32-01ca-4c65-8240-dcfc42d78e6b" name="default" description="The default project that was automatically created by Tableau." contentPermissions="ManagedByOwner"><owner id="b1b3cf84-b4a2-418a-b399-0ad17758b685"/></project></projects></tsResponse>

      INFO:tableau.endpoint.datasources:Publishing sport_summary_test.hyper to server

      DEBUG:urllib3.connectionpool:https://us-west-2b.online.tableau.com:443 "POST //api/2.3/sites/3b626de3-139d-4df7-8810-a718a09d4bc4/datasources?datasourceType=hyper&overwrite=true HTTP/1.1" 201 558

      DEBUG:tableau.endpoint:b'<?xml version=\'1.0\' encoding=\'UTF-8\'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd"><datasource id="660fd4bc-e9cb-47ad-a4e0-50664ab062a4" name="sport_summary_test" contentUrl="sport_summary_test" type="hyper" createdAt="2018-08-15T08:33:00Z" updatedAt="2018-08-17T08:31:43Z"><project id="48db2f32-01ca-4c65-8240-dcfc42d78e6b" name="default"/><owner id="6612d13b-340b-4740-bc77-2e9a66d77f0b"/><tags/></datasource></tsResponse>'

      DEBUG:tableau.endpoint:Server response from https://us-west-2b.online.tableau.com//api/2.3/sites/3b626de3-139d-4df7-8810-a718a09d4bc4/datasources?datasourceType=hyper&overwrite=true:

        <?xml version='1.0' encoding='UTF-8'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.3.xsd"><datasource id="660fd4bc-e9cb-47ad-a4e0-50664ab062a4" name="sport_summary_test" contentUrl="sport_summary_test" type="hyper" createdAt="2018-08-15T08:33:00Z" updatedAt="2018-08-17T08:31:43Z"><project id="48db2f32-01ca-4c65-8240-dcfc42d78e6b" name="default"/><owner id="6612d13b-340b-4740-bc77-2e9a66d77f0b"/><tags/></datasource></tsResponse>

      INFO:tableau.endpoint.datasources:Published sport_summary_test.hyper (ID: 660fd4bc-e9cb-47ad-a4e0-50664ab062a4)

      Datasource published. ID: 660fd4bc-e9cb-47ad-a4e0-50664ab062a4

      DEBUG:urllib3.connectionpool:https://us-west-2b.online.tableau.com:443 "POST //api/2.3/auth/signout HTTP/1.1" 204 0

      DEBUG:tableau.endpoint:[Truncated File Contents]

      INFO:tableau.endpoint.auth:Signed out