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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.