Symptom
While generating document, we get the error:
The document cannot be generated as the following
placeholders with multiple values in the same row are
mapped to different base objects.
Environment
Employee Central - Document Generation
Reproducing the Issue
Generate the document
An error pops-up similar to below:
PS: here, in above sample error, the fields shown are the ones having issues. These fields might be different based on instance specific configuration.
Cause
The error is self explanatory. In our sample case, the issue was:
Tokens mapped to addresses are returning multiple values (most probably because the user has multiple addresses maintained). That is why only those tokens are showed in the error dialog.
Resolution
Possible solutions are:
- Remove the tokens mapped to Addresses as they seem to be returning multiple values.
- Use a rule mapping for the fields of Addresses so that you fetch a single address instead of all the available ones.
Kindly apply the same logic where a mapping can return multiple values.
Keywords
The document cannot be generated as the following placeholders with multiple values in the same row are mapped to different base objects placeholders with multiple values document generation error , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem