<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bugfix - Incorrect validation for properties using the bool type in Developer Announcements</title>
    <link>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1070514#M902</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We've recently been getting the error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;HTTP response body: {"status":"error","message":"Boolean properties must have exactly two options; one with a value of 'true', the other with a value of 'false'. Property '&amp;lt;property_name&amp;gt;' of object type '0-2' has more than two options","correlationId":"c2c2ea06-bb17-45aa-8aa5-9a93ce73ef1e","context":{"property":["&amp;lt;property_name&amp;gt;"],"objectTypeId":["0-2"]},"category":"VALIDATION_ERROR","subCategory":"PropertyValidationError.INVALID_BOOLEAN_OPTION"}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The options we were providing when we started seeing the error were:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"options": [
{"label": "Yes", "value": "true"},
{"label": "No", "value": "false"},
]&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;We have since tried updating them to:​&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; 
"options": [
{"label": "Yes", "value": True},
{"label": "No", "value": False},
]
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;BR /&gt;But we are still seeing the same error.&lt;/P&gt;&lt;P&gt;Could this be related to the above change?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have tried creating a string property as a workaround. But we will have to update the property for existing users, which fails with:​&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"Property '&amp;lt;property_name&amp;gt;' of object type '0-2' and type 'string' cannot have options.",&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;It seems our only remaining option is to delete all existing columns for users and then create a new string property.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Can you advise as to whether our issue is to do with this change? If so, could you suggest why the attempt to create with the boolean values (Python) is failing. Alternatively, is there a way to change the type of an existing boolean property to string?&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 14:31:10 GMT</pubDate>
    <dc:creator>PDenning</dc:creator>
    <dc:date>2024-11-16T14:31:10Z</dc:date>
    <item>
      <title>Bugfix - Incorrect validation for properties using the bool type</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1045449#M848</link>
      <description>&lt;P&gt;On&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;November 18th&lt;/STRONG&gt;, we're making an update to property validation for any CRM properties using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="language-en"&gt;"type": "bool"&lt;/CODE&gt;. Currently, these properties are not validated correctly, making it possible to store any string value in these properties. This can cause issues with other systems using these boolean properties, such as triggers or branching actions for workflows, as well as list memberships.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After this fix, only the values&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="language-en"&gt;true&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="language-en"&gt;false&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;STRONG&gt;case sensitive&lt;/STRONG&gt;) will be accepted. Any other values will result in an error. This validation will be applied to any updates to any CRM records that contain a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="language-en"&gt;bool&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property, including creating and updating records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This change will affect all existing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="language-en"&gt;bool&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;properties, including any custom properties created using the CRM APIs, as well as any HubSpot-created properties (properties with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="language-en"&gt;"hubspotDefined":true&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: Single checkbox properties created by a user in HubSpot use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;CODE class="language-en"&gt;enumeration&lt;/CODE&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;type, which are not affected by this as they already correctly validate the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;CODE class="language-en"&gt;true&lt;/CODE&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;CODE class="language-en"&gt;false&lt;/CODE&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;options. As a reminder for all&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;CODE class="language-en"&gt;enumeration&lt;/CODE&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;type properties, you must use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;CODE class="language-en"&gt;value&lt;/CODE&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the option you want to use, not the label.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;When is this happening?&lt;/H3&gt;
&lt;P&gt;The new validation will be applied to all CRM record updates beginning on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;November 18th&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if you have any questions by replying below.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 21:31:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1045449#M848</guid>
      <dc:creator>Dadams</dc:creator>
      <dc:date>2024-09-24T21:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bugfix - Incorrect validation for properties using the bool type</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1070514#M902</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We've recently been getting the error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;HTTP response body: {"status":"error","message":"Boolean properties must have exactly two options; one with a value of 'true', the other with a value of 'false'. Property '&amp;lt;property_name&amp;gt;' of object type '0-2' has more than two options","correlationId":"c2c2ea06-bb17-45aa-8aa5-9a93ce73ef1e","context":{"property":["&amp;lt;property_name&amp;gt;"],"objectTypeId":["0-2"]},"category":"VALIDATION_ERROR","subCategory":"PropertyValidationError.INVALID_BOOLEAN_OPTION"}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The options we were providing when we started seeing the error were:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"options": [
{"label": "Yes", "value": "true"},
{"label": "No", "value": "false"},
]&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;We have since tried updating them to:​&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; 
"options": [
{"label": "Yes", "value": True},
{"label": "No", "value": False},
]
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;BR /&gt;But we are still seeing the same error.&lt;/P&gt;&lt;P&gt;Could this be related to the above change?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have tried creating a string property as a workaround. But we will have to update the property for existing users, which fails with:​&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"Property '&amp;lt;property_name&amp;gt;' of object type '0-2' and type 'string' cannot have options.",&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;It seems our only remaining option is to delete all existing columns for users and then create a new string property.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Can you advise as to whether our issue is to do with this change? If so, could you suggest why the attempt to create with the boolean values (Python) is failing. Alternatively, is there a way to change the type of an existing boolean property to string?&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:31:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1070514#M902</guid>
      <dc:creator>PDenning</dc:creator>
      <dc:date>2024-11-16T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bugfix - Incorrect validation for properties using the bool type</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1113651#M980</link>
      <description>&lt;P&gt;same question here&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 16:31:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Bugfix-Incorrect-validation-for-properties-using-the-bool-type/m-p/1113651#M980</guid>
      <dc:creator>LKnobling</dc:creator>
      <dc:date>2025-02-24T16:31:59Z</dc:date>
    </item>
  </channel>
</rss>

