Symptom
Image is added to a document generation template with placeholder getting its URL from a rule. In source code it shows up as:
<img style="height: 50%; width: 50%;" src="[[ApproverSignature2]]" alt="">
if the rule did not set valid value in URL or didn't find an URL, document displays below size parameters in document instead of blank:
" style="height:50%; width:50%" />
Environment
SAP SuccessFactors Employee Central: Document Generation
Cause
When a URL does not exist or is invalid, the system is displaying garbled HTML code with size parameters as the image URL is expected to have a value.
Resolution
In the rule to generate URL, add an ELSE condition as below to set space between quotes:
This will insert blank to URL if no URL is retrieved and the placeholder is ignored instead of displaying garbled text.
Keywords
style=, style, garbled code, HTML, HTML code, document generation, URL, URL Code, Image, Image code. , KBA , LOD-SF-EC-DOC , Document Generation , Problem
SAP Knowledge Base Article - Public