Symptom
- Error on import of workflows: wfStepApprover.approverType is a required field and cannot be blank., wfStepApprover.approverRole is a required field and cannot be blank.
- Error on transport of workflows: wfStepApprover.approverType is a required field and cannot be blank., wfStepApprover.approverRole is a required field and cannot be blank.
- How to import Workflow without step approver?
Environment
SAP SuccessFactors Employee Central
Reproducing the Issue
- Go to: Import Foundation Data
- Type: Workflow
- Import
- Receive error
OR
- Go to Configuration Transport Center.
- Try to transport a workflow.
- Receive the error in the job result log
Resolution
When importing Workflows without Step Approvers, the 'CC Role' template should be used instead of the 'Workflow' template.
If you are receiving the error when trying to transport a workflow which has Step Approvers, the issue may be due to one of the steps using the 'Position Relationship' role type. As per KB0946090, this configuration is not currently supported for the transport tool, and is being investigated in ECT-239526 with no current fix timeline.
As a workaround, you can export workflows from the source instance and replace the approverRole / CC Role of 'POSITION_RELATIONSHIP' type with the externalCode values of the 'PositionMatrixRelationshipType' picklist (ensure that it matches the one you've set up in the Workflow -> Relationship to Approver column from where a Position Relationship is configured).
After, use the 'Import Foundation Data' tool to import the .csv file in target instance.
See 2769017 - How To Export a Foundation Object for how to import the workflow.
See Also
Keywords
workflow, cc role, approverType, approverRole, step approver, wfStepApprover, foundation, ECT-239526 , KBA , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , Problem