Hi Team,
I am trying to ingest the source(Nested Json) data into Azure sql using ADF.
Source: Nested Json - Copy activity can be able to read the 100 rows only and beyond that data needs to loaded using until now (Iterations).
Direct copy is able to load the nested Json (one of the Key-value pair is a Object type) .
In mapping key.[*] --> loaded to a column and using cross apply I am able to flatten the data.
But the copy job in until activity(Iterations) is not able to identify Three source fields in the translator.
Eg:
{"type":"TabularTranslator","schemaMapping":{"uniquId":"Function_unique_Identifier",
"functionNo":"Function_number",
"lastUpdated":"last_updated_Datetime",
"function.totalCharges.revenueCenter(Total Adjusted Charges)":"Revenuecenter_total_adjusted_charges",
"function.totalCharges.revenue(Total)":"revenueCenter_Total",
"totals.taxes.Sales_Tax_6_":"Total_Sales_Tax_6",
"totals.fees.Service_Charge_23_":"Total_Service_Charge_23",
"revenueCenters[*]":"revenueCenter_name_raw"},
"collectionReference":"$.results"}
Getting below error-
Question:
- How can we handle the white spaces and () characters in Translator in ADF?
- Is it possible to load revenueCenters[*] (Json object type ) data into a column in translator?- This is successful in copy activity with mapping.
Please find the sample Translator that being used in parameters as part of child pipeline:
{"type":"TabularTranslator","schemaMapping":{"uniqueId":"Function_unique_Identifier","functionNumber":"Function_number","lastUpdated":"last_updated_Datetime","function.totalCharges.revenueCenter(Total)":"revenueCenter_Total","totals.taxes.Sales_Tax_6_":"Total_Sales_Tax_6","totals.fees.Service_Charge_23_":"Total_Service_Charge_23"},"collectionReference":"$.results"}
-- When I remove "function.totalCharges.revenueCenter(Total)":"revenueCenter_Total" from the mapping in the Translator list , It is working as expected and data is getting copied.