I recently had my account suspended for non payment (bricklink), I swiftly made payment and upon my store opening I was welcomed to the surprise my Inventory doubled all listings are listed twice. As you can Imagine this is a nightmare to fix one at a time is there a way to go back in time or a master command of sorts to delete all duplicate listings? Any help would be greatly Appreciated.. I also have bricksync and that may have had something to do with it?
Comments
Explanation: a closed store on BL appears to have an empty inventory as seen from the API... and BrickSync tried to fix it.
Could I delete my bricklink store and load it from back up from brick sync file before my store reopened and doubled up?
blmaster on
Make absolutely sure your BL inventory is correct
blmaster off
wait for BS to do its thing
or, if you have a backup BrickStock file that you know is correct
Start Bricksync
blmaster on
Delete all inventory except 1 obvious part you can remove later
blmaster off
wait for BS to do its thing
add <backup file>
blmaster on
Delete the obvious part you left previously
blmaster off
wait for BS to do its thing
or
Start Bricksync
Copy the master BS file to a temporary file
sub <that file>
Verify your BO/BL stores are empty, removing any stray lots
add <backup file>
or
Start Bricksync
invblxml <backup file>
blmaster on
Delete your inventory on BL
Find the XML files created by invblxml in your BS directory (will look like blupload000.xml.txt)
Upload these to BrickLink in the usual way
blmaster off
wait for BS to do its thing
Any of these should replace your inventory here on BO with the correct one.
sub data/path_to_the_appropriate_backup.bsx
And thanks Hoddie
blmaster on
Delete all inventory except 1 obvious part you can remove later
blmaster off
wait for BS to do its thing
add <backup file>
blmaster on
Delete the obvious part you left previously
blmaster off
wait for BS to do its thing
add <backup file>
So that is just the number of the file under bricksync/data/backups? that was unaffected by the doubling?
sub data/path_to_the_appropriate_backup.bsx
That went straight over my head?
Yes, as in type that into BrickSync. You probably need to include the file location unless you copy the backup to the master directory.
I also corrected my Brick Owl store using there upload back up and my correct file but obviously it is temporarily, as sync and orders will further defragment my inventories until I correct brick link and clone and re sync them. I appreciate your help Hoddie do you have a pay pal id I would like to send you a little donation for the help when i get a chance. Also do you know how to delete all BL inventory in BL? I really want to learn all this stuff I use to be good with computer but the older I get and all the constant changes I find it more difficult as the years go by I use to run Windows 98 like a pro and use to do all kinds of game modding but after win 7 I lost all my savvy, I need to learn all the ins and out of both Owl and BL and Sync and also brickstock if there are any videos links or other resources you can direct me too for dummies that would be awesome too. Your a real asset to the community thanks again Also would like to thank Stragus for sticking around and still supporting the community as well. all community's need some solid pillars for support, I would like to maybe help in this role some day when I actually know about everything with confidence. I also would like to know how to fill in missing things for Brick Owl and be a contributor in that regards if there is any, how to video I am really a visual learner monkey see this monkey can do, monkey read well that is a different story for me.
sub data/path_to_the_appropriate_backup.bsx
Ok figured command out, but says up to date and doesn't change anything but the same file worked and added all parts in Brick Owl drop file upload?
Yes, the master directory is the one with the BrickSync.exe file in.
So
add <backup file>
becomes
add data/backups/<filename>.bsx
Or you can copy the relevant backup file to the master directory and use
add <filename>.bsx
Or, if following Stragus' example, use sub instead of add
Just in case you don't know, and to help avoid future issues, it's important to understand that BrickSync holds the master inventory file. Any changes made independently on BO and BL will be lost at some point once BS notices. The only exception to this is with careful use of blmaster.
BL does limit how much you can copy into their inventory import page. Use of the invblxml within BS creates multiple files, each of which will be lower than the allowed limit. It's not a feature of BS I've ever made use of though so I can't speak from experience, only what the documentation says.
Honestly though, the best way to sort out your problem is to get your inventory correct on BL first, using the method I put at the top of my first post. Or, if you have a backup you're confident is correct, the second method I put. At least, that's how I've always done it.
Good luck!
First, you need to find the exact backup file that holds the inventory just prior to duplication. Then, you "sub" it. That's it, done.
Finding that backup BSX can be done by inspecting them in BrickStock, or through the BrickSync logs.
This method would also preserve all changes applied after the unfortunate duplication, including blmaster changes and received orders. It's really just a "sub" command with the right BSX backup file...
Example my back up file is in directory C:\users\Sean\desktop the file is 00387.bsx
I have it saved on my desktop
add <backup file>
I need that translated I have tried doing it but the command always gives me error because I don't know where to put all the [>" What does back up file substitute just the file name the complete file path?
add 00387.bsx
Command Aborted! to override the warnings, just append the -f flag to force the command
You can also restore a backup by:
#0 Shut off BrickSync
#1 Replace data/bricksync.inventory.bsx with the backup BSX file
#2 Launch BrickSync
#3 Type "sync"
You can subtract orders received after restoring a backup, using the "sub" command and the appropriate BSX files in data/orders/
You can also restore a backup by:
#0 Shut off BrickSync
#1 Replace data/bricksync.inventory.bsx with the backup BSX file
#2 Launch BrickSync
#3 Type "sync"
I suppose I would also have to wait 24 hours because my API usage is used up?
@Bulkbrickvault You can use the "resetapihistory" command to reset API usage tracking to zero. BL claims (or claimed, years ago?) to have daily API usage limits, but apparently you can just go over and nothing happens.
#0 Shut off BrickSync
#1 Replace data/bricksync.inventory.bsx with the backup BSX file
#2 Launch BrickSync
#3 Type "sync"
or am I fine the way it is?
My original suggestion with "sub" would have kept the later blmaster changes and deducted orders. After restoring the backup, you'll also have to fix these...
the biggest thing is I lost my time stamps on BL for listed on and last sold on, Had I not deleted my store this method would have likely maintained that data, oh well. Thanks a bunch Brick owl is still updating I will rename back up file and replace inventory file as suggested.