Symptom
- Unable to edit data for the external code field in the MDF child object while creating a new effective dated record.
- Error "change is not allowed during Insert operation!. ."
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP SuccessFactors HCM Suite
Reproducing the Issue
Edit an Child Object changing the external code, the following error appears "change is not allowed during Insert operation!. ."
Cause
The error "change is not allowed during Insert operation!. ." occurs when parent object "Effective Dating" field is set to "Multiple Changes Per Day" or "Basic", since the child MDF Object is using the externalCode field as any other standard or custom field that can be used to save the different data in the MDF Objects. Since the externalCode field plays the role of a Primary Key field for an MDF Object, changing its data each time while adding a new record for different effective date results in error.
Resolution
MDF enforces that the external code field stores only values that will not change each time a new effective-dated record is added. Attempting to change the external code via the standard edit (pencil icon) on a child object will result in the error. To edit an existing external code on a child object, you must navigate to "History" and click Edit from there — direct inline editing of the external code is not supported in this scenario.
Additional Restrictions to Be Aware Of:
- If existing data already exists for the external code field, its data type cannot be changed either.
- Once an external code is assigned to a foundation object, it should not be changed, as this can lead to data inconsistencies.
See Also
Basic Configurations in Object Definition
2876809 - Unable to change external code type in a Custom MDF Object
Keywords
edit, object, effective date, external code, externalcode, MDF, Multiple Changes Per Day, Effective Dating, child, parent, change , KBA , LOD-SF-MDF-MGD , Manage Data - Create, Update & Delete , LOD-SF-MDF-UI , UI Config, Layout & Rules , Problem
SAP Knowledge Base Article - Public