We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 1, 2022 4:51 AM
Solved! Go to Solution.
Dec 1, 2022 6:32 AM
Hey @NehaMehta,
Custom coded workflow actions will fail if one of two things occurs:
This is documented here under "limits". As per the error coming back it's the 20 second runtime being exceeded and I think it's to do with the amount of data you are looping through (23K companies). The only way to fix this would be to streamline the code and make it more efficient.
A suggestion might be to simply using the CRM Search API to find companies in the CRM matching the custom object org_id. This would only return companies matching and remove the need to loop through 23,000+ records which I feel is creating this issue. You could then associate accordingly.
I hope this helps!
Dec 1, 2022 6:32 AM
Hey @NehaMehta,
Custom coded workflow actions will fail if one of two things occurs:
This is documented here under "limits". As per the error coming back it's the 20 second runtime being exceeded and I think it's to do with the amount of data you are looping through (23K companies). The only way to fix this would be to streamline the code and make it more efficient.
A suggestion might be to simply using the CRM Search API to find companies in the CRM matching the custom object org_id. This would only return companies matching and remove the need to loop through 23,000+ records which I feel is creating this issue. You could then associate accordingly.
I hope this helps!