Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31130

Xml processing fails, but succeeds after copy paste

$
0
0

I have an .xml file, obtained by using the export function of some software our customer uses, which he wanted to analyse with PowerBI. However, trying to load it with GetData results in the following error:

 

Details: "Xml processing failed. Either the input is invalid or it isn't supported. (Internal error: Name cannot begin with the '.' character, hexadecimal value 0x00. Line 1, position 2.)"

 

The .xml file doesn't have a period at this position, and no names seemed to start with a '.'. After some trial and error, I found that if I open the xml in notepad or sublime, copy it's entire contents with Ctrl-C, then paste it in a new xml file, save it, and upload that one, PowerBI loads it with no problem. This new .xml file also is significantly smaller than the original (110 vs 55 MB).

 

I can open the files and copy paste its content, but on the customer's computer this is difficult due to the file's size. Plus, the files are to be loaded into a blob storage so that PowerBI can combine their data. If there's one un-copy-pasted file in the blob storage, the refresh of the whole published dataset will silently fail from there on out, until the offending file is found and removed. This makes the copy-paste trick unreliable as a permanent fix.

 

Does anyone know what could be causing this problem, and what would be an easy way to fix it? If needed, here are two small sample files, one working, one not working.

 

http://s000.tinyupload.com/?file_id=62018167755112980112 The not-working file

http://s000.tinyupload.com/?file_id=00008105647481151500 The working file.


Viewing all articles
Browse latest Browse all 31130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>