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
IAZ
Regular Visitor

Fabric passing parameter

I am trying to pass a query with a pipeline parameter from a json. And passing the parameter while running the pipeline and the pipeline fails. below query:

 

Also, tried the below expression the copy activity query editor and still no luck. Any ideas appreciated.

 

@concat('@item().source.query','where OBJ >','pipeline().parameters.par1')

-----------------------------------------------------------------

[
    {
        "source": {
            "query": "select * from CUSTOMER where OBJ > @{pipeline().parameters.par1} "
        },
        "destination": {
            "fileName": "dbo.BALANCE_AUTH.Parquet"
        },
        "Name": {
            "table": "100"
        }
       
    }
]


1 ACCEPTED SOLUTION
burakkaragoz
Community Champion
Community Champion

Hi @IAZ ,

 

Looks like you're trying to dynamically pass a pipeline parameter into your query string using a JSON config, but the expression isn't resolving as expected during runtime.

The issue is likely because you're trying to use @{pipeline().parameters.par1} inside a string that's already being evaluated by the @concat() function. When you nest expressions like that, especially inside JSON-driven queries, it can get tricky.

Instead of embedding the parameter directly in the JSON like this:

"query": "select * from CUSTOMER where OBJ > @{pipeline().parameters.par1}"

Try keeping the query in the JSON more generic, like:

"query": "select * from CUSTOMER where OBJ >"

Then in your copy activity, use something like:

@concat(item().source.query, ' ', pipeline().parameters.par1)

This way, you're appending the parameter value at runtime without trying to resolve nested expressions inside the JSON.

Let me know if you're still hitting issues, happy to help further.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

View solution in original post

2 REPLIES 2
IAZ
Regular Visitor

Brilliant...many thanks and really appreciate you help and guidance. It works ! And saved me loads of time. Thanks again.

burakkaragoz
Community Champion
Community Champion

Hi @IAZ ,

 

Looks like you're trying to dynamically pass a pipeline parameter into your query string using a JSON config, but the expression isn't resolving as expected during runtime.

The issue is likely because you're trying to use @{pipeline().parameters.par1} inside a string that's already being evaluated by the @concat() function. When you nest expressions like that, especially inside JSON-driven queries, it can get tricky.

Instead of embedding the parameter directly in the JSON like this:

"query": "select * from CUSTOMER where OBJ > @{pipeline().parameters.par1}"

Try keeping the query in the JSON more generic, like:

"query": "select * from CUSTOMER where OBJ >"

Then in your copy activity, use something like:

@concat(item().source.query, ' ', pipeline().parameters.par1)

This way, you're appending the parameter value at runtime without trying to resolve nested expressions inside the JSON.

Let me know if you're still hitting issues, happy to help further.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

Helpful resources

Announcements
May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 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.