SAP Knowledge Base Article - Public

3623616 - Resolving application error java.lang.IndexOutOfBoundsException When Creating Custom MDF Records

Symptom

When creating new records in custom MDF object ​A, users encounter an application error with message: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0.

Environment

  • SAP SuccessFactors HCM Suite
  • SAP SuccessFactors Metadata Framework

Reproducing the Issue

  1. Go to employee’s profile 
  2. Navigate to MDF block ​A
  3. Click edit (pencil) icon and complete required fields
  4. Select Save and initiate workflow submission
    ​Result:​​ Application error occurs

Cause

An inactive document category assigned to an attachment field in MDF object ​A​ triggers system validation failure during record creation.

Resolution

Implement ​either​ solution:

​Option 1: Remove Attachment Configuration​

  1. Go to Manage Object Definition > Open object ​A​
  2. Remove document category assignment from the affected attachment field
  3. Save and publish changes

​Option 2: Reactivate Document Category​

  1. Navigate to Admin Center > Manage Document > Document Categories
  2. Locate the relevant document category
  3. Change status from ​Inactive​ to ​Active​
  4. Save configuration

See Also

3367503 - Unable to created a record in Manage Data for a custom MDF object

3591111 - Custom MDF portlet in the Latest People Profile not showing all fields or records created.

Keywords

application error, create custom MDF records, custom MDF, Manage object definition, Manage Document, document category, inactive, attachment field  , KBA , LOD-SF-MDF-OBJ , Object Definition & Field Related Issues , Problem

Product

SAP SuccessFactors Platform all versions