KNOWLEDGE BASE

Tableau Server Client (Python) API Returns Value 'None' For parent_id


Published: 07 Feb 2019
Last Modified Date: 17 Nov 2019

Issue

When using the ProjectItem class to create a list of projects from a Tableau site, the parent_id attribute returns a value of 'None'.

Environment

  • Tableau Online
  • REST API
  • Tableau Server Client (Python)

Resolution

When instantiating the 'Server' object in your script, pass a flag () to have it automatically use the appropriate API version for your Tableau Online instance, or force it to use a specific API version (i.e. 3.1, 3.2, etc). See Use the REST API version supported by the server for more information. 
Example:
 
server = TSC.Server('http://SERVER_URL', use_server_version=True)

or

server = TSC.Server('http://SERVER_URL')
server.version = '3.2'

Cause

An older version of the REST API is being used.
Did this article resolve the issue?