Forum Discussion

g3kuser's avatar
g3kuser
Icon for Helper II rankHelper II
1 year ago
Solved

pipeline return value to parent pipeline

Hi

 

I want to pass return value from child pipeline to parent pipeline and followed the example mentioned in this guide.

Set Pipeline Return Value - Azure Data Factory & Azure Synapse | Microsoft Learn

 

Child pipeline 

 

 

Unfortunately I am getting error indicating the output property of pipelineReturnValue itself doesn't exist. 

The expression 'setProperty(json('{}'),'output',activity('Invoke pipeline1_copy1').output.pipelineReturnValue.child_return)' 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'.

 

Strangely this works fine in legacy pipeline activity and not preview pipeline activity.

 

  • I didn't notice in documentation there is a bug related to it. Looks like I have to go with legacy pipeline execution.

5 Replies

  • I didn't notice in documentation there is a bug related to it. Looks like I have to go with legacy pipeline execution.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi g3kuser ,

       

      Thanks for your feedback.

       

      Best regards,

      Adamk Kong

  • kghj's avatar
    kghj
    Regular Visitor

    Since Invoke Pipeline is out of preview I had assumed this would be fixed?
    Or is there a new way to access the returnValue?

  • robscott's avatar
    robscott
    Regular Visitor

    Ran into the same issue and found that the expression has been updated from output.pipelineReturnValue (on the legacy pipeline activity) to output.properties.returnValue (on the "new" pipeline activity).

     
    Hopefully this is still helpful