douglascayers / sfdc-convert-notes-to-chatter-notes

📓 Easily migrate your Notes to Enhanced Notes.
https://douglascayers.com/2017/05/08/convert-notes-to-enhanced-notes/
BSD 3-Clause "New" or "Revised" License
26 stars 11 forks source link

Test failing - Partner Community #4

Closed jennigiki closed 7 years ago

jennigiki commented 7 years ago

Deployment CompleteTest failure, method: ConvertNotesToContentNotesServiceTest.test_partner_community_users -- System.QueryException: List has no rows for assignment to SObject stack Class.ConvertNotesToContentNotesServiceTest.test_partner_community_users: line 24, column 1

Hello, I'm getting the above error and have tried a number of things to resolve it, but have been unsuccessful. We have a partner community enabled in this org. Is there a quick fix to this problem?

douglascayers commented 7 years ago

Hi @jennigiki,

Line 24 queries for standard profile named Partner Community User.

Please check that a partner community profile by that name exists. I've noticed that standard profile names get changed if the organization default language is not English, so may need to change the language to English for the test to pass then can change language back afterward.

Doug

jennigiki commented 7 years ago

Thank you, @DouglasCAyers. I added a profile with that name and did get past the error. However, there were more to follow. I will share them if you wish, but at this particular client, there are so few records (really, fewer than 20) that I'll have them "migrate" them manually. Let me know if you do want to work through the errors.

douglascayers commented 7 years ago

Thanks for the follow up @jennigiki.

Regarding the other errors, if you don't mind, I would be interested to know what those are. Would you please open those as new github issue(s) for investigation? I'll go ahead and close this one since solution is ensure a standard profile exists with name Partner Community User.

Thanks