404 Not Found - Object ID Invalid or Missing

Message:
Object not found. objectId is usually positive.

Cause:
Trying to update an object or associate with a different object that doesn't exist, has been deleted, is referenced with an incorrect ID or the provided association id is 0/null. In all cases, you would need to ensure that you are using the right association Id.

Fix:

  • Check if the ID exists in HubSpot before trying to use it.
  • Avoid using hard-coded or stale IDs.