Assistance Needed: Webhook Error in Workflow

FDiPasquale
Member

Hi,

The webhook in the following workflow has stopped working: https://app.hubspot.com/workflows/48149419/platform/flow/1634670397/edit.

An error appears related to the contact_id parameter in the request body. This issue does not occur in our Production instance, where the same workflow runs without problems.

Could someone please assist? I contacted HubSpot Support via chat, and they redirected me here, stating that only a developer can help with this.

Thank you very much for your support!

Federica

0 Upvotes
3 Accepted solutions
kosalaindrasiri
Solution
Top Contributor | Partner
Top Contributor | Partner

Hey Federica,

 

First of all, we can’t log into that specific link you provided because we do not have access to that related portal.

But I will try to tell you why this is likely happening and how to fix it.

 

The error "related to the contact_id parameter" might mean one of two things,

  1. Either Payload is Empty: The workflow is sending a null or empty value for contact_id because the property is missing on the test contact.
  2. Or the Destination is Wrong: Your Sandbox workflow is sending a Sandbox Contact ID to a Production endpoint (system), which rejects it because that ID doesn't exist there.

 

It might be easier for you to debug this if you can run a test intercepting the message using https://webhook.site/ . It will give you a unique URL you can use as the Webhook temporarily. 

Then replace the current HubSpot Workflow Webhook URL with this new URL you got. Manually Enroll a test contact and check webhook.site dashboard to see the payload you receive. 

Look at the contact_id field!

 

Further Refer (These might also helps):

https://knowledge.hubspot.com/workflows/troubleshoot-common-workflow-errors

https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows

 

Hope this will help

 

Regards,

 

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

View solution in original post

0 Upvotes
JOB3
Solution
Community Manager
Community Manager

Hi @FDiPasquale

 

Thanks for the screenshots ! If you hover over the 'warning' sign icon on the 'record ID' field for the contact_id request body. Do you see any specific error messages that you can share ? This will give us more information about the specific error. 

 

Also, if you have you been able to try @kosalaindrasiri's troubleshooting steps above , what were the results ? I'm tagging  @denny_cushing @franksteiner79 to check if they have come across this type of error before as well. 
 

 

View solution in original post

RubenBurdin
Solution
Guide

Hi  @FDiPasquale , that warningon contact_id plus a null value in webhook.site usually means HubSpot is genuinely not able to resolve any contact ID at the moment the webhook runs, even though everything “looks” wired correctly.

Two things tend to cause this.

 

First, the enrollment object and the token source don’t match. For example, if the workflow is deal-based (or another object) and you’re using the plain “Record ID” token under Contact, HubSpot can’t always resolve it, so the editor shows “this field might not get a value” and the webhook sends null. In that case you want the “associated contact” token rather than the contact’s own hs_object_id

 (https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows ).

 

Second, in sandboxes the data model is often thinner than production, so some test records simply don’t have a primary associated contact at all when the workflow fires. A quick check is to add an if/then branch on “Contact ID is known” before the webhook and re-test. Is this workflow contact-based or deal-based in the sandbox? If downtime or ID mismatches between HubSpot and C4C are what bite you, Stacksync adds a resilient sync layer so HubSpot won’t quietly drift from the source.

Did my answer help? Please mark it as a solution to help others find it too.

Ruben Burdin Ruben Burdin
HubSpot Advisor
Founder @ Stacksync
Real-Time Data Sync between any CRM and Database
Stacksync Banner

View solution in original post

0 Upvotes
6 Replies 6
RubenBurdin
Solution
Guide

Hi  @FDiPasquale , that warningon contact_id plus a null value in webhook.site usually means HubSpot is genuinely not able to resolve any contact ID at the moment the webhook runs, even though everything “looks” wired correctly.

Two things tend to cause this.

 

First, the enrollment object and the token source don’t match. For example, if the workflow is deal-based (or another object) and you’re using the plain “Record ID” token under Contact, HubSpot can’t always resolve it, so the editor shows “this field might not get a value” and the webhook sends null. In that case you want the “associated contact” token rather than the contact’s own hs_object_id

 (https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows ).

 

Second, in sandboxes the data model is often thinner than production, so some test records simply don’t have a primary associated contact at all when the workflow fires. A quick check is to add an if/then branch on “Contact ID is known” before the webhook and re-test. Is this workflow contact-based or deal-based in the sandbox? If downtime or ID mismatches between HubSpot and C4C are what bite you, Stacksync adds a resilient sync layer so HubSpot won’t quietly drift from the source.

Did my answer help? Please mark it as a solution to help others find it too.

Ruben Burdin Ruben Burdin
HubSpot Advisor
Founder @ Stacksync
Real-Time Data Sync between any CRM and Database
Stacksync Banner
0 Upvotes
kosalaindrasiri
Solution
Top Contributor | Partner
Top Contributor | Partner

Hey Federica,

 

First of all, we can’t log into that specific link you provided because we do not have access to that related portal.

But I will try to tell you why this is likely happening and how to fix it.

 

The error "related to the contact_id parameter" might mean one of two things,

  1. Either Payload is Empty: The workflow is sending a null or empty value for contact_id because the property is missing on the test contact.
  2. Or the Destination is Wrong: Your Sandbox workflow is sending a Sandbox Contact ID to a Production endpoint (system), which rejects it because that ID doesn't exist there.

 

It might be easier for you to debug this if you can run a test intercepting the message using https://webhook.site/ . It will give you a unique URL you can use as the Webhook temporarily. 

Then replace the current HubSpot Workflow Webhook URL with this new URL you got. Manually Enroll a test contact and check webhook.site dashboard to see the payload you receive. 

Look at the contact_id field!

 

Further Refer (These might also helps):

https://knowledge.hubspot.com/workflows/troubleshoot-common-workflow-errors

https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows

 

Hope this will help

 

Regards,

 

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

0 Upvotes
JOB3
Community Manager
Community Manager

Hello @FDiPasquale and welcome to the Community, we are so glad to have you here!

 

Can you provide more details about the type of error that comes up regarding the contact_id  please ? The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.

 

Here are some additional resources for more info on this topic as well: 


Looking forward to hearing from you ! 


 

 

 

0 Upvotes
FDiPasquale
Member

Hi Team,

We have a workflow that uses a webhook to send a marketing lead and the associated contact from HubSpot to our CRM system (C4C).

Recently, we started encountering an error with the contact_id parameter, which for some reason is not being passed to the workflow. Please find attached a screenshot showing the symbol that appears on the contact_id property.

FDiPasquale_0-1764145691643.png

FDiPasquale_1-1764145713214.png

This workflow has always worked as expected, and it is also active in the production environment, where it continues to function successfully.
Thank you for your support!

 

0 Upvotes
JOB3
Solution
Community Manager
Community Manager

Hi @FDiPasquale

 

Thanks for the screenshots ! If you hover over the 'warning' sign icon on the 'record ID' field for the contact_id request body. Do you see any specific error messages that you can share ? This will give us more information about the specific error. 

 

Also, if you have you been able to try @kosalaindrasiri's troubleshooting steps above , what were the results ? I'm tagging  @denny_cushing @franksteiner79 to check if they have come across this type of error before as well. 
 

 

FDiPasquale
Member

Hi @JOB3,

if I hover over the warning nothing appears, but if I click on it, this popup shows up:

FDiPasquale_0-1764179984984.png

I also tried to debug following @kosalaindrasiri's directions and this is what appears:

FDiPasquale_1-1764180127325.png

I’d like to clarify that this workflow has always been operational and is currently active in our production instance. No changes have been made to it, nor to the other side of the integration.

Thank you for your support!

Federica

 

0 Upvotes