Unable to generate a document, we get error as 'this._initValue is undefined' on clicking generate or download.
Employee Central - Document Generation
Reproducing the Issue
Go to Admin Centre > Generate Document > Select a template > Click on Download / Generate and Email > error pops up.
The placeholders in Admin Centre > Manage Document Template might have space at the beginning or after the end of placeholder. Example: [[ **] or [[** ]] [[ ** ]]:
PS: Space in placeholder name itself is allowed: like [[** **]]
Remove the spaces in placeholder names at the beginning and end of placeholder to correct the issue.
Also we do not recommend using special characters in placeholders name, like [[DD-MM-YYYY]], instead please use [[DD]]-[[MM]]-[[YYYY]] wherever possible.
this._initValue is undefined error on document generation generate document , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem