<?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 Custom field type/validation changes and existing values failing update in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/312283#M29786</link>
    <description>&lt;P&gt;I'm trying to get to the bottom of some wierd errors my clients keep getting. It looks like HubSpot CRM users can change a custom field type from one to another without existing fields being changed (until editing). At least, this is my assumption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The backstory: We're trying to update a company with a field value that was fetched from the user account shortly before. We get a validation error that the enumeration or input type is not correct. Our latest example is a custom field value we pulled which is suppose to be an ID that has numbers and letters, on update we get a integer validation error because of the text. How could those invalid values exist if we're no longer allowed to update them with the same value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I need to know:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can custom fields change type from say a very loose type like "text" to a stricter type like "integer"? If so, what would be the suggested maintenance to update existing values that contain text when such a custom field change is made?&lt;/LI&gt;&lt;LI&gt;Have there been any number field changes in the HubSpot API that would have caused existing field values to become invalid?&lt;/LI&gt;&lt;LI&gt;In which cases would we expect existing field values to be stored but not pass validation on update? How do we work around this?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been an issue for multiple customers now. I don't know who holds the burden of responsibility here. If it's ours I've love to know so we can fix it right away.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 05:49:18 GMT</pubDate>
    <dc:creator>Dedupely</dc:creator>
    <dc:date>2020-01-16T05:49:18Z</dc:date>
    <item>
      <title>Custom field type/validation changes and existing values failing update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/312283#M29786</link>
      <description>&lt;P&gt;I'm trying to get to the bottom of some wierd errors my clients keep getting. It looks like HubSpot CRM users can change a custom field type from one to another without existing fields being changed (until editing). At least, this is my assumption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The backstory: We're trying to update a company with a field value that was fetched from the user account shortly before. We get a validation error that the enumeration or input type is not correct. Our latest example is a custom field value we pulled which is suppose to be an ID that has numbers and letters, on update we get a integer validation error because of the text. How could those invalid values exist if we're no longer allowed to update them with the same value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I need to know:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can custom fields change type from say a very loose type like "text" to a stricter type like "integer"? If so, what would be the suggested maintenance to update existing values that contain text when such a custom field change is made?&lt;/LI&gt;&lt;LI&gt;Have there been any number field changes in the HubSpot API that would have caused existing field values to become invalid?&lt;/LI&gt;&lt;LI&gt;In which cases would we expect existing field values to be stored but not pass validation on update? How do we work around this?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been an issue for multiple customers now. I don't know who holds the burden of responsibility here. If it's ours I've love to know so we can fix it right away.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 05:49:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/312283#M29786</guid>
      <dc:creator>Dedupely</dc:creator>
      <dc:date>2020-01-16T05:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field type/validation changes and existing values failing update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314111#M30011</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92529"&gt;@Dedupely&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for the delayed response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A HubSpot user can indeed change the &lt;CODE&gt;type&lt;/CODE&gt; of a custom object property via the UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following your example, if a custom company property with &lt;CODE&gt;"type":"string"&lt;/CODE&gt;&amp;nbsp;is changed in-app to &lt;CODE&gt;"type":"number"&lt;/CODE&gt;, then you as the integrator will no longer be able to write strings to the property, but the company's value will remain a string. HubSpot does its best to retain known values despite incompatible changes to the property's &lt;CODE&gt;type&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll try to address each of your specific questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Yes, custom fields can change&amp;nbsp;&lt;CODE&gt;type&lt;/CODE&gt;. If you need to write a string back to that field, you must change the custom property's &lt;CODE&gt;type&lt;/CODE&gt; back to &lt;CODE&gt;string&lt;/CODE&gt; via the corresponding object properties API, undoing the in-app change.&lt;/LI&gt;
&lt;LI&gt;There haven't been any recent changes to how HubSpot treats &lt;CODE&gt;string&lt;/CODE&gt; and &lt;CODE&gt;number&lt;/CODE&gt; &lt;CODE&gt;type&lt;/CODE&gt; properties, and HubSpot would not programmatically change the &lt;CODE&gt;type&lt;/CODE&gt;s of custom object properties.&lt;/LI&gt;
&lt;LI&gt;Per the first bullet point, all cases. The only way to work around this would be to undo any user changes to a property's &lt;CODE&gt;type&lt;/CODE&gt; via API.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 23 Jan 2020 16:28:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314111#M30011</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2020-01-23T16:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field type/validation changes and existing values failing update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314233#M30026</link>
      <description>&lt;P&gt;Thanks for the explination.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Th only way I can see this being fixed then is either we ignore that field or filter it based on the type provided in the fields list. Which is a bit of a pain and maybe not going to be very accurate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find it very odd HubSpot would allow users to change field types like this but not much we can do about it now except write some workarounds in the backend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I appreciate you taking the time to go deep with this.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 22:05:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314233#M30026</guid>
      <dc:creator>Dedupely</dc:creator>
      <dc:date>2020-01-23T22:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field type/validation changes and existing values failing update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314372#M30045</link>
      <description>&lt;P&gt;Happy to help,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92529"&gt;@Dedupely&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree that mutable property types can be a pain point for integrators like you, so I'll definitely keep this in the back of my mind going forward.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 13:23:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314372#M30045</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2020-01-24T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field type/validation changes and existing values failing update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314878#M30086</link>
      <description>&lt;P&gt;Thanks for the help. This is great that you were able to confirm the issue. We have a fix for it in Dedupely now and we just launched a blog post on this:&amp;nbsp;&lt;A href="https://dedupe.ly/blog/minor-update-hubspot-field-type-change-and-dedupely/" target="_blank"&gt;https://dedupe.ly/blog/minor-update-hubspot-field-type-change-and-dedupely/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:32:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314878#M30086</guid>
      <dc:creator>Dedupely</dc:creator>
      <dc:date>2020-01-27T23:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field type/validation changes and existing values failing update</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314951#M30100</link>
      <description>&lt;P&gt;Thanks for updating the Community,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92529"&gt;@Dedupely&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 11:53:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-field-type-validation-changes-and-existing-values-failing/m-p/314951#M30100</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2020-01-28T11:53:39Z</dc:date>
    </item>
  </channel>
</rss>

