How to get list of all table names from table storage using Web activity in ADF

Hemanath Goud Kandula 1 Reputation point
2024-02-10T15:36:49.2666667+00:00

In Azure Table Storage we have more than 1000 tables and to get the table name I am using the Rest API of Table Storage and SAS Url token with Web activity in ADF. I cannot get all table names in response and in response, we are having `x-ms-continuation-NextTableNamevalue at the end. From the official documentation page of Azure, I found that in web activity we can only get 1000 table names, and if we need to get the remaining table names we need to use `x-ms-continuation-NextTableNamevalue. I don't know how to use continuation-token to get the remaining tables. Can someone help me how I can able to get all table names at once in the web activity?

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
159 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,805 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 17,201 Reputation points
    2024-02-10T16:07:20.45+00:00

    In Azure Table Storage, when querying a service to list tables (or other entities), the service may paginate the results if there are a large number of items. This is exactly what you're experiencing with the 1000 table limit and the use of continuation tokens (x-ms-continuation-NextTableName). Unfortunately, there's no direct way to get all table names in a single request if you have more than 1000 tables. However, you can achieve this by making multiple requests, using the continuation token from each response to get the next set of tables. https://stackoverflow.com/questions/39965591/get-list-of-all-tables-in-microsoft-azure-tablestorage

    1 person found this answer helpful.