the pipeline is
{
"source": {
"type": "DelimitedTextSource",
"storeSettings": {
"type": "AzureBlobStorageReadSettings",
"recursive": true,
"enablePartitionDiscovery": false
},
"formatSettings": {
"type": "DelimitedTextReadSettings"
}
},
"sink": {
"type": "AzureSqlSink",
"writeBehavior": "upsert",
"upsertSettings": {
"useTempDB": true,
"keys": [
"order_id"
]
},
"sqlWriterUseTableLock": false,
"disableMetricsCollection": false
},
"enableStaging": false,
"translator": {
"type": "TabularTranslator",
"mappings": [
{
"source": {
"type": "String",
"ordinal": 1
},
"sink": {
"name": "order_id",
"type": "Int32",
"physicalType": "int"
}
},
{
"source": {
"type": "String",
"ordinal": 2
},
"sink": {
"name": "order_date",
"type": "String",
"physicalType": "varchar"
}
},
{
"source": {
"type": "String",
"ordinal": 3
},
"sink": {
"name": "order_customer_id",
"type": "Int32",
"physicalType": "int"
}
},
{
"source": {
"type": "String",
"ordinal": 4
},
"sink": {
"name": "order_status",
"type": "String",
"physicalType": "varchar"
}
}
],
"typeConversion": true,
"typeConversionSettings": {
"allowDataTruncation": true,
"treatBooleanAsNumber": false
}
}
}
its working if i choose insert and getting below error while using upsert
Code": 11000,
"Message": "Failure happened on 'Sink' side. 'Type=System.NullReferenceException,Message=Object reference not set to an instance of an object.,Source=Microsoft.DataTransfer.Connectors.MSSQL,'",