• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

When field not found in body the variable is left in document

New Here ,
Oct 11, 2024 Oct 11, 2024

Copy link to clipboard

Copied

Generate document from Word template

 

Between August 12th and August 15th 2024 my reports started leaving variables where a field was not found in the body.

 

My body only includes fields with values, prior to this change the variablelike , {{feature.attributes.`fcomments`}}, would be removed if the field was not found (due to a null value).  Now my report keeps the variable {{feature.attributes.`f_3comments`}} .

 

Seems like something has changed on Adobes side.  Do I now need to add logic to check to fields?

Views

86

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 11, 2024 Oct 11, 2024

Copy link to clipboard

Copied

LATEST

For now, yes, perhaps just quickly setting to "". I *kinda* remember some internal discussion on this. Another option is to use a default value in the tag itself, see Default value here: https://developer.adobe.com/document-services/docs/overview/document-generation-api/templatetags/#ta... (or optional)

 

What I don't see in the docs is a clear, "we do so and so if the value is not there." Nor do I see a release note concerning this if indeed it was intentional. I'll file an issue internally to document this, and if we did change it, to remind us to note such stuff.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources