Share via

Data Factory: Copying Large SQL Database to REST API

Anonymous
2021-08-23T22:59:48.47+00:00

Hello Microsoft,

I am currently attempting to move data from a large SQL database into a REST API using Azure Data Factory. This table has 100,000+ Rows. My Initial attempt was to use a look up activity to get the data into a JSON format, and then use a for each activity to load the data into the REST API.

This API Can only accept one record at a time, so parallelization is key.

However, this implementation has a limitation, lookUp can only pull around 5000 records at a time, so I would need to nest that flow within another forEach Activity to iterate through the entirety of my table. Is this optimal?

I noticed that the copy Activity recently supports copying to REST API but I am running to issues pushing records to the API with this method. I am currently getting this Error:
125793-image.png

Using a similar connection Method works fine in a web activity so I am left to assume that the payload from the copy activity is being provided in an obscure way. The body for the record needs to be in this format {Column1 : Value, Column2 : Value,.......}

Can I get some assistance debugging this?

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.