First, here is the error I am receiving:
Failure happened on 'Sink' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed. Please search error to get more details.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Data.SqlClient.SqlException,Message=Cannot insert the value NULL into column 'Id', table 'ThisIsMyTable.dbo.InterimTable_483044d4-1d64-48af-a5a6-4dbefeee6d9c'; column does not allow nulls. INSERT fails.
The statement has been terminated.,Source=.Net SqlClient Data Provider,SqlErrorNumber=515,Class=16,ErrorCode=-2146232060,State=2,Errors=[{Class=16,Number=515,State=2,Message=Cannot insert the value NULL into column 'Id', table 'ThisIsMyTable.dbo.InterimTable_483044d4-1d64-48af-a5a6-4dbefeee6d9c'; column does not allow nulls. INSERT fails.,},{Class=0,Number=3621,State=0,Message=The statement has been terminated.,},],'
When using an Insert, the table loads just fine without any errors. However, when I try to UPSERT, I get the error above. Any ideas? I need to lookup on LoanNumber
and upsert based on that column.
I have a Primary Key column named 'Id' setup on my table but no other keys.