Discussion Forum: Thread 338348

 Author: BillM74 View Messages Posted By BillM74
 Posted: Apr 18, 2023 12:54
 Subject: Need help importing XML file into collection
 Viewed: 47 times
 Topic: Technical Issues
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

BillM74 (229)

Location:  USA, Texas
Member Since Contact Type Status
Dec 27, 2012 Contact Member Buyer
Buying Privileges - OK
Hello,
I am attempting to importing my minifig collection from brickset to bricklink.
The csv file exported from brickset was not recognized so I converted the data
to an XML which should be compatible with bricklink. Here is an example of my
output:

Msw0001aUC1
Msw0001bUC1

I am receiving errors that the item ids cannot be found. The ids are clearly
there, so this error appears to be just a generic response. I'm guessing
that there is something wrong with my XML file, but it appears to align with
the current documentation. Can someone point out where I am going wrong?

Thanks!
Bill
 Author: SylvainLS View Messages Posted By SylvainLS
 Posted: Apr 18, 2023 13:53
 Subject: Re: Need help importing XML file into collection
 Viewed: 30 times
 Topic: Technical Issues
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

SylvainLS (46)

Location:  France, Nouvelle-Aquitaine
Member Since Contact Type Status
Apr 25, 2014 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: BuyerOnly
BrickLink Discussions Moderator (?)
In Technical Issues, BillM74 writes:
  Hello,
I am attempting to importing my minifig collection from brickset to bricklink.
The csv file exported from brickset was not recognized so I converted the data
to an XML which should be compatible with bricklink. Here is an example of my
output:
{INVENTORY}
{ITEM}{ITEMTYPE}M{/ITEMTYPE}{ITEMID}sw0001a{/ITEMID}{CONDITION}U{/CONDITION}{SUBCONDITION}C{/SUBCONDITION}{QTY}1{/QTY}{/ITEM}
{ITEM}{ITEMTYPE}M{/ITEMTYPE}{ITEMID}sw0001b{/ITEMID}{CONDITION}U{/CONDITION}{SUBCONDITION}C{/SUBCONDITION}{QTY}1{/QTY}{/ITEM}
{/INVENTORY}
I am receiving errors that the item ids cannot be found. The ids are clearly
there, so this error appears to be just a generic response. I'm guessing
that there is something wrong with my XML file, but it appears to align with
the current documentation. Can someone point out where I am going wrong?

Hmm, although it shouldn’t care about unneeded fields:
— there’s no subcondition for minifigs,
— maybe add a color tag (should default to 0 = Not Applicable, which is what
you want for minifigs).

Also, be sure you’re using the My Minifigures tab.
 Author: BillM74 View Messages Posted By BillM74
 Posted: Apr 18, 2023 14:25
 Subject: Re: Need help importing XML file into collection
 Viewed: 28 times
 Topic: Technical Issues
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

BillM74 (229)

Location:  USA, Texas
Member Since Contact Type Status
Dec 27, 2012 Contact Member Buyer
Buying Privileges - OK
Ah ha! Adding the color element and removing the sub-condition one appears to
have worked. I did receive an "Ajax Error" message at the end, but the
data was still loaded. FYI I also removed line breaks.

As an aside, when data is exported from the collection; I noticed that the color
element was set to -1.

Thank you for your assistance!