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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
thijsvdv
Frequent Visitor

Pipeline Name not available in system variables, even though it shows it should be available

Since a couple of weeks, the system variable Pipeline Name (@pipeline().PipelineName) is no longer available. It shows that it is available in the system variables overview: 

thijsvdv_1-1725268763033.png

 

However, when I try to reference the variable in a pipeline activity I get the following error: 

thijsvdv_0-1725268724108.png

I suspect this is a bug, can someone confirm this?

 

Thanks!

5 REPLIES 5
thijsvdv
Frequent Visitor

An update from my side, it looks like the bug is partially fixed. If I run the complete pipeline the variable can be used, however it still returns an error when you try to preview the data and the variable is used in the query. 

NandanHegde
Super User
Super User

Can you please provide screenshot of your activity where you are using this system variable? And which region this factroy pipeline is being used?

Because the below variable is working for us

NandanHegde_0-1725275148012.png

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Hi Nandan, 

 

Thank you for your quick response. I can confirm that the error doesn't occur when setting a variable, I have just tested that as well. I encounter the error when using the system variable in a copy activity. I've tried this with different sources, but no difference there. The region the factory is used in is West Europe.

 

As you can see in this screenshot below, through this way I can easily reproduce the error by trying to preview the data: 

thijsvdv_0-1725275908156.png

 

 

Hi @thijsvdv ,

I have also created a Copy data in the Pipeline of Data Factory.

vyilongmsft_0-1725515452882.png

You can clearly see here that the error is caused by not finding the PipelineName when you output the result you want.

vyilongmsft_2-1725515773263.png

The reason for the error is that the PipelineName is not found, so I don't think you need to use this step here at all. You can directly choose not to check Enter manually for the next step.

vyilongmsft_3-1725516894036.png

 

 

 

Best Regards

Yilong Zhou

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

Hi Yilong,

 

Thank you for your response. I have only used the enter manually option for demonstration purposes. It does not matter whether the table exists or not, the error says that the variable is not available when using the preview data option.

 

To be more clear, you can also test it in a select statement in a query box as seen below. But you can also test it when dynamically trying to create a new table with the pipelinename as dynamic name using the variable in the sink options. And to be more clear, this is not limited to the preview data option, it also fails when trying to run the pipeline.

 

thijsvdv_0-1725609494323.pngthijsvdv_1-1725609534368.png

In addition, to be even more clear, this select statement does not work: 

thijsvdv_2-1725609961635.png

But this select statement does work:

thijsvdv_4-1725610462603.png

 

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.