Hello John Edwards,
I'm glad that you were able to resolve your issue and thank you for posting the work around so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.
Issue:
- Using Synapse/ADF, how to create a table on the fly that matches the structure of the incoming spreadsheet data.
Challenge:
When using the "Auto-create table" option, Synapse will attempt to create a new table in the Azure SQL Database that matches the structure of the incoming data. If the destination table already exists, Synapse will use the existing schema and throw an error if the incoming data does not match the schema
Error:
"Message": "Failure happened on 'Sink' side. ErrorCode=UserErrorInvalidColumnName,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The column Prop_0 is not found in target side,Source=Microsoft.DataTransfer.ClientLibrary,'",
Solution/Work around:
- Create a table in your database with dummy structure.
- Create a data link (Data/Integration Data Sets) to that table in Synapse.
- Create a pipeline with a copy activity that uses that dummy table as its sink. Select the table option "Auto create table"
- Run it and let it fail.
- Go back to your original database and delete the table.
- Go back to Synapse and Run the pipeline again. It will create the table with the output fields from the source.
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information. Thank you again for your time and patience throughout this issue.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.