2610703 - Custom MDF: multiple internalCode for same external code error

SAP Knowledge Base Article - Public

2610703 - Custom MDF: multiple internalCode for same external code error

Symptom

  • Found more than 1 internal code for same external code(upper). The same externalCode record has been already created

Environment

  • SuccessFactors Cloud HCM: MDF
  • SuccessFactors Cloud HCM: UI
  • SuccessFactors Cloud HCM: Workflows

Reproducing the Issue

  1. Create a custom MDF Object and assign a workflow
  2. Create data for the object via the MDF portlet with any effectiveStartDate which triggers a workflow. This data is not yet approved and is currently not seen on the portlet.
  3. Now, try inserting data on the same record with a different effectiveStartDate
  4. You will get an error as below:
    • Found more than 1 internal code for same external code(upper). The same externalCode record has been already created

Cause

When creating data for the MDF object which has a workflow approval process, no new record can be inserted on the same instance of the object unless you have the initial record approved.

If the initial record is still pending for approval, the system cannot differentiate if the subsequent record being inserted with a different effectiveStartDate is a Create or an Insert operation on the given externalCode and hence results in the error:

  • Found more than 1 internal code for same external code(upper). The same externalCode record has been already created

Resolution

If you want to insert a new record for an existing instance of the object, make sure that the initial record has been approved.

Keywords

MDF: Metadata Framework
workflows
multiple internalcode , KBA , LOD-SF-MDF-OBJ , Object Definitions All Object Definition Creation , LOD-SF-MDF-UI , UI Config, Rules, Custom MDF Portlets on V12 & PP3 , LOD-SF-MDF-MGD , Manage Data - Creating/ Modifying Data , Problem

Product

SAP SuccessFactors HCM Core all versions