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.
XML Data source is skipping XML Node when importing the data. - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • XML Data source is skipping XML Node when importing the data.
KB0656228

XML Data source is skipping XML Node when importing the data.


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

Description

Xpath unable to parse node if the elements are formatted at the same node level

ex:

<abc>
    <xyz>
        <field1><subProp1>Some Val1</subProp1></field1>
        <field2><subProp2>Some Val2</subProp2></field2>
        <field3><subProp3>Some Val3</subProp3></field3>
        <field4><subProp4>Some Val4</subProp4></field4>
    </xyz>
</abc>

Steps to Reproduce

  1. Create an XML data source with XML from the Description.
  2. Set the XPath to /abc/xyz.
  3. Load All Records
  4. No records are inserted. Expected behavior is that 1 record will be inserted into the with 4 values, field1, field2, field3, field4. Each should have an XML fragment similar to "<?xml version="1.0" encoding="UTF-8"?><field1><subProp1>Some Val1</subProp1></field1>".

Workaround

Two potential workarounds include:

  1. Alter source XML to include carriage returns for all children nodes
  2. Specify 'expand node children' in the data source. This will insert the record and the child elements will be converted into additional columns. So the example above, the record will still include empty values for field1, field2, field3, field4, but will include values for additional columns field1/subProp1, field2/subProp2, field3/subProp3, field4/subProp4

Related Problem: PRB1158748

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?

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.