Hello @Adrian Searles
Salesforce has its own data types and when you copy data from Azure Data Factory to Salesforce, the data types need to be mapped correctly.
In your case, it seems like the data types are not being mapped correctly and all the fields are being treated as strings. This is causing issues with sending dates and decimals to Salesforce.
To resolve this issue, you can try specifying the correct data types in the schema of the dataset. You can do this by defining the schema of the dataset in the Azure Data Factory pipeline. Here is an example of how you can define the schema of the dataset in the pipeline:
{
"name": "SalesforceDataset",
"properties": {
"type": "SalesforceObject",
"typeProperties": {
"objectApiName": "MyTable__c"
},
"schema": [
{
"name": "Col_Date__c",
"type": "DateTime"
},
{
"name": "Col_Currency__c",
"type": "Decimal"
},
{
"name": "Col_Email__c",
"type": "String"
}
],
"linkedServiceName": {
"type": "LinkedServiceReference"
}
}
}
In the above example, the schema of the dataset is defined with the correct data types for each field. You can modify this example to match the schema of your dataset.
Once you have defined the schema of the dataset, you can use this dataset in the copy activity to copy data from Azure Data Factory to Salesforce.
I hope this helps! Let me know if you have any further questions.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.