Common Error Messages
Quick reference for error messages you might see and how to fix them.Authentication Errors
”HubSpot not connected”
What it means: No HubSpot account connected to Agent.AI Fix:- Go to Settings → Integrations
- Click Connect HubSpot
- Authorize permissions
- Try workflow again
”Invalid credentials” or “Token expired”
What it means: HubSpot connection needs refresh Fix:- Go to Settings → Integrations
- Disconnect HubSpot
- Reconnect HubSpot
- Run workflow again
”Insufficient permissions” or “Missing scope”
What it means: Missing required HubSpot permission Example: “This action requires crm.objects.contacts.write scope” Fix:- Reconnect HubSpot
- Grant additional permissions when prompted
- Make sure to check all needed scopes
Object Not Found Errors
”Object not found” or “Record does not exist”
What it means: HubSpot ID doesn’t exist Common causes:- Wrong object ID
- Object was deleted
- Using test ID that doesn’t exist
- Check object ID in execution log
- Verify object exists in HubSpot
- Use Search action first to get valid IDs
- Check variable is correct
”Contact not found with email”
What it means: No contact with that email address Fix:- Verify email address is correct
- Check contact exists in HubSpot
- Try lookup by object ID instead
- Use Search action to find contact first
”Company not found with domain”
What it means: No company with that domain Fix:- Verify domain format (example.com, not www.example.com)
- Check company exists in HubSpot
- Try lookup by object ID instead
- Use Search action to find company first
Variable Errors
”Variable not found” or “Undefined variable”
What it means: Referencing variable that doesn’t exist Common causes:- Action that creates variable failed
- Typo in variable name
- Variable only exists inside loop/if block
- Check action order - variable must be created first
- Verify variable name spelling
- Check execution log - did creating action succeed?
- If inside loop, variable only exists inside loop
”Cannot access property of undefined”
What it means: Trying to access property on empty/null variable Example:{{contact.properties.email}}
when contact is null
Fix:
- Add If Condition to check variable exists first
- Check execution log - what did previous action return?
- Verify property path is correct
- Make sure previous action succeeded
Search/Lookup Errors
”No results found”
What it means: Search returned empty (not an error, just no matches) Fix:- Check search filters - too restrictive?
- Verify data exists in HubSpot
- Try simpler search first
- Add If Condition to handle empty results
”Invalid filter operator”
What it means: Using wrong operator for property type Example: Using “Greater Than” on text field Fix:- Text fields: Use “Equals”, “Contains”, “Starts With”
- Numbers: Use “Greater Than”, “Less Than”, “Equals”
- Dates: Use “Greater Than”, “Less Than” (as timestamps)
- Check property type in HubSpot
”Property does not exist”
What it means: HubSpot property doesn’t exist Common causes:- Typo in property name
- Custom property not created
- Using wrong object type
- Verify property exists in HubSpot settings
- Use exact internal name (lowercase, underscores)
- Check object type matches (contact vs. deal vs. company)
- Use property picker (+ Add Property button)
Update Errors
”Cannot update property”
What it means: Property is read-only or doesn’t exist Common causes:- System property (can’t be modified)
- Property doesn’t exist
- Wrong permissions
- Check if property is system-managed
- Verify property exists and is editable
- Grant write permissions for object type
- Try different property
”Invalid property value”
What it means: Value doesn’t match property type Example: Setting text in number field Fix:- Check property type in HubSpot
- Text properties: Any value
- Number properties: Numbers only (no commas, letters)
- Date properties: ISO format or timestamp
- Dropdown properties: Use exact option value
Timeline Event Errors
”Invalid event type”
What it means: Event type name invalid or doesn’t exist Fix:- Use lowercase with underscores:
onboarding_completed
- No spaces or special characters
- Create event type in HubSpot settings first (if custom)
- System event types: lowercase
”Timeline events not available”
What it means: HubSpot tier doesn’t support custom timeline events Fix:- Upgrade to Professional or Enterprise
- Use notes/engagements instead
- Check HubSpot feature availability
Engagement Errors
”Associations are required”
What it means: Creating engagement without associating to a record Fix:- Add associations field
- Format:
contact:{{contact_id}}
- At least one association required
- Use valid HubSpot object ID
”Invalid engagement type”
What it means: Engagement type not recognized Fix:- Use:
note
,call
,email
,meeting
, ortask
- Lowercase only
- No plural (use
note
notnotes
)
“Invalid duration format”
What it means: Duration not a number Fix:- Use minutes as number:
30
(not “30 minutes”) - Must be numeric value
- Applies to calls and meetings only
Loop/Condition Errors
”Loop variable not found”
What it means: Trying to use loop variable outside loop Fix:- Loop variables only exist inside loop
- Use loop variable between For Loop and End Loop
- Create new variable outside loop if needed after
”End Condition without matching start”
What it means: End Condition with no For Loop or If Condition before it Fix:- Every End Condition needs a For Loop or If Condition
- Check action order
- Remove extra End Condition
”Missing End Condition”
What it means: For Loop or If Condition without End Condition Fix:- Add End Condition action after loop/if block
- Every For Loop needs End Loop
- Every If Condition needs End Condition
Webhook Errors
”Webhook payload empty”
What it means: Webhook received but no data Fix:- Check HubSpot workflow sends payload
- Verify JSON format in HubSpot
- Test HubSpot workflow
- Check webhook URL is correct
”Portal ID missing”
What it means:_hubspot_portal
not in webhook payload
Fix:
- Add to HubSpot webhook payload:
"_hubspot_portal": "{{portal.id}}"
- Required for HubSpot actions
- Always include in webhook
Rate Limit Errors
”Rate limit exceeded”
What it means: Too many API calls to HubSpot Fix:- Add delays between actions in loops
- Reduce batch sizes
- Wait and retry
- HubSpot has daily API limits
General Errors
”Invalid JSON”
What it means: JSON syntax error in input Fix:- Check JSON format (matching braces, quotes)
- Use JSON validator
- Common: Missing comma, extra comma, mismatched quotes
”Timeout”
What it means: Action took too long Fix:- Simplify action (fewer filters, smaller result set)
- Check HubSpot availability
- Try again (temporary issue)
“Unknown error”
What it means: Unexpected error Fix:- Check execution log for details
- Verify all inputs are valid
- Try simpler version of action
- Contact support with execution log
Debugging Tips
When you hit an error:-
Check execution log
- See exact error message
- View variable values
- See what action failed
-
Simplify and test
- Remove variables, use hardcoded values
- Test with known-good data
- Isolate the failing action
-
Verify data exists
- Check object exists in HubSpot
- Verify property names are correct
- Confirm permissions granted
-
Test in HubSpot first
- Can you see the object in HubSpot?
- Can you manually update it?
- Does the property exist?
Related Resources
Guides:- Troubleshooting Guide - Detailed debugging steps
- OAuth Scopes - Permission requirements
- HubSpot Setup - Initial setup
- Variable System - Understanding variables
- Action Execution - Execution logs
Last Updated: 2025-10-01