Reputation: 263
I am new to ADF. I am creating a small demo where I am trying to hit a sample API "https://dummy.restapiexample.com/api/v1/employees" and inserting data into the Employee table in the SQL database.
However, I would also like to add data flow to perform few select and other transformations on other related tables.
Below are the things that I have done so far in azure data factory:
Created a linked service called "EmployeeRestService" to communicate with the above api.
Created a linked service called "AzureSqlDatabase" to communicate with azure sql database
Created a dataset "EmployeeApiDataset" of type "Rest" and linked it with "EmployeeRestService".
Created a dataset of type Azure sql database and Selected "EmployeeTable".
And here is the error snapshot:
In the data flow --> Source Settings, I selected "EmployeeApiDataset". But when I am trying to preview the data by enabling the debug, I am getting below error (refer above snapshot):
at Source 'EmployeeApi': Rest Sink - Error response received from the server (url:http://dummy.restapiexample.com/api/v1/employees,request body: None, request method: GET, status code: 429), response body: Some(
Is this a correct way of doing adding Rest data source in data flow? Note: I do not want to create an Azure data lake to store API results.
Can anybody suggest to me why I am getting the above error and what is the correct way of doing this?
Upvotes: 1
Views: 4405
Reputation: 5074
As @esqew mentioned in the comments, there is nothing wrong with your dataflow Source settings. As you are using online dummy Rest API as your source dataset, there are high chances that too many requests are made to call the Rest API by users.
Upvotes: 1