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
- Proxy as a user who can access the onboarding dashboard.
- Open the onboarding dashboard.
- Navigate to the affected custom onboarding task.
- Upload a file to one or more attachment fields.
- Submit the task.
- 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:
- Navigate to Manage Data > Attachment Field Configuration.
- Locate the relevant attachment field configuration.
- Change the Entity ID to externalCode.
- Navigate to Configure Object Definitions.
- Open the object definition
- Select the externalCode field and open Details.
- Change the Visibility from Not Visible to Editable.
See Also
- Application error for custom tasks with attachment field - Onboarding
- "There was an application error" in custom tasks - Onboarding
- Submit Custom Task Gives Error - Onboarding
- Application error on custom task - Onboarding
- Custom task could not be completed due to "There was an application error" - Onboarding
- Error when saving uploaded attachment in Additional data collection step - SAP for Me
- Additional Data Collection Document Uploads from the Onboarding Dashboard - Onboarding
- Error occurs when saving MDF data with attachment: incomplete metadata for subjectUser
- Document Management Service: Document categories overview
- Attachment field configuration: document category behavior
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
SAP Knowledge Base Article - Public