Starting January 6, 2025, HubSpot will implement enhanced validations for non-string property values, including enumeration and multi-value enumeration property values submitted via the CRMObject APIs. This change aims to improve data integrity and user experience by prohibiting leading or trailing whitespace characters, including invisible unicode characters, from these property values. Additionally, existing non-string property values and enumeration options will be backfilled to remove any whitespace or invisible characters from the beginning or end of all property values.
Stricter Validation for Non-String Properties
400 Bad Request
error with a VALIDATION_ERROR
category, providing details on the validation issues encountered.Error Message Example:
Backfilling of Existing Non-String Properties
Ensure all data submissions via the CRMObject APIs for non-string properties, including enumeration options and multi-value enumeration properties, strictly adhere to the new validation rule. Developers should review and update any integrations, scripts, or automated processes that submit non-string property values to HubSpot to ensure compliance with the new validation rules.
Lastly, error-handling routines should be implemented or updated to manage responses from the CRMObject APIs that indicate invalid non-string property values due to the enhanced validations.
For example:
400 Bad Request
error with a VALIDATION_ERROR
response because it contains leading or trailing whitespace or invisible characters.400 Bad Request
error, with the response indicating a VALIDATION_ERROR
.If you have questions or comments, join us in the developer forums.