tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
660 stars 421 forks source link

views.populate_image returns None #1521

Closed david5010 closed 2 weeks ago

david5010 commented 2 weeks ago

Describe the bug After authenticating, identifying the correct workbook and the correct sheet, calling server.views.populate_image(sheet_view, image_req_option) I get None

Versions Details of your environment, including:

To Reproduce

# After authenticating correctly
server.workbooks.populate_views(workbook)
sheet_view = next((v for v in workbook.views if v.name == SHEET_NAME), None)
image_req_option = TSC.ImageRequestOptions(maxage=1)  # Set cache options if needed
image = server.views.populate_image(sheet_view, image_req_option)

Results image is None

jorwoods commented 2 weeks ago

Expected behavior. Check the sheet_view.image attribute.

david5010 commented 2 weeks ago

Oh yes, sorry, I think I misread the documentation, it all worked out!