Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
tarima
New Member

Passing a variable from one pipeline to another

I'm trying to pass a variable from one pipeline (child) to another (parent). The child pipeline creates a return value variable called Test.

 

tarima_2-1729783089398.png

It's working just fine. Here is the output.

tarima_0-1729782280875.png

The parent pipeline invokes the child pipeline and then runs a Set Variable activity to capture the child pipeline's return value. Here is the expression for the Set Variable activity in the parent pipeline.

 

@activity('GetTest').output.pipelineReturnValue.Test
 

When I run the parent pipeline the Set Variable activity fails with the following error message.

 

The expression 'activity('GetTest').output.pipelineReturnValue.Test' cannot be evaluated because property 'pipelineReturnValue' doesn't exist, available properties are 'id, itemId, jobType, invokeType, status, failureReason, rootActivityId, startTimeUtc, endTimeUtc, monitoringURL, pipelineRunId, ResponseHeaders, effectiveIntegrationRuntime, executionDuration, durationInQueue, billingReference'.

 

Here is the output of the child pipeline. No Test variable.

tarima_1-1729782708422.png

So, the child pipeline is creating the return value just fine but when I invoke it in a parent pipeline the return value doesn't exist. Any ideas why?

1 ACCEPTED SOLUTION
v-nuoc-msft
Community Support
Community Support

Hi @tarima 

 

Create a child pipeline

 

vnuocmsft_0-1729820740659.png

 

vnuocmsft_1-1729820759467.png

Create the Parent Pipeline and add an Invoke Pipeline activity to invoke the child pipeline.

 

vnuocmsft_2-1729820796861.png

 

"Invoke pipeline"

vnuocmsft_6-1729821137947.png

 

"Set variable"

vnuocmsft_7-1729821562903.png

 

@activity('Invoke Pipeline1').output.pipelineReturnValue.Test

 

vnuocmsft_8-1729821642146.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
v-nuoc-msft
Community Support
Community Support

Hi @tarima 

 

Create a child pipeline

 

vnuocmsft_0-1729820740659.png

 

vnuocmsft_1-1729820759467.png

Create the Parent Pipeline and add an Invoke Pipeline activity to invoke the child pipeline.

 

vnuocmsft_2-1729820796861.png

 

"Invoke pipeline"

vnuocmsft_6-1729821137947.png

 

"Set variable"

vnuocmsft_7-1729821562903.png

 

@activity('Invoke Pipeline1').output.pipelineReturnValue.Test

 

vnuocmsft_8-1729821642146.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.