# Maximum allowed length for custom behavioral event is 256

**URL:** <https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [April 12, 2023, 11:38am UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154 "2023-04-12T11:38:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SMSM](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@SMSM](https://community.hubspot.com/u/SMSM)\
**Post date:** [April 12, 2023, 11:38am UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154/1 "2023-04-12T11:38:30Z")

</div>

According to [HubSpot documentation](https://developers.hubspot.com/docs/api/analytics/events) max length for event property is 65536.  
However real limit seems to be 256 charachters long. Is there any workaround for the issue or something wrong with the request?  
Request:

```lia-code-sample
{
	"email": "test@test.com",
	"eventName": "event_name",
	"properties": {
 "custom_property": "dyhAAT8m4rZKcLGESQB6wxXmSOJwRe4qukdh6oMV530qnPMQuyWfmyivlSRigrl2ESQRRuuZhamNyh7StJwNvhu9W84N0N5qHTr84OGtzXpQnTXtLeaSXogZwGoC43J4YGf8IW142pobAf4t9xD2aKcdOnKyQo8rM8Fav3auVxFKEqQPg8wUyjLQzg7FBgy0tYNIuhl3rr4Uah5EMt2fB9QKKzlcldaXTSUnSbvsqlMW8hEnxG9NOjUjtdUma5K0DHRP2vNhPi0dP2ttKxfVCW4rs9fn1EqjkHjuGRo31z"
	}
}

```

Response:

```lia-code-sample
{
 "status": "error",
 "message": "Maximum allowed length for non-url/non-referrer properties is 256.",
 "correlationId": "334f1fc1-e112-4a73-befe-d573920d65a3",
 "category": "VALIDATION_ERROR",
 "subCategory": "CustomBehavioralEventPropertyError.TOO_LONG_NON_URL_OR_REFERRER_PROPERTY_VALUE"
}

```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 13, 2023, 3:13pm UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154/2 "2023-04-13T15:13:52Z")

</div>

Hi, @SMSM 👋 Thanks for sharing. One request, can you verify the Property Type of your custom property, please? A not-too-zoomed-in screenshot will be helpful in this case. Here’s an example from my portal:

 ![CleanShot 2023-04-13 at 09.03.52@2x.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/e/cedd88dbf65173033c629c44ef2f5f668eef0172.png)

Steps on how to find it:

- In HubSpot, navigate to **Reports** \> **Analytics Tools**.
- Click **Custom Behavioral Events**.
- Click the **name** of the event.
- Click the **Properties** tab.
- In the properties table, view the property type under the name of the property

Thanks! — Jaycee

---

<div class="post-metadata">

**Author:** ![SMSM](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@SMSM](https://community.hubspot.com/u/SMSM)\
**Post date:** [April 14, 2023, 9:42am UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154/3 "2023-04-14T09:42:48Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) here is the screenshot. As you can see it is a string.

 ![Screenshot 2023-04-14 at 10.40.56.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/f/af2755897adc06b448caaa0af79cdbde0f78ae64.png)

---

<div class="post-metadata">

**Author:** ![HubspotConsumer](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@HubspotConsumer](https://community.hubspot.com/u/HubspotConsumer)\
**Post date:** [May 29, 2025, 12:02pm UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154/4 "2025-05-29T12:02:57Z")

</div>

Hey @SMSM, did you solve that? My company also needs the custom event string property to be longer than 256 characters. @Jaycee_Lewis, could you help with that?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 11, 2025, 3:09pm UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154/5 "2025-06-11T15:09:42Z")

</div>

Hey, @HubspotConsumer 👋 That is a request support may be able to assist with and let you know what is possible. I just checked the documentation mentioned in the OP don’t see any updates to this limit.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![BKalinowski](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@BKalinowski](https://community.hubspot.com/u/BKalinowski)\
**Post date:** [April 9, 2024, 10:06pm UTC](https://community.hubspot.com/t/maximum-allowed-length-for-custom-behavioral-event-is-256/79154/6 "2024-04-09T22:06:31Z")

</div>

Also wondering about this, 256 or 65536 for a string property?
