SAP Knowledge Base Article - Public

3782110 - "There Was an Application Error" When Submitting a Custom Onboarding Task with an Attachment

Symptom

  • An application error occurs when submitting a custom onboarding task that contains attachment fields.
  • Networks logs: {
      "error": {
        "code": "BadRequest",
        "message": "Operation failed because of errors.",
        "numericSeverity": 4,
        "details": [
          {
            "numericSeverity": 4,
            "code": "EmployeeHrisGoDmsErrorIncompleteMetadata",
            "message": "To associate the attachment dummy(2).png with ID 15,337, please provide the value for field subjectUser."
          } 

Environment

SAP SuccessFactors Onboarding

Reproducing the Issue

  1. Proxy as a user who can access the onboarding dashboard.
  2. Open the onboarding dashboard.
  3. Navigate to the affected custom onboarding task.
  4. Upload a file to one or more attachment fields.
  5. Submit the task.
  6. Observe that an application error is displayed.

Cause

The custom attachment field was configured with an incorrect Entity ID in Attachment Field Configuration, and the externalCode field in the custom MDF object was not editable.

As a result, when an attachment was added and the custom onboarding task was submitted, the system was unable to correctly associate the attachment with the MDF record, resulting in the generic error: "There Was an Application Error."

Resolution

Update the attachment and object configuration as follows:

  1. Navigate to Manage Data > Attachment Field Configuration.
  2. Locate the relevant attachment field configuration.
  3. Change the Entity ID to externalCode.
  4. Navigate to Configure Object Definitions.
  5. Open the object definition
  6. Select the externalCode field and open Details.
  7. Change the Visibility from Not Visible to Editable.

See Also

Keywords

onboarding custom task, application error, attachment upload, attachment field configuration, externalcode, subjectuser, incomplete entity metadata, EmployeeHrisGoDmsErrorIncompleteMetadata, entity id, manage data, configure object definitions, new hire tasks, document category, "To associate the attachment dummy(2).png with ID 15,337, please provide the value for field subjectUser.", attachment field. , KBA , LOD-SF-OBX-NHA , New Hire Activities (activities, tasks, buddy, equipment) , Problem

Product

SAP SuccessFactors Onboarding all versions