ADF fails when triggered by api, but succeeds when in debug

Avila, Sergio (Denver) 20 Reputation points
2023-07-20T19:25:09.4233333+00:00

I have a data factory with multiple pipelines. I have 1 master pipeline that calls other wrapper pipelines. The master pipeline gets triggered by a logic app. I have multiple pipelines that copy data from/to different tables. In the sink section, some of these pipelines fail because it can't find field [xxxx] in the source, but that should not be a problem because the target table has a constraint(default value) on inserts. One of these fields is the Primary key (ID) so this is automatically generated on insert.

Screenshot 2023-07-20 132320

The main problem is that this only happens when the master pipeline gets triggered. It works correctly when we execute the master pipeline in debug mode. Another problem is also that this only seems to happen in a few tables, not all of them.

I checked, and the JSON is identical to other working pipelines. I also checked the constraints on the target failing tables and everything is correct.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2023-07-25T06:00:26.04+00:00

    Hi Avila, Sergio (Denver) ,

    Glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Elaborating your answer, it seems there might be some mismatch in the explicit mapping between source and sink schema under tabular translator. For handling data load for multiple tables , instead of mapping each columns, we could also use Dynamic Column mapping in Copy Activity

    User's image

    User's image

    If you want to add some more details, please feel free to add it in the below comment. Kindly accept the answer by clicking on Accept answer button. Thankyou


2 additional answers

Sort by: Most helpful
  1. Avila, Sergio (Denver) 20 Reputation points
    2023-07-24T13:46:42.13+00:00

    Hello @AnnuKumari-MSFT , I have checked the configuration to other working pipelines, and everything is exactly the same. the missing column coming from the source should not matter since it is throwing an error on the target's table primary key which auto populates on creation.

    One more piece of context is that I am deploying the ADF using Terraform scripts in Azure DevOps

    0 comments No comments

  2. Avila, Sergio (Denver) 20 Reputation points
    2023-07-24T19:42:50.5633333+00:00

    @AnnuKumari-MSFT I figured out the problem. The sink section was failing because of the Tabular Translator.

    0 comments No comments

Your answer

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