OPTION_HAS_BLANK_VALUE

Hi,

We have a call to create a property on a Company object, this works has worked on many portals we have setup however on a newly created one we are getting back an error not seen before. We have checked on other portals and this error doesn’t occur.

POST https://api.hubapi.com/properties/v1/companies/properties

json:

{
“name” : “international_framework”,
“options” : [
{
“value” : “”,
“label” : “Default / Inherited”
},
{
“label” : “Standard”,
“value” : “0”
},
{
“label” : “Gold”,
“value” : “1”
},
{
“label” : “Test”,
“value” : “2”
},
{
“value” : “3”,
“label” : “RETAIL”
}
],
“fieldType” : “select”,
“groupName” : “courier_navigator”,
“label” : “International Framework”,
“type” : “enumeration”,
“displayName” : “International Framework”
}

The response states:

‘145813211/0-2/international_framework’ cannot have options with blank values",

category":“VALIDATION_ERROR”,“subCategory”:“PropertyValidationError.OPTION_HAS_BLANK_VALUE”}

The error is clear but we have a requirement for the enumerate to include a blank / null value (tried both) there’s nothing to say that this can’t be done anymore and the fact we have used it many times on other portals is confusing. Other properties types dates, select and strings have worked its just those the blank value that fail. Is there an setting required to enable this behaviour?

Thanks

Hey, @LBlackwell9 :waving_hand: Thanks for your post. The error message is correct — all properties require an internal value for the system to reference, even if this is not explicitly stated in the documentation. While we can create a property without a label, we cannot create one without an internal value.

If you have a working example from another portal (the JSON from the Properties API, for example) you could submit this through the Developer Feedback form. While it is not a form for support issues, asking for documentation clarity or product updates is within the scope of that form’s intended use cases.

Best,

Jaycee

Hi Jaycee,

Thank you for replying to my post, its much appreciated. Here is a snip from another portal on the output of /properties/v1/companies/properties showing a select that contains a “” value. It must be something that can be allowed, is there a setting somewhere that forces / requires the behavour you describe?

Thanks again!

Hey, @LBlackwell9 :waving_hand: I agree with you, at some point in the past, this was an option. But it appears through your experience and my tests, that this was removed at some point. If I can find a changelog for this, I’ll add a link here. — Jaycee