GithubHelp home page GithubHelp logo

Comments (7)

gaborarany avatar gaborarany commented on August 17, 2024 1

Hello @douglascayers ,
I did some tests using the data loader method to figure out what was causing the issue.
What I've found that the notes that had an empty body also gave the HTML/non-escaped character error.
Apparently inserting nothing/space/line feed character will not do the trick, but an nbsp does.
Hope you can consider this, and add it into the code.
Thank you in advance!

from sfdc-convert-notes-to-chatter-notes.

certifycrm avatar certifycrm commented on August 17, 2024 1

Hello @douglascayers I ran your tool yesterday to convert all our notes. It stopped dead at 3,000 records. Turns out record # 3001 had a copyright symbol in the text of the note. This was enough to make it fail and not process the rest of the records. Downloading the remaining notes (including body) via Data Loader and searching for the (c) symbol and then creating new notes with and without the symbol and then submitting the single parent record for conversion was how I finally found and isolated the problem. I rescheduled the job and the remaining 2,093 notes were converted. Thanks for this great tool Doug it has really helped. Next is the Files conversion using your other tool. Before the end of the month we will be rid of Notes & Attachments.

from sfdc-convert-notes-to-chatter-notes.

douglascayers avatar douglascayers commented on August 17, 2024

Hi @gaborarany,

Thanks for trying my conversion tool, sorry you ran into an issue. Unfortunately when Salesforce errors out like that it tends to be fatal error and code isn't able to complete a transaction to save off any logs.

Another user, Rachel Park, said on Success Community that she had to export all the Notes via Data Loader, replaced special characters in the spreadsheet, then updated the Notes back in Salesforce. You might ping Rachel on Success Community or follow up on this thread to see what specific changes she had to make.

Until people provide me samples of the Notes with the kinds of special characters that are failing there isn't a whole lot I can do in the code to help prevent the error. I do do some special character handling but obviously there are some characters I'm not catching.

Doug

from sfdc-convert-notes-to-chatter-notes.

gaborarany avatar gaborarany commented on August 17, 2024

Hello Doug,
Thank you for your response. I would still like to use your tool for migration :)
I will try to find the problematic notes by narrowing down the notes to be converted. If I can find the problematic characters, would you be able to add handling them in your code?
Thank you again!

from sfdc-convert-notes-to-chatter-notes.

douglascayers avatar douglascayers commented on August 17, 2024

Yes @gaborarany, if you find the problematic characters please let me know and I'll update the conversion tool.

I'll go ahead and close this issue for now, but feel free to comment back with any new info you find.

Thanks! Good luck!

from sfdc-convert-notes-to-chatter-notes.

douglascayers avatar douglascayers commented on August 17, 2024

That's a great find, thank you! I'll update the code for next release to handle this edge case. Thanks!

from sfdc-convert-notes-to-chatter-notes.

douglascayers avatar douglascayers commented on August 17, 2024

Thanks @certifycrm, this is great info. I'll make sure to include this with the special character conversion code.

from sfdc-convert-notes-to-chatter-notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.