avoid copying empty json file into adls

Haritha Gavara 46 Reputation points
2021-11-09T13:28:34.683+00:00

Hi,

I have developed a pipeline which brings data from rest api and copies into adls, but sometimes we are not receiving data and an empty array is copying into adls,

could anyone help me how to avoid this

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Nandan Hegde 36,716 Reputation points MVP Volunteer Moderator
    2021-11-09T13:42:06.167+00:00

    Hey,
    Can you share the output format of the REST API?
    Below can be 1 of the methods:

    Use web activity to get the result of REST API and leveraging the web activity output, you can use If activity with @empty() expression to check whether the output is present or empty.
    If empty then ignore else leverage Copy activity


0 additional answers

Sort by: Most helpful

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.