SAP Knowledge Base Article - Public

2872285 - MDF Import fails with error "You are not allowed to enter the value for the field externalCode with the type Auto Number in the object. . ."

Symptom

You are creating a record for MDF object with External Code/ any field set to Autonumber and you receive the error "You are not allowed to enter the value for the field externalCode with the type Auto Number in the object"

Environment

  • SAP Successfactors HXM Suite
  • Metadata framework (MDF)

Reproducing the Issue

  1. Go to Import and Export Data
  2. Import data for any MDF object with External code/ any field set us Autonumber
  3. Select the csv file for import where there is a value in place for a field that is set as Autonumber and proceed with the import
  4. Go to Monitor Jobs and check the status of Import
  5. Import fails with error "You are not allowed to enter the value for the field externalCode with the type Auto Number in the object XXXX to prevent data corruption. The value for this field type is always set by the system."

Cause

This is because "Autonumber" type of field should not have value during import as the system is assigning a value for this field automatically.

Resolution

Leave the field set as "Autonumber" to blank when performing import. The Import will be successful and the system will be the one to supply value to this field after the import has been completed.

Keywords

Autonumber, You are not allowed to enter the value for the field externalCode with the type Auto Number in the object, MDF Import, Autonumber Import , KBA , LOD-SF-MDF , Metadata Framework , LOD-SF-MDF-IMP , Import and Export Issues , Problem

Product

SAP SuccessFactors HXM Suite all versions