Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Importer tool: ampersand symbol (&) in XML value causes an error in parsing

Last updated on 17 June 2023 · 1 min read

Admin
M-Files Importer

Overview

Quite often imported values don't include the ampersand (&) symbol but in cases like customer names, it may be used. An example name of this type could be 'S&C Southwest Power' which may look like the following in an XML:

<Customer>S&C Southwest Power</Customer>

This will produce the following error:

image.png

This issue is not related to M-Files but rather how XML files work in general. This error occurs because the XML assumes ampersand is formatting rather than a value.

Solution

The ampersand value should be replaced with &amp; which means the ampersand is a value instead of XML formatting. In this example, the correct way to refer to the customer value is following:

<Customer>S&amp;C Southwest Power</Customer>

Now the XML file is read as expected and the customer metadata is added to S&C Southwest Power.

Still need help?

On this page