Okta API Validation Failed Error for Invalid Property Name
Last Updated:
Overview
An API validation error occurs when adding a new attribute in the Profile Editor due to an invalid variable name format. Resolve this issue by removing schema references and special characters from the variable name field. When adding a new attribute in the Profile Editor, Okta generates the following error:
Api validation failed: invalid property name. Property name should only have alphanumeric characters and underscores. It should not start with a digit.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Custom attributes
- Multi-valued Attributes
- Profile Editor
- Universal Directory
- Attribute Names
Cause
This error occurs if a schema reference (for example, user:<variable_name>) or special characters (other than underscores) populate the Variable name field. This field accepts only the variable name, not the full schema reference.
Solution
How is the invalid property name error resolved?
Navigate to the Profile Editor to modify the affected attribute and remove any schema references or special characters from the variable name.
- Navigate to Directory > Profile Editor.
- Locate the affected application or directory and select Profile.
- Select the pencil icon to modify the attribute.
- In the Variable name field, remove any schema references (such as
user:) or special characters. Ensure the Variable name contains only alphanumeric characters and underscores, and does not start with a digit.
