<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Okta API Validation Failed Error for Invalid Property Name

Administration
Okta Classic Engine
Okta Identity Engine

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.

 

Error Message

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.

  1. Navigate to Directory > Profile Editor.
  2. Locate the affected application or directory and select Profile.
  3. Select the pencil icon to modify the attribute.
  4. 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.
Loading
Okta Support - Okta API Validation Failed Error for Invalid Property Name