Why the deleting from the target always runs for me?
Question:
Why does the deletion process always run when I use the export file below, even though I've set deleteOldData
to false?
{
"query": "Select Name from TestObject1__c",
"operation": "Insert",
"deleteOldData": "false",
"externalId": "Name"
}
Answer:
The issue arises because the deleteOldData
property is incorrectly set as a string rather than a boolean. Remove the quotation marks to correctly set it as a boolean value:
{
"query": "Select Name from TestObject1__c",
"operation": "Insert",
"deleteOldData": false, // Correctly set as a boolean, not a string!
"externalId": "Name"
}
For further details on configuring deletions, refer to the Full Export.json Format article.