# Custom Coded Action - Parse Property for Custom Object ID

**URL:** <https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [December 9, 2024, 6:41pm UTC](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168 "2024-12-09T18:41:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JLittle2](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@JLittle2](https://community.hubspot.com/u/JLittle2)\
**Post date:** [December 10, 2024, 12:01am UTC](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168/2 "2024-12-10T00:01:30Z")

</div>

Attached is the code I’ve pulled together. I’m getting this lambda error:  
LAMBDA\_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT\_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see [Understanding how Lambda manages runtime version updates - AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html)  
[ERROR] TypeError: main() missing 1 required positional argument: ‘context’  
Traceback (most recent call last):  
File “/var/task/hubspotHandler.py”, line 6, in hubspot\_handler  
return file.main(event)

Any help would be appreciated!

 ![Screenshot 2024-12-09 at 4.59.07 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/d3f06995bcf67fd554ac2a6aa3271136b68eb40c.png)

---

_[View the full topic](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168)._
