Closed alitwaij closed 2 years ago
Hi @alitwaij this change was made to avoid errors related to Tableau's REST API failing to support the _all_
fields parameter for an increasing number of endpoints. It began with the endpoints related to views and has recently impacted the projects endpoints as well.
For now the relevant users endpoint supports the field, so if you run pip install -U tableau-api-lib
then you will once again be getting the information you expect when running the same code as before. However, if at any point in the future you begin to get errors when using the get_users_dataframe
function, be aware that you can now pass in a parameter "all_fields". If you begin to get errors in the future then the issue impacting other endpoints may be impacting the "Query Users on Site" endpoint.
If that scenario above happens then it means that until Tableau fixes the issue impacting these endpoints, you will need to query the _default_
fields instead of _all_
fields. You can do this in the following way:
users_df = querying.get_users_dataframe(conn, all_fields=False)
Let me know if all is working as expected for you! Sorry for the inconvenience that caused.
Brilliant many thanks indeed. Very useful info. Your library really helped me in my work. Am really grateful to you.
Thankyou
Ali
From: Elliott @.> Sent: Friday, July 29, 2022 8:43:08 PM To: divinorum-webb/tableau-api-lib @.> Cc: alitwaij @.>; Mention @.> Subject: Re: [divinorum-webb/tableau-api-lib] query.Get_Users_DataFrame has two missing columns in new version (Issue #91)
Hi @alitwaijhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Falitwaij&data=05%7C01%7C%7C3afcac5bfb0f478ec59508da719a90be%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637947205972190567%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mgbGmWMQz%2BTjYidYRGLQ6mpIiO0fcx3Ot1gshH9wlZU%3D&reserved=0 this change was made to avoid errors related to Tableau's REST API failing to support the all fields parameter for an increasing number of endpoints. It began with the endpoints related to views and has recently impacted the projects endpoints as well.
For now the relevant users endpoint supports the field, so if you run pip install -U tableau-api-lib then you will once again be getting the information you expect when running the same code as before. However, if at any point in the future you begin to get errors when using the get_users_dataframe function, be aware that you can now pass in a parameter "all_fields". If you begin to get errors in the future then the issue impacting other endpoints may be impacting the "Query Users on Site" endpoint.
If that scenario above happens then it means that until Tableau fixes the issue impacting these endpoints, you will need to query the default fields instead of all fields. You can do this in the following way: users_df = querying.get_users_dataframe(conn, all_fields=False)
Let me know if all is working as expected for you! Sorry for the inconvenience that caused.
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdivinorum-webb%2Ftableau-api-lib%2Fissues%2F91%23issuecomment-1199890025&data=05%7C01%7C%7C3afcac5bfb0f478ec59508da719a90be%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637947205972190567%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RWbmOVgY8GWRVSOaCtAb%2FLxLR0guYqeUdTaMC3SBqH8%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMMNXV3H7G72TBLXIG6HUADVWQX4ZANCNFSM55BMBMUQ&data=05%7C01%7C%7C3afcac5bfb0f478ec59508da719a90be%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637947205972190567%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=plVGylNiF%2BsSNmxs4%2B917CEUKc8o9PBRk7846DzFLXc%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
Hi i noticed in the version i downloaded on 28 july 22 that get users method was mssing email and FullName from the columns that existed in version 0.1.37 (downloaded around Aug 2021). Plz can they be added back.