This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

M-Files Importing with xml not working

Former Member
Former Member
Hello everyone,

We are having some problems and we hope someone can help us.

Issue is with importing files trough "Connections to External Sources>File Sources" specifically with XML.
I will try to explain in detail what is the problem and also what we tried.

M-Files Admin Version 2015.3 (11.3.4330.143) (we cant update yet because of some internal reasons)



1st time testing import to M-Files so I made 2 types just for testing one without XML and one with xml.

Here are the metadata from imported file without xml:


And here are settings:




And here are my settings for import with xml that isnt working.
Employee metadata is set to Use value as ID, rest are set to Name.






here is my xml


files on server:



What we tried:
for each property that we need to be read from xml we tried that only one property would be read by xml, and nothing worked (example everything was predefined exept name, which was defined with xml)

Tried experimenting with xml (everything in 1 row, tested with different names for document, name, week etc, tested with different encodings)
Tried using / in date
Tried employee with name instead of ID

File doesnt get imported at all.

Sorry for bad english or bad explanations.
If you need some more info pls say so.

Thank you very much for reading and best regards
  • In your xpath configuration you have typed "/document/name". It should probably be "document/name" (without the first "/")
    The process will fail if there is not one xml file for every single other file to be imported. Please check that you don't have any unaccompanied files in your import folder.
    The date format could also be an issue if your server does not recognize the format used in your xml file.
    The Windows event log on your server will show error messages that can be helpful if you still get errors.
  • Former Member
    Former Member
    Thank you very much,

    found the problem and its all working now.
    So I changed "document/name" as bright-ideas.dk sugested, that didnt do the trick, but what did is to check server event viewer and there was an error that I googled and sugestion was to change xml encoding from UTF-8 to UTF-16 and that did the trick.

    Thank you very much
    and best regards!