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

Join 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

Reply
amaaiia
Super User
Super User

Use Script parameters in Script activitie in Data Pipeline

I am using an Script activitie inside a Data Pipeline to make a SELECT statement, passing the table as parameters as follows:

amaaiia_1-1709997042292.png

 

But when executing the Pipeline I get the following error:

amaaiia_0-1709996976324.png

 

I've been able to pass Script parameters in other queries to WHERE clause (i.e. field1=@field_value), but I'm having troubles for field names.

 

1 ACCEPTED SOLUTION
AndyDDC
Super User
Super User

Hi @amaaiia I'm not sure if object names are supported in the script activity parameters.  You could use the "dynamics expressions" and add the item to the script instead.  In the example beloe I'm using parameters, but you can use items as well.

 

AndyDDC_0-1710070449045.png

 

View solution in original post

2 REPLIES 2
v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @amaaiia 

 

Glad to know your query got resolved.

Please continue using Microsoft Fabric Community for your further queries.

 

Thanks.

AndyDDC
Super User
Super User

Hi @amaaiia I'm not sure if object names are supported in the script activity parameters.  You could use the "dynamics expressions" and add the item to the script instead.  In the example beloe I'm using parameters, but you can use items as well.

 

AndyDDC_0-1710070449045.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.