Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Service Catalog Order guides or Catalog Items display a message "The element type 'g2:evaluate' must be terminated by the matching end-tag '</g2:evaluate>'." - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Service Catalog Order guides or Catalog Items display a message "The element type 'g2:evaluate' must be terminated by the matching end-tag '</g2:evaluate>'."
KB0681239

Service Catalog Order guides or Catalog Items display a message "The element type 'g2:evaluate' must be terminated by the matching end-tag '</g2:evaluate>'."


1363 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms


After upgrading to Jakarta, Service Catalog Catalog Items or Record Producers may no longer be functional and instead the system may display errors like the ones below: 

  • "The element type 'g2:evaluate' must be terminated by the matching end-tag '</g2:evaluate>'." or,
  • "The element type "j2.while" must be terminated by the matching end-tag '</j2:evaluate>'." 

Release


Jakarta and later releases

Cause


  • Stricter enforcement of jelly tags in compliance with coding best practices now require a close tag for every open tag, example '<j2:' open tag requires a matching close tag ' </j:'
  • Customers with a customized version of the 'com.glideapp.servicecatalog_checkout_view' UI Page could run into this issue in different areas within Service Catalog depending on where the system encounters the missing close tag issue

Resolution


  • Switch to the attached out of box Jakarta Patch 7 XML file of the 'com.glideapp.servicecatalog_checkout_view' UI Page. Please be sure to have a backup of the customized version, prior to importing the attached XML of the UI Page into instance
  • Alternately, customers may fix the issue in their customized version of the  'com.glideapp.servicecatalog_checkout_view' UI page by adding the missing close tags example ' </j:' as appropriate within the HTML script of the UI page
  • To propagate the fix to remaining instances, customers may use Update Sets or Export/Import XML functionality provided by ServiceNow as per the links below

Additional Information


  • Export/Import >>>>> https://docs.servicenow.com/csh?topicname=c_ExportAndImportXMLFiles.html&version=latest 
  • Update Sets >>>>> https://docs.servicenow.com/csh?topicname=get-started-update-sets.html&version=latest

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

No attachments found

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.