Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Hi,
I am using Fabric trial licence.
I created a pipeline with Lookup as startting point to retrieve SchemaName and TableName from on prem sql database.
It wotks fine and gives me the desired output.
Then I created a For Each activiy to copy data from each table to a landing areas in the lakehouse
settings for ForEach
Then I set up the copy activity within for each
I get the error
Operation on target ForEach1 failed: The function 'length' expects its parameter to be an array or a string. The provided value is of type 'Object' .
If I change the setting for For Each to @activity('Lookup1).output.firstRow
still get the same error.
How to fix this error ?
Cheers
CheenuSing
Hi @CheenuSing
try Modify the ForEach `Items` property to reference the full array from the Lookup output:
@activity('Lookup1').output.value
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.