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.
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,
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.
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.
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.
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
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 HubSpot Advisor Founder @ Stacksync Real-Time Data Sync between any CRM and Database
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
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 HubSpot Advisor Founder @ Stacksync Real-Time Data Sync between any CRM and Database
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,
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.
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.
Hello @FDiPasqualeand 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:
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.
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!
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.
if I hover over the warning nothing appears, but if I click on it, this popup shows up:
I also tried to debug following @kosalaindrasiri's directions and this is what appears:
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.