0

I've created a SQL Dedicated pool table in Synapse, and now trying to copy data from multiple XML files to this database

I've mapped all fields from the XML file that I need to each specific column in the destination table, but the following error is blocking the copy data activity:

Message=Column count in target table does not match column count specified in input. If BCP command, ensure format file column count matches destination table. If SSIS data import, check column mappings are consistent with target.,Source=.Net SqlClient Data Provider,SqlErrorNumber=107098,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=107098,State=1,Message=Column count in target table does not match column count specified in input. If BCP command, ensure format file column count matches destination table. If SSIS data import, check column mappings are consistent with target.,},],'

Any idea what I am doing wrong?

0

1 Answer 1

1

This is because the count of column in the XML files and Synapse is not equal. You need to check the count of your XML files and make them be same as the count of your sink's column.

Sign up to request clarification or add additional context in comments.

1 Comment

If you're only interested in two out of three columns, what then?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.