无法使用TSC安排Tableau工作簿

时间:2019-04-25 17:19:45

标签: api version tableau endpoint

我正在使用Tableau Server Client以编程方式发布工作表并将其分配给工作簿。
从库的文档中,我指的是示例“ set_refresh_schedule.py”,以将刷新计划分配给已发布的报告。 当以下命令运行时:

server.schedules.add_to_schedule(schedule.id,workbook_or_datasource)

我遇到以下错误:

Traceback (most recent call last):
File "code.py", line 109, in 
main()
File "code.py", line 65, in main
run(args)
File "code.py", line 102, in run
if(assign_to_schedule(server, item.id, schedule)):
File "code.py", line 58, in assign_to_schedule
server.schedules.add_to_schedule(schedule.id, workbook_or_datasource)
File "/usr/local/lib/python3.7/site-packages/tableauserverclient/server/endpoint/endpoint.py", line 115, in wrapper
self.parent_srv.assert_at_least_version(version)
File "/usr/local/lib/python3.7/site-packages/tableauserverclient/server/server.py", line 109, in assert_at_least_version
raise EndpointUnavailableError(error)
tableauserverclient.server.endpoint.exceptions.EndpointUnavailableError: This endpoint is not available in API version 2.6. Requires 2.8

有人可以帮助我解决这个问题吗?我在这里迷路了:( TIA

0 个答案:

没有答案