Sorry for the delay. I have the results of my next test. @Paul Hernandez @Ryan Abbey
Again shortcutting by using JSOn in a blob instead of REST connector, but this time with SQL sink, I was able to successfuly copy all. This indicates the cause is not due to being SQL. That leaves the possibility of the cause being a REST source with pagination mixing with the mapping collection reference. Or a typo in mapping.
Source data:
{
"lowdata":"hello",
"value": [
{
"id": "02",
"displayName": "deus"
},
{
"id": "04",
"displayName": "quat"
},
{
"id": "08",
"displayName": "oct"
}
]
}
Pipeline definition:
{
"name": "pipeline21",
"properties": {
"activities": [
{
"name": "Copy data1",
"type": "Copy",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"source": {
"type": "JsonSource",
"additionalColumns": [
{
"name": "time",
"value": {
"value": "@utcnow()",
"type": "Expression"
}
}
],
"storeSettings": {
"type": "AzureBlobStorageReadSettings",
"recursive": false,
"enablePartitionDiscovery": false
},
"formatSettings": {
"type": "JsonReadSettings"
}
},
"sink": {
"type": "AzureSqlSink",
"writeBehavior": "insert",
"sqlWriterUseTableLock": false
},
"enableStaging": false,
"translator": {
"type": "TabularTranslator",
"mappings": [
{
"source": {
"path": "['id']"
},
"sink": {
"name": "col1",
"type": "String"
}
},
{
"source": {
"path": "['displayName']"
},
"sink": {
"name": "col2",
"type": "String"
}
},
{
"source": {
"path": "$['lowdata']"
},
"sink": {
"name": "col3",
"type": "String"
}
},
{
"source": {
"path": "$['time']"
},
"sink": {
"name": "col4",
"type": "String"
}
}
],
"collectionReference": "$['value']",
"mapComplexValuesToString": true
}
},
"inputs": [
{
"referenceName": "disper",
"type": "DatasetReference"
}
],
"outputs": [
{
"referenceName": "AzureSqlTable2",
"type": "DatasetReference"
}
]
}
],
"annotations": []
}
}
