SAP Knowledge Base Article - Public

2753562 - Rule triggers twice in document generation

Symptom

In the document template mapping, when we use the 'Rule' as mapping type, the rule triggers twice while generating the document.

Environment

Employee Central - Document Generation

Reproducing the Issue

Generate the Document > Check the rule trace. You will see the rule is triggered twice.

Resolution

As per the current design due to the various validations to be performed at different stages, the placeholders are resolved twice which leads to 2 executions of the rules. This is an expected behavior by design to have the rule executed twice during generation.

If you are using a sequence generation, then the numbers will skip as sequence will be fetched 2 times.
To workaround, please divide the value fetched by sequence by 2 like below:

Keywords

ECT-72785, Rule executed twice, Rule trace, Rule execution log, Document generation rule, Twice, two, Rule trigger twice , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem

Product

SAP SuccessFactors Employee Central all versions