Guides / n8n × HubSpot / Field mapping

Fix HubSpot "property does not exist" errors

HubSpot writes take a property's internal name, never the label you see in the UI. How to fetch the real names, why they diverge from labels, and the mapping step that stops the error recurring.

FlowPatch diagram: Object type to internal property name to request. Verify schema in the same portal.
400 — {"status":"error","message":"Property values were not valid: [{\"isValid\":false,\"message\":\"Property \\\"Phone Number\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"Phone Number\"}]"}
Short answer: The HubSpot API addresses properties by internal name, a lowercase, underscored string fixed when the property was created. The label shown in the UI is display text an admin can rename at any time without changing the internal name, so the two drift apart and a payload keyed on the label fails with PROPERTY_DOESNT_EXIST. Fetch the real names once from /crm/v3/properties/{objectType}, build a label-to-name map at the top of the workflow, and fail loudly when an expected label is absent instead of shipping the label as a key.

Internal name and label are two different strings

Every HubSpot property has a name and a label. The name is what the API accepts: lowercase, underscore-separated, allocated when the property is created, and immutable afterwards. The label is the human-readable text the UI shows, and an admin can change it freely — renaming "Phone" to "Phone Number" in the UI leaves the internal name as phone.

That immutability is the point people miss. A property created as "Customer Tier" gets the internal name customer_tier, and if it is later renamed to "Account Level" the API still wants customer_tier. Neither the new label nor the old one is a valid key. A custom property created in the UI also carries no guarantee that its internal name is a tidy version of its label — HubSpot deduplicates, so a second property called "Region" may be region_1 or a generated string.

HubSpot's own standard properties have names that look nothing like their labels either: the lifecycle stage is lifecyclestage, the lead status is hs_lead_status, and the deal stage is dealstage with no underscore at all. Guessing the name from the label is unreliable even for fields HubSpot ships.

Fetch the real names once

One GET against the properties endpoint for the object type returns every property with its name, label, type and — for enumerations — the full list of valid options. This is the authoritative answer and it takes one request. It requires the schema read scope for that object, which is a separate scope from the object read scope and is a common reason this call 403s while record reads work fine.

GET https://api.hubapi.com/crm/v3/properties/contacts
Authorization: Bearer pat-na1-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# scope: crm.schemas.contacts.read

{
  "results": [
    { "name": "phone",         "label": "Phone Number",  "type": "string" },
    { "name": "customer_tier", "label": "Account Level", "type": "enumeration",
      "options": [ { "label": "Gold", "value": "gold" },
                   { "label": "Silver", "value": "silver" } ] },
    { "name": "lifecyclestage","label": "Lifecycle Stage","type": "enumeration" }
  ]
}

# "Phone Number" is the LABEL. The payload key is "phone".

Build the map once, at the top of the workflow

Hardcoding internal names across a dozen node parameters produces a workflow that breaks invisibly when someone deletes and recreates a property, because the recreated property gets a new internal name and HubSpot's behaviour on an unknown key is not uniformly a hard error. Resolving the names at runtime from the properties endpoint and failing loudly when an expected label is missing converts that into a clear message naming the field.

Fetch the definitions once per execution, not once per item. Property definitions change on the timescale of admin work, so a metadata call inside a loop over several thousand records spends rate-limit budget to learn something that did not move.

// n8n Code node, run once after GET /crm/v3/properties/contacts
const byLabel = Object.fromEntries(
  $json.results.map((p) => [p.label, {
    name: p.name,
    type: p.type,
    options: Object.fromEntries((p.options || []).map((o) => [o.label, o.value]))
  }])
);

const required = ["Phone Number", "Account Level"];
const missing = required.filter((l) => !byLabel[l]);
if (missing.length) throw new Error("HubSpot properties missing: " + missing.join(", "));

return [{ json: { properties: {
  [byLabel["Phone Number"].name]:  $json.phone,
  [byLabel["Account Level"].name]: byLabel["Account Level"].options[$json.tier]
} } }];

Three adjacent causes that produce the same message

First, wrong object type. Properties are scoped per object, so a property that exists on deals does not exist on contacts and a payload sent to the wrong endpoint reports exactly this error. Check the objectType in the URL before checking the key.

Second, wrong portal. A property created in a sandbox or a colleague's test portal genuinely does not exist in production, and the error is literally correct. The token-introspection route returns hub_id, which settles it in one request.

Third, an enumeration value rather than the property itself. If the property name resolves and the write still fails, the message shifts from PROPERTY_DOESNT_EXIST to an invalid-option complaint — the key is right and the value is not one of the options in that property's options array. Map source values to the option's value, not its label, exactly as with the property name itself.

An admin renaming a field in the HubSpot UI never requires an integration change if you use internal names — and always breaks one that uses labels. That asymmetry is the whole argument for the mapping step.

When the property genuinely does not exist yet

Sometimes the error is simply correct: the workflow is writing to a property nobody created, usually because it was added in a sandbox and never promoted, or because a colleague removed it during a tidy-up. The properties endpoint settles it in one call — if the field is absent from the response, no amount of name-checking will help.

Creating it from the API is possible and is the right move for an integration that provisions its own fields, but it needs care. A property's internal name is fixed at creation, so choosing it deliberately matters more than the label does; the groupName determines where it appears in the UI, and getting it wrong buries the field somewhere users will not find it. For an enumeration, the options you define at creation become the only values writes may use.

Prefer letting a portal admin create the field where one exists. A property created by an integration is invisible to whoever maintains the portal until something depends on it, and the resulting field is frequently duplicated by hand a month later — at which point two properties with near-identical labels and different internal names both hold part of the data.

POST https://api.hubapi.com/crm/v3/properties/contacts
Authorization: Bearer pat-na1-xxxx...
# scope: crm.schemas.contacts.write

{
  "name": "customer_tier",          // fixed forever — choose deliberately
  "label": "Account Level",         // renameable at any time
  "groupName": "contactinformation",
  "type": "enumeration",
  "fieldType": "select",
  "options": [
    { "label": "Gold",   "value": "gold",   "displayOrder": 0 },
    { "label": "Silver", "value": "silver", "displayOrder": 1 }
  ]
}

# Writes must then use "gold"/"silver" — the option VALUE, not the label.

Where these facts come from