---
title: "How to deal with \"Unexpected error: Cannot convert undefined or null to object\""
description: "How to deal with \"Unexpected error: Cannot convert undefined or null to object\""
---

[Skip to content](https://knowledge.hublead.io/how-to-deal-with-unexpected-error-cannot-convert-undefined-or-null-to-object#main-content)

[![hublead logo](https://knowledge.hublead.io/hs-fs/hubfs/hublead%20logo.png?width=100&height=21&name=hublead%20logo.png)](https://www.hublead.io/)

- [Home](https://knowledge.hublead.io/)
- Getting Started
  
  Show submenu for Getting Started

    - [How HubSpot and Hublead connect](https://knowledge.hublead.io/how-hubspot-and-hublead-connect-how-it-works)
    - [Import contacts & companies](https://knowledge.hublead.io/en/import-contacts-companies)
    - [Sync Conversations](https://knowledge.hublead.io/en/import-linkedin-conversations-to-hubspot)
    - [LinkedIn Invitations](https://knowledge.hublead.io/en/import-linkedin-invitations)
- The Core Workflows
  
  Show submenu for The Core Workflows

    - HubSpot
      
      Show submenu for HubSpot

          - [How to trigger LinkedIn Workflow?](https://knowledge.hublead.io/how-to-trigger-linkedin-workflow)
          - [Leverage LinkedIn data in HubSpot](https://knowledge.hublead.io/en/leverage-linkedin-data-in-hubspot)
    - Chrome Extension
      
      Show submenu for Chrome Extension

          - [Export contacts from Sales Navigator to HubSpot using Hublead](https://knowledge.hublead.io/export-contacts-from-sales-navigator-to-hubspot-using-hublead)
          - [LinkedIn Message Templates](https://knowledge.hublead.io/linkedin-message-templates-two-core-use-cases-connection-requests-ongoing-conversations)
    - Data Enrichment
      
      Show submenu for Data Enrichment

          - [Connect Data Enrichment Tools to Hublead](https://knowledge.hublead.io/en/connect-data-enrichment-tools-to-hublead)
- [Dashboard & Settings](https://knowledge.hublead.io/dashboard-settings)
  
  Show submenu for Dashboard & Settings

    - Seats / Team / workspace administration
      
      Show submenu for Seats / Team / workspace administration

          - [How to Set Up Your Team](https://knowledge.hublead.io/en/how-to-set-up-your-team)
          - [Hublead subscription, plans, and seats](https://knowledge.hublead.io/hublead-subscription-plans-and-seats-licenses)
    - Billing
      
      Show submenu for Billing

          - [Hublead billing & subscriptions: trials, upgrades, downgrades & invoices](https://knowledge.hublead.io/hublead-billing-subscriptions-trials-upgrades-downgrades-invoices)
    - Reporting
      
      Show submenu for Reporting

          - [Funnel vs Activities report: how Hublead calculates the numbers](https://knowledge.hublead.io/funnel-vs-activities-report-how-hublead-calculates-the-numbers)
- [Troubleshooting](https://knowledge.hublead.io/troubleshooting-known-issues)
  
  Show submenu for Troubleshooting

    - [How to Fix the “An email is required to create this contact” Error](https://knowledge.hublead.io/how-to-fix-the-an-email-is-required-to-create-this-contact-error)
    - [How to deal with "Unexpected error: Cannot convert undefined or null to object"](https://knowledge.hublead.io/how-to-deal-with-unexpected-error-cannot-convert-undefined-or-null-to-object)
    - [Multiple HubSpot users sharing the same LinkedIn account](https://knowledge.hublead.io/multiple-hubspot-users-sharing-the-same-linkedin-account)
    - [Troubleshoot LinkedIn invitations not showing in HubSpot](https://knowledge.hublead.io/troubleshoot-linkedin-invitations-not-showing-in-hubspot)
    - [Trouble connecting Hublead with HubSpot](https://knowledge.hublead.io/trouble-connecting-hublead-with-hubspot)
    - [Trouble connecting with HubSpot](https://knowledge.hublead.io/en/trouble-connecting)
    - [How to report a bug from the Hublead Chrome extension](https://knowledge.hublead.io/how-to-report-a-bug-from-the-hublead-chrome-extension)

Open main navigation

Close main navigation

- [Home](https://knowledge.hublead.io/)
- Getting Started
  
  Show submenu for Getting Started

    - [How HubSpot and Hublead connect](https://knowledge.hublead.io/how-hubspot-and-hublead-connect-how-it-works)
    - [Import contacts & companies](https://knowledge.hublead.io/en/import-contacts-companies)
    - [Sync Conversations](https://knowledge.hublead.io/en/import-linkedin-conversations-to-hubspot)
    - [LinkedIn Invitations](https://knowledge.hublead.io/en/import-linkedin-invitations)
- The Core Workflows
  
  Show submenu for The Core Workflows

    - HubSpot
      
      Show submenu for HubSpot

          - [How to trigger LinkedIn Workflow?](https://knowledge.hublead.io/how-to-trigger-linkedin-workflow)
          - [Leverage LinkedIn data in HubSpot](https://knowledge.hublead.io/en/leverage-linkedin-data-in-hubspot)
    - Chrome Extension
      
      Show submenu for Chrome Extension

          - [Export contacts from Sales Navigator to HubSpot using Hublead](https://knowledge.hublead.io/export-contacts-from-sales-navigator-to-hubspot-using-hublead)
          - [LinkedIn Message Templates](https://knowledge.hublead.io/linkedin-message-templates-two-core-use-cases-connection-requests-ongoing-conversations)
    - Data Enrichment
      
      Show submenu for Data Enrichment

          - [Connect Data Enrichment Tools to Hublead](https://knowledge.hublead.io/en/connect-data-enrichment-tools-to-hublead)
- [Dashboard & Settings](https://knowledge.hublead.io/dashboard-settings)
  
  Show submenu for Dashboard & Settings

    - Seats / Team / workspace administration
      
      Show submenu for Seats / Team / workspace administration

          - [How to Set Up Your Team](https://knowledge.hublead.io/en/how-to-set-up-your-team)
          - [Hublead subscription, plans, and seats](https://knowledge.hublead.io/hublead-subscription-plans-and-seats-licenses)
    - Billing
      
      Show submenu for Billing

          - [Hublead billing & subscriptions: trials, upgrades, downgrades & invoices](https://knowledge.hublead.io/hublead-billing-subscriptions-trials-upgrades-downgrades-invoices)
    - Reporting
      
      Show submenu for Reporting

          - [Funnel vs Activities report: how Hublead calculates the numbers](https://knowledge.hublead.io/funnel-vs-activities-report-how-hublead-calculates-the-numbers)
- [Troubleshooting](https://knowledge.hublead.io/troubleshooting-known-issues)
  
  Show submenu for Troubleshooting

    - [How to Fix the “An email is required to create this contact” Error](https://knowledge.hublead.io/how-to-fix-the-an-email-is-required-to-create-this-contact-error)
    - [How to deal with "Unexpected error: Cannot convert undefined or null to object"](https://knowledge.hublead.io/how-to-deal-with-unexpected-error-cannot-convert-undefined-or-null-to-object)
    - [Multiple HubSpot users sharing the same LinkedIn account](https://knowledge.hublead.io/multiple-hubspot-users-sharing-the-same-linkedin-account)
    - [Troubleshoot LinkedIn invitations not showing in HubSpot](https://knowledge.hublead.io/troubleshoot-linkedin-invitations-not-showing-in-hubspot)
    - [Trouble connecting Hublead with HubSpot](https://knowledge.hublead.io/trouble-connecting-hublead-with-hubspot)
    - [Trouble connecting with HubSpot](https://knowledge.hublead.io/en/trouble-connecting)
    - [How to report a bug from the Hublead Chrome extension](https://knowledge.hublead.io/how-to-report-a-bug-from-the-hublead-chrome-extension)
- [Go to hublead.io](https://www.hublead.io/)

[Go to hublead.io](https://www.hublead.io/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Hublead Help Center](https://knowledge.hublead.io/?hsLang=en)
2. [Troubleshooting & known issues](https://knowledge.hublead.io/troubleshooting-known-issues?hsLang=en)

October 28, 2025

# How to deal with "Unexpected error: Cannot convert undefined or null to object"

## The issue is rare and usually temporary, related to HubSpot rate limits or to missing LinkedIn data.

The error message "Unexpected error: Cannot convert undefined or null to object" may show up in some cases when clicking **“Create Contact”** or **“Link Contact.”**

![](https://knowledge.hublead.io/hs-fs/hubfs/image-png-2.png?width=670&height=278&name=image-png-2.png)

### **What this error means**

- If HubSpot is temporarily unavailable or you're hitting **API rate limits,** HubSpot can reject requests for a few minutes.
- Also, this can happen when Hublead tries to send contact data to HubSpot, but one of the required properties (LinkedIn URL, Job Title, and Country) is **empty or misconfigured**.

### **How to fix this error**

**Case 1: HubSpot rate limit is exceeded**

1. Wait **10-15 minutes** before retrying.
2. Refresh the LinkedIn page.
3. Click 'Create Contact' or 'Link Contact' again. The contact should sync normally after the cooldown.

**Case 2: Missing or invalid LinkedIn properties**

1. Make sure the following properties haven't been deleted: LinkedIn URL, Job Title, and Country. To do so, visit [this page](https://app-eu1.hubspot.com/property-settings/)(or go to Settings \> Properties in HubSpot).
2. If they haven't, ensure they're configured as **'Single-line text'**.
3. Refresh the LinkedIn page.
4. Try clicking 'Create Contact' or 'Link Contact' again.

![](https://knowledge.hublead.io/hs-fs/hubfs/image-png-3.png?width=670&height=168&name=image-png-3.png)

**![](https://knowledge.hublead.io/hs-fs/hubfs/image-png-4.png?width=670&height=164&name=image-png-4.png)**

**![](https://knowledge.hublead.io/hs-fs/hubfs/image-png-Oct-28-2025-04-45-46-3450-PM.png?width=670&height=135&name=image-png-Oct-28-2025-04-45-46-3450-PM.png)**

**Case 3: Still not working**

1. Export the **console logs** (follow the instructions outlined on [this video](https://share.descript.com/view/UXo8sy1zHQG)).
2. Send the logs to [support@hublead.io](mailto:support@hublead.io), including the LinkedIn profile URL and timestamp of the error.

### **How to prevent this error**

- Always keep the Hublead Chrome extension up-to-date.
- Ensure your HubSpot connection is active in [Hublead Settings](https://app.hublead.io/settings/general).
- Avoid mass-creating contacts too quickly to prevent hitting rate limits.

- [Getting started](https://knowledge.hublead.io/getting-started?hsLang=en)
- [The Core Workflows](https://knowledge.hublead.io/the-core-workflows?hsLang=en#main-content)

    - [Data Enrichment](https://knowledge.hublead.io/the-core-workflows?hsLang=en#data-enrichment)
    - [Chrome Extension](https://knowledge.hublead.io/the-core-workflows?hsLang=en#chrome-extension)
    - [HubSpot](https://knowledge.hublead.io/the-core-workflows?hsLang=en#hubspot)
- [Dashboard & Settings](https://knowledge.hublead.io/dashboard-settings?hsLang=en#main-content)

    - [Reporting](https://knowledge.hublead.io/dashboard-settings?hsLang=en#reporting)
    - [Billing](https://knowledge.hublead.io/dashboard-settings?hsLang=en#billing)
    - [Seats / Team / workspace administration](https://knowledge.hublead.io/dashboard-settings?hsLang=en#seats-team-workspace-administration)
- [Troubleshooting & known issues](https://knowledge.hublead.io/troubleshooting-known-issues?hsLang=en)
- [General](https://knowledge.hublead.io/general?hsLang=en#main-content)

    - [Billing](https://knowledge.hublead.io/general?hsLang=en#billing)

[![hublead logo-1](https://knowledge.hublead.io/hs-fs/hubfs/hublead%20logo-1.png?width=400&height=86&name=hublead%20logo-1.png "hublead logo-1")](https://www.hublead.io/)

hublead.io Help Center

Copyright © 2025, Hublead