<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 Invalid Property Name
Administration
Okta Classic Engine
Okta Identity Engine
Overview

This article addresses an error that occurs when adding a new attribute in the profile editor. The following error is displayed:

 

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
  • Custom attributes
  • Multi-valued Attributes
  • Profile Editor
  • Universal Directory
  • Attribute Names
  • Okta Identity Engine (OIE)
  • Okta Classic Engine
Cause

This error occurs if a schema reference (for example, user:<variable_name>) or special characters (other than underscores) are entered in the Variable name field. This field is intended to accept only the variable name, not the full schema reference.

Solution

To resolve this issue, follow the steps mentioned below:

  1. Navigate to Directory > Profile editor.
  2. Locate the affected application or directory and select the Profile option.
  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.
  5. Ensure the Variable name contains only alphanumeric characters and underscores, and does not start with a digit.
Loading
Okta API Validation Failed Error Invalid Property Name