<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom code error in &amp;#128172 RevOps Discussions</title>
    <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/907539#M2170</link>
    <description>&lt;P&gt;I get a custom code error whenever a sync between Hubspot and SF occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you explain why this happens and what exactly needs to be done by the SFDC admin team to resolve this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To be specific I could drill down the reason as follows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EngagementScore_LeadTrigger: execution of AfterUpdate&lt;/P&gt;&lt;P&gt;caused by: System.DmlException: Update failed. First exception on row 0 with id 0011N00001F9SDZQA3; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 12 records: 0011N00001F9SDZQA3,0011N00001F9SDfQAN,0011N00001VlXXdQAN,0011N00001WDuwyQAD,0011N00001ids0LQAQ,0011N00001jrcS6QAI,0013l000022suneAAA,0013l000022suppAAA,0013l000022susPAAQ,0013l000022suuaAAA, ... (2 more): []&lt;/P&gt;&lt;P&gt;Trigger.EngagementScore_LeadTrigger: line 91, column 1&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 10:42:57 GMT</pubDate>
    <dc:creator>rulpats</dc:creator>
    <dc:date>2024-01-18T10:42:57Z</dc:date>
    <item>
      <title>Custom code error</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/907539#M2170</link>
      <description>&lt;P&gt;I get a custom code error whenever a sync between Hubspot and SF occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you explain why this happens and what exactly needs to be done by the SFDC admin team to resolve this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To be specific I could drill down the reason as follows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EngagementScore_LeadTrigger: execution of AfterUpdate&lt;/P&gt;&lt;P&gt;caused by: System.DmlException: Update failed. First exception on row 0 with id 0011N00001F9SDZQA3; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 12 records: 0011N00001F9SDZQA3,0011N00001F9SDfQAN,0011N00001VlXXdQAN,0011N00001WDuwyQAD,0011N00001ids0LQAQ,0011N00001jrcS6QAI,0013l000022suneAAA,0013l000022suppAAA,0013l000022susPAAQ,0013l000022suuaAAA, ... (2 more): []&lt;/P&gt;&lt;P&gt;Trigger.EngagementScore_LeadTrigger: line 91, column 1&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 10:42:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/907539#M2170</guid>
      <dc:creator>rulpats</dc:creator>
      <dc:date>2024-01-18T10:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code error</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/908080#M2177</link>
      <description>&lt;P&gt;Hello &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/321617"&gt;@rulpats&lt;/a&gt;&lt;/SPAN&gt;, thank you for posting in our Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you are seeing is a custom code error, which means that there is some automation or a validation rule in Salesforce that is preventing records from syncing. I don't have any visibility into your Salesforce settings, so I am not able to determine exactly which one it is on my end.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I can determine is that the UNABLE_TO_LOCK_ROW error you are seeing often appears when we see a record updating by another Salesforce user while HubSpot is trying to update it at the same time.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next steps you can take are to reach out to your Salesforce admin to check the automation and validation rules you have set up within Salesforce.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pam&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 22:38:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/908080#M2177</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2024-01-18T22:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code error</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/913861#M2208</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60427"&gt;@PamCotton&lt;/a&gt;&amp;nbsp;My colleague says that &lt;SPAN&gt;there is an apex class which is a part of hubspot integration in SFDC, and its not editable.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 11:56:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Custom-code-error/m-p/913861#M2208</guid>
      <dc:creator>rulpats</dc:creator>
      <dc:date>2024-01-30T11:56:27Z</dc:date>
    </item>
  </channel>
</rss>

