Synpase - Copy columns with special characters

Khaled Radmal 31 Reputation points
2021-09-28T07:51:53.263+00:00

I want to copy data from a source (in this case SAPHANA) where the columns have a dot in them. The copy activity fails when the multiple columns are queried and the part before the dot is the same.

Example:
select col1, col1.test from sourceTable

Error message:
{
"errorCode": "2100",
"message": "Failure happened on 'Source' side. ErrorCode=InvalidParameter,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The value of the property '' is invalid: 'Can not add property col1 to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.'.,Source=,''Type=System.ArgumentException,Message=Can not add property col1 to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.,Source=Newtonsoft.Json,'",
"failureType": "UserError",
"target": "Lookup1",
"details": []
}

Workaround:
When aliasing the columns the copy activity is succesfull.

--> select col1, col1.test as test from sourceTable

Question:
How can I copy the data without alias the columns?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,123 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,107 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.