Symptom
- When attempting to Upload/ Re-Upload an existing document template from Admin Center → Maintain Onboarding and Offboarding Document Templates, the following error is displayed: “ChangeSet index 1 - ??? HCP Error Message: Http Status Code 400??? File Could not be updated in PFS.”
- When attempting to delete the document template, the following error is displayed: “ChangeSet index 1 - Deletion of Template not allowed! At least it is used in active process XXXXXX.”
Environment
SAP SuccessFactors Onboarding
Reproducing the Issue
- Navigate to Maintain Onboarding and Offboarding Document Templates
- Click on add new document template
- Upload the document
- Select any id, process type, name and category
- Make sure to select the locale as "English (DEBUG)"
- Upload
- Encounter the error message
(or)
- Attempt to reupload a document in "Maintain Onboarding and Offboarding Document Templates".
- Observe the error: "ChangeSet index 1 - HCP Error Message: Http Status Code 400; File Could not be updated in PFS."
Cause
Cause 1: The document was uploaded with the locale English (DEBUG)
Cause 2: The issue occurs because the document template was created with a Form ID that does not comply with the standard requirements.
Resolution
Solution 1: Upload the file in other language than English (DEBUG)
Solution 2: In SAP SuccessFactors Onboarding, the Form ID:
-
Must not exceed 50 characters.
-
Must contain only letters, numbers, or underscores (_).
-
Becomes read-only after the document template is created and cannot be modified.
Since the Form ID cannot be updated after creation, the document template must be recreated using a compliant Form ID.
When trying to delete if you get the error: ChangeSet index 1 - Deletion of Template not allowed! At least it is used in active process XXXXXX, This means that there is an active onboarding process and please do complete the below steps:
-
Navigate to Manage Data.
-
Select the Process object.
-
Search for the Process ID displayed in the error message.
-
Verify that the process is active.
-
Select Take Action → Make Correction.
-
Update the process status to Completed.
-
Save the changes.
-
Navigate back to Admin Center → Maintain Onboarding and Offboarding Document Templates.
-
Delete the existing document template.
-
Create a new document template using a Form ID that complies with SAP requirements.
After creating the new template, ensure that:
-
All required placeholder mappings are recreated.
-
Any business rules referencing the previous Form ID are updated.
-
Any onboarding process flows or configurations referencing the old template are updated accordingly.
See Also
Keywords
english, debug, language, locale, file, document, form, Maintain Onboarding and Offboarding Document Templates, error - ChangeSet index 1 - HCP Error Message: Http Status Code 400; File could not be uploaded to PFS, obx, OBX , KBA , LOD-SF-OBX-DOC , Generation of Documents using PFS , Problem
SAP Knowledge Base Article - Public