How To Inspect Items When Using The Execute Pipeline Activity In ADF/Synapse Pipelines

How To Inspect Items When Using The Execute Pipeline Activity In ADF/Synapse Pipelines

Ed Yau

Principal Architect - Data Solutions |Kerv Digital

Published 06/07/22 under:

Have a question?

Get in touch

A workaround for ADF/Synapse pipelines when using the Execute Pipeline activity to inspect anything about the run from the calling pipeline

 

A longstanding issue I’ve found with ADF/Synapse pipelines is that if you try to use the Execute Pipeline activity, then it won’t really let you inspect anything about the run from the calling pipeline.

 

This can be generalised to state that within any individual pipeline, you’ll never really be able to understand much about other pipeline runs.

There’s actually a big Azure Feedback post about this, but unfortunately no one seems to have come up with any kind of workaround… So, here’s my workaround…

 

Just call the Synapse/Data Factory API from within the pipeline!

Setup the Rest API as a LinkedService:

 

 

  • Auth type = Managed Identity. It’s worth noting that AAD Resource is not the usual endpoint used for managed identity authentication (see this note)
  • For the base URL, just have workspace_name as a parameter for the linked service. This will be used later and will make this linked service agnostic to the environment you’re in.

 

Then create a dataset from this:

 

 

As you can tell, I’m  being really generic here and just passing the relative url through for now.

Again, it’s worth noting that workspace_name is a parameter here… we only define it in the actual pipeline.

 

Et voila!

Now we have a dataset we can use to get data from the Data Factory API. e.g.:

 

 

As you can now see, we can pass in the workspace name, so this linked service can be moved to new environments with no issue!

 

I actual had to do a double take when I first hit preview data…

 

 

We can now easily get the top level output of a run.

 

“But what about details of the inner activities” you ask…?

Glad you did! Just use this method and hey presto, we now have all the details of our pipeline run…

 

 

Since this is a REST dataset, we unfortunately can’t use it immediately in a Lookup or Get Metadata activity… but, we can easily persist this to a storage account, then look it up and understand anything about how our pipeline ran, from within a pipeline!

 

This was fun little workaround to create and saved me from a jam.

As I couldn’t find anyone else talking about having done this, I thought I’d leave it here in case you found it useful.

Related

You might also be interested in

From our world to yours

Five Reasons Why Your Business Needs Microsoft Cloud For Retail

From our world to yours

How Much Assurance Does A Project Need?

From our world to yours

Why User Experience (UX) In Nonprofits Matters

From our world to yours

Perpetual Progression: Moving Ever Forward With Data

From our world to yours

Data Driven Transportation Transformation

From our world to yours

Life at Kerv as a Project Manager

From our world to yours

How New Technology Can Free Membership Organisations

From our world to yours

Integrating AI into Nonprofit Fundraising Initiatives

From our world to yours

Protected: Healthcare: A Low Code Strategy Workshop

From our world to yours

Protected: Central Government: Low Code Strategy Workshop

From our world to yours

Protected: Public Transport: Low Code Strategy Workshop

From our world to yours

Masterclass: Power Up Your People

From our world to yours

Getting the Most from Speech and Text Analytics

From our world to yours

Webinar: Get Prepared for the Microsoft Flow Enforcement Changes

From our world to yours

TechTalk Guernsey: Maximising Microsoft for your business

From our world to yours

A New Investor for Kerv

From our world to yours

Technology Revolution in Membership Organisations: AI, Personalisation, and Beyond

From our world to yours

Why You Need To Migrate From Great Plains To Business Central Now

From our world to yours

Microsoft 365 Copilot Now Available in CSP

From our world to yours

Is your Business Delivering Enough Value from its Projects?

From our world to yours

Top 5 CX Trends in 2024

From our world to yours

Projects, Programmes and Portfolios… Know the Difference

From our world to yours

Life at Kerv as a Professional Services Engineer

From our world to yours

Microsoft Flow Suspensions: Prepare for the March Deadline

From our world to yours

SASE: The Iron Man of Network Security

Have a question?

Leave your details and a member of the team will be in touch to help.

"*" indicates required fields

By pressing send, you agree to our Terms and Conditions and Privacy Policy.
This field is for validation purposes and should be left unchanged.