15
Views
1
Comments
Solved
[OfficeUtils] Incomplete Placeholder Substitution in Export
officeutils
Service icon
Forge asset by Bruno Gonçalves
Application Type
Service

Hi Guys,

I am trying to replace two placeholders, #data and #data2, with empty text, but in Word_Export_SetText7, the system only recognizes #data and writes the '2' in the document.



The output result is:



Thanks.

UserImage.jpg
Bruno Gonçalves
Solution

Hi Tiago,

This is happening because the "#data" placeholder chars chain is partially contained on the "#data2" placeholder. So the replacement of the placeholder "#data" also fetches "#data2", leaving the "2" behind.

To tackle this you can either pick different names for the placeholders, or add a terminator char to your placeholders. For example "#data#" and "#data2#".

Best,

Bruno

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.