Error trying to copy Lookup activity value to an array variable

Nithin Vanam 261 Reputation points
2021-11-09T07:01:41.397+00:00

Hello,

I am new to ADF and might have missed something simple here. I am trying to use a lookup activity to query data from an Oracle DB and passing the output of this activity to a set variable activity and a for-each activity. In both cases the input is @activity('LookupComponents').output.value

However when i debug, the set variable and for-each activity fail with the below error:

The expression 'length(activity('LookupComponents').output.value)' cannot be evaluated because property 'value' doesn't exist, available properties are 'firstRow, effectiveIntegrationRuntime, billingReference, durationInQueue'.

The lookup activity works fine and the output of it is:

{  
    "firstRow": {  
        "SEASON": 2020,  
        "BOOKING_NO": 100024,  
        "COMPONENT_NO": 500034,  
        "VERSION_NO": 9,  
        "TOTAL_GROSS_AMT": 7163.5,  
        "TOTAL_COMM_AMT": 0,  
        "TOTAL_NET_AMT": 7163.5,  
        "PAYMENT_AMT": 5.5,  
        "BALANCE_AMT": 7158,  
        "BALANCE_DATE": "2020-05-31T00:00:00Z",  
        "EX_GRATIA_AMT": 0,  
        "CREATED_BY": "lleung",  
        "CREATED_DATE": "2020-04-20T15:31:43Z",  
        "DISCOUNT_DATE": null,  
        "DISCOUNT_AMT": 0,  
        "COMPONENT_STATUS": "I",  
        "CREATION_CODE": null,  
        "TERMINATION_CODE": "T3"  
    },  
    "effectiveIntegrationRuntime": "SelfHostedOracle",  
    "billingReference": {  
        "activityType": "PipelineActivity",  
        "billableDuration": [  
            {  
                "meterType": "SelfhostedIR",  
                "duration": 0.016666666666666666,  
                "unit": "Hours"  
            }  
        ]  
    },  
    "durationInQueue": {  
        "integrationRuntimeQueue": 2  
    }  
}  

This is my pipeline:

147637-image.png

And the outputs of the debug:

147644-image.png

Could someone please guide me as to what i am doing incorrectly here? Thanks in advance.

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

0 additional answers

Sort by: Most helpful