# SF Sync Issues - Custom Code

**URL:** <https://community.hubspot.com/t/sf-sync-issues-custom-code/73441>\
**Category:** Marketplace Apps\
**Created:** [January 21, 2023, 12:21am UTC](https://community.hubspot.com/t/sf-sync-issues-custom-code/73441 "2023-01-21T00:21:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LBenioff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lbenioff/32/21752_2.png) [@LBenioff](https://community.hubspot.com/u/LBenioff)\
**Post date:** [January 21, 2023, 12:21am UTC](https://community.hubspot.com/t/sf-sync-issues-custom-code/73441/1 "2023-01-21T00:21:22Z")

</div>

I have 27 Sync Errors under custom code. I have checked the error that is reports an cannot find a problem. I will Resync and I will get a message that 27 Records resolved. In a few minutes I refresh the page and there are 0 errors, but now there are 27 duplicate errors. I turn off the duplicate rules in SF, resync and all the errors are gone, but now the 27 Custom code errors are back.

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [January 21, 2023, 6:45am UTC](https://community.hubspot.com/t/sf-sync-issues-custom-code/73441/2 "2023-01-21T06:45:46Z")

</div>

Hi @LBenioff

Could you share a screenshot of the errors?

Have you checked the [troubleshooting steps in this guide](https://knowledge.hubspot.com/salesforce/resolve-salesforce-integration-sync-errors#custom-code:~:text=the%20top%20right.-,Custom%20code,-Records%20are%20not)?

Cheers

Frank

---

<div class="post-metadata">

**Author:** ![LBenioff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lbenioff/32/21752_2.png) [@LBenioff](https://community.hubspot.com/u/LBenioff)\
**Post date:** [January 23, 2023, 6:43pm UTC](https://community.hubspot.com/t/sf-sync-issues-custom-code/73441/3 "2023-01-23T18:43:11Z")

</div>

I have reviewed the troubleshooting guide which is very vague. I have gone through every contact in the affected companies resolving any conflicts I found, and I did find some, but I still have 25 errors. I have also reviewed Inactive users and changed the ownership on contacts with an inactive user. The issue remains. If I deactivate the two SF duplicate rules we have the 25 companies are flagged with a custom code error that seems to be related to inactive users. WHen I re-activate the rules , re-sync then all the companies show up under the duplicates. It would be so helpful if there was some more information about the nature of the error.
