ADF - Read a column values through lookup activity

Aicha Bayram 61 Reputation points
2022-05-26T11:19:47.007+00:00

Hello,

I hope you are doing well ?
Working on ADF and using the LookUp activity, I want to read multiple values of a column.

This expression : @activity(‘Lookup1’).output.value[1].col2 reads only a value and @activity(‘Lookup1’).output.value.col2 do not work.

Rgeards,
Aicha Bayram

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

Accepted answer
  1. Pratik Somaiya 4,201 Reputation points
    2022-05-26T11:43:55.687+00:00

    Hello @Aicha Bayram

    You can read multiple values / output of your Lookup using ForEach activity and use them inside another activity

    @activity(‘Lookup1’).output.value[1].col2 will always read only 1 value as you have specified value[1], an index from an array

    You also can't use @activity(‘Lookup1’).output.value.col2 as the values in output are in form of an array and you need to mention an index

    You can consume multiple values via ForEach activity


0 additional answers

Sort by: Most helpful