Using the XML file in Bricklink
Scourch a commencé cette discussion dans General Discussion

Hey all. I recently joined and found four files from some really neat looking models that I wanted to import into Bricklink. I could not find any .lxf files but instead the Bricklink XML file. So I downloaded that and copied and pasted the contents into Bricklink and was met with this error...

"Invalid File Format: Content is not allowed in prolog."

I've tried two more XML files and they all say the same thing. How do I got about getting these models into Bricklink?

5 réponses · Page 1 sur 1

Hi,
The bricklink XML starts with <inventory> and ends with </inventory>. If you open the xml in a browser it's mostly prepended with "This XML file does not appear to have any style information associated with it. The document tree is shown below." or something close to that. That should not be copied into the box and results in the warning you have given. It may be better to open the file in notepad or something or to view the source of the file instead of the rendered result in a browser.

If you get other errors involving brick references, let me know the models and I'll fix it in our database. 😉

Thank you for the help. I think I did get a brick reference error though. It says..

"The following items in the XML file are invalid or do not exist in the Bricklink Catalog.

Please fix the following errors:

Item No: 14696"

This is for https://www.mecabricks.com/en/models/mWRaZ9rZvpZ. I get these types of errors all the time when importing a model via their .xlf It will say "Part not found in catalog. item No: 24317" so I'll go search that part and lo and behold, it is in their catalog. So I have no idea why it tells me it isn't.

Also, these XML files comes with the two files, one titled whatever it is, the other the same thing but with - noInBL. I assume that means "Not in Bricklink?" How does this help me? Do I need to go into the original XML and remove the bricks it mentions?

Hi,
Mecabricks does convert the part references to bricklink references. But the feature isn't much used so here and there is faulty data.
For 14696, I suggest to replace it with 3711. There's a minor difference between the 2 parts. (If you replace the value by the other value, the error will go away.)

The gold ingot pieces used in the battle mechs does not have a bricklink part reference set in Mecabricks. Therefore they ended up in the "not in bricklink list". They do not appear in the "bricklink list", so you don't need to remove them. You can add below items just before the </INVENTORY> to the bricklink list to get it fixed fast.

<ITEM> <ITEMTYPE>P</ITEMTYPE> <ITEMID>99563</ITEMID> <MINQTY>8</MINQTY> <COLOR>59</COLOR> </ITEM> <ITEM> <ITEMTYPE>P</ITEMTYPE> <ITEMID>99563</ITEMID> <MINQTY>8</MINQTY> <COLOR>63</COLOR> </ITEM> <ITEM> <ITEMTYPE>P</ITEMTYPE> <ITEMID>99563</ITEMID> <MINQTY>8</MINQTY> <COLOR>80</COLOR> </ITEM>

After that, your wanted list should be complete and include all parts needed.

I’m having the same issues can i have help?

The following items in the XML file are invalid or do not exist in the Bricklink Catalog.
Please fix the following errors:
Item No: 15672

I don’t know what to do….

Publicité
3 participants
Avatar de Sim
Avatar de EBMang

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.