forcedotcom / SFDX-Data-Move-Utility

SFDMU is a cutting-edge Salesforce data migration tool for seamless org population from other orgs or CSV files. It handles all CRUD operations on multiple related objects in one go.
BSD 3-Clause "New" or "Revised" License
438 stars 73 forks source link

[BUG] - Incorrect comparison when comparing 2 Long Text Area fields between source CSV and target SF if the long text area includes the character " #788

Closed jorgesolebur closed 6 days ago

jorgesolebur commented 2 months ago

Describe the bug SFDMU compares all fields from source and target in order to identify if there is a need to update/insert the target. When SFDMU compares Long Text Area fields between Source = CSV and Target = Sandbox, and if the long text area field in Salesforce includes the character ", SFDMU does not correctly compare both fields. Reason been:

This is because the character " is special, and if we want to insert the character " into a text area field in Salesforce from a CSV file, we need to put it 2 times.

To Reproduce

hknokh commented 2 months ago

Hello, @jorgesolebur

Thank you for reporting a bug. I will take a look at it as soon as possible and let you know of any updates.

Cheers

hknokh commented 2 months ago

Hello,

I wanted to let you know that I am still reviewing your case and will inform you as soon as I have any updates. Due to my current time constraints, this process may take longer than usual.

Thank you for your patience and understanding.

Best regards

hknokh2 commented 1 week ago

Hello Can't reproduce. Used SFDMU v4.35.0 export.json:

{
    "objects": [
        {
            "query": "SELECT Id, TEST_TEXTBOX__c FROM Account WHERE Name = 'ACC_10000'",
            "operation": "Update",
            "externalId": "Name"
        }
    ]
}

source org: image

Account.csv: Id,IsPersonAccount,Name,TEST_TEXTBOX__c 0018d00000qoZ5EAAU,false,ACC_10000,"""test"""

target org (after import csv) image

log file after the second update, when the first insert with special character is done

UPDATING THE TARGET (STAGE 1) ...
 [11:55:38.735] {Account} Updating person Accounts and Contacts ...
 [11:55:38.735] {Account} 1 target records remained untouched, since they do not differ from the corresponding source records.
 [11:55:38.736] newLine
 [11:55:38.736] Nothing was updated.
 [11:55:38.736] newLine
github-actions[bot] commented 1 week ago

This case has been marked as 'to-be-closed', since it has no activity for the 3 days.
It will be automatically closed in another 3 days of inactivity.

github-actions[bot] commented 6 days ago

This case has been closed, since it has no activity for the last 6 days. Feel free to reopen it, if you need more help.