An Azure service for ingesting, preparing, and transforming data at scale.
Converting JSON Array to String
We are using Azure App Insights with continuous export to Azure Blob Storage. so we have json blob in blob storage account. We need this data to be loaded incrementally to on-premise SQL Server and we are using Azure Data Factory pipeline for this.
We are adding custom data to App Insight during data collection. which is turning into JSON array inside blob storage. there are multiple folders inside exported data from App Insight to blob storage like Events, Exceptions etc.
We are using copy pipeline to download data from blob storage to on-premise SQL Server. Initially we setup copy pipeline for Events data and it was automatically able to convert JSON array from blob to VARCHAR(MAX) on on-premise SQL DB.
But when I am trying to setup the same pipeline for Exceptions data then I am getting below error. I already tried enable skip incompatible row to skip the issue but didn't worked. I also tried to tick checkbox for [Map complex values to string] but didn't worked as well.
ErrorCode=JsonUnsupportedHierarchicalComplexValue,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The retrieved type of data JArray with value [{"env":"x"},{"brand":"y"},{"domain":"z"},{"source":"s"}] is not supported yet. Please either remove the targeted column 'abc' or enable skip incompatible row to skip the issue rows.,Source=Microsoft.DataTransfer.Common,'
My goal here is to convert this JSON array into string. Don't want to use Collection reference because i need full JSON Array as single string.