Error in Bulk Import Job - "String is too short"

Overview

When attempting to import users, an error like the one below may be seen, stating that a property has not met a minimum length:

Error{code='MIN_LENGTH', message='Error in given_name property - String is too short (0 chars), minimum 1', path='given_name'}"

This can occur even for properties that are not required.

Applies To

  • Bulk User Import

Cause

If an import contains an attribute, but assigns it no value, it can cause the “MIN_LENGTH” error, e.g.

"given_name": ""

While in this case, given_name is not a required attribute in a user profile, when it is listed in the import file, it must be given a non-empty value.

Solution

Ensure a non-empty value is assigned for all attributes listed in the impacted user’s JSON.

If a user does not have a value for a given attribute, it should be omitted entirely from the import to avoid the error.

For a standard Database connection, “email” is the only required field. However, Database connections using Flexible identifiers may need additional attributes like “phone_number” if this is set as a necessary attribute in the connection settings.

Related References