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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
pankaj_j
New Member

usage of FOR JSON PATH in subquery give "Unsupported operator for resource actuals feedback"

I Iam trying to generate Source to Target mapping in JSON, to use it in pipeline, from source column and target column comma separated list. These lists are stored in respective columns in a row for the source table. Below you can find the query. It throws  "Unsupported operator for resource actuals feedback". Is it true that "FOR JSON PATH" not supported yet in subquery?

Please find the query below:

 

 

 

 

select repl_key,REPLACE('{"type": "TabularTranslator", "mappings": {m}}','{m}', (
             SELECT TRIM(srccol.value) AS [source.name]
                   ,TRIM(snkcol.value) AS [sink.name] 
               FROM STRING_SPLIT(CONCAT(TRIM(REPLACE(l.key_columns
                   ,SPACE(1), SPACE(0))), ',tracking_timestamp, inactive_ind'), ',') srccol 
              CROSS APPLY STRING_SPLIT(CONCAT(TRIM(REPLACE(l.key_columns
                         ,SPACE(1), SPACE(0))), ',tracking_timestamp, inactive_ind'), ',') snkcol 
              WHERE srccol.value = snkcol.value for json path ))                 AS logiDelMapping
FROM utility.repl_list l

 

 

 

1 ACCEPTED SOLUTION
pankaj_j
New Member

I did look at it. It seems FOR JSON PATH is supported but not it subquery. Thanks anyways. I had to use script in foreach loop to achieve the functionality. 

View solution in original post

2 REPLIES 2
pankaj_j
New Member

I did look at it. It seems FOR JSON PATH is supported but not it subquery. Thanks anyways. I had to use script in foreach loop to achieve the functionality. 

v-shex-msft
Community Support
Community Support

Hi @pankaj_j,

I'd like to suggest you take a look the following document which mention about the limitations of t-sql query in data warehouse of hope:

T-SQL surface area - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!