error {code":"BadRequest","message":null,"target":"pipeline//runid/7ea8dfa0-538a-4d37-9164-477d34174cbb","details":null,"error":null} in azure adf

Sona Jain 21 Reputation points
2021-07-18T17:51:49.443+00:00

Hi,

I have been learning working in ADF and was trying a scenario to copy a table "Customer" from sourcesqldb to destinationsqldb using a pipeline with conditions:

  1. load Customer table from SourceDB to DestinationDB only if the column Enabled in config table has a value of 1.
  2. If the Enabled column in config table has a value of 0 then the pipeline should not load Customer table from sourcedb to destinationdb

I have created this pipeline:

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

Accepted answer
  1. ShaikMaheer-MSFT 38,441 Reputation points Microsoft Employee
    2021-07-22T10:21:48.05+00:00

    Hi @Anonymous ,

    Thank you for posting query in Microsoft Q&A Platform and Thanks for sharing details on clarifications.

    Filter activity will help you to filter your items from input array and it returns array back.

    In your it seems you are trying to filter value array which you got from lookup activity. And, it seems your condition is to take only items which has Enables property as 1.

    You need to correct expression inside filter activity --> Settings --> Condition as @equals(item().Enabled,'1'). This will filter your value array to return only items which has Enabled property as 1.

    Hope this will help. Thank you.


    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.