Importing the XML into Excel -> editing -> exporting error?

Posts: 67
Joined: 08/10/2007

Ok, I'm trying to do this - export all my products as an XML, import that XML into Excel spreadsheet, edit and add new products/categories/etc in there, and then export it into XML that I will upload in the ubercart and maintain all the products like that (just easy to control all the inventory).

Now, the problem happens at the importing and exporting from Excel stage.

While importing the data, I get this error:


there is a problem with the specified XML or schema source. click OK to have excel create a schema based on the XML source data

so sure, I click OK, and it creates a pretty decent spreadsheet of all the categories, products, attributes, etc.

now, when I try and export that same sheet (without even editing it a bit), I get these errors:


store_map is not exportable because it contains the following:
- list of lists
- a mapped element's relationship with other elements cannot be preserved
- denormalized data

So, there goes that idea of using Excel to manage all the products.

Any suggestions here? What do you guys use instead? And how do you manage this offline, if at all?

Posts: 67
Joined: 08/10/2007

also, when importing the same XML file that I get through the export function in ubercart, I get this error:

File uploaded successfully.
warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 793.

and no changes occur, apparently...

Posts: 177
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

ya, you want to export as a CSV file and then import it again from CSV. I'm working on the importing at the moment but won't do an export as its not required by my project. If you maintain your data in EXcel they there should be no reason to export all store data to Excel as you just make changes in Excel and then import again.

_You only need one master copy_

Order/customer data would still need to be exported I guess but not re-imported.

--

suffering from too much information

Posts: 67
Joined: 08/10/2007

well, in order to start working on the data in Excel, I need to export all the data from the store first... and right now, I just noticed, there is no feature to allow me to simply export the WHOLE store - instead I have to go thru each category and select each product for export.

any workaround for that issue?

Posts: 329
Joined: 08/28/2007
Early adopter... addicted to alphas.Not KulvikTheminator

Hi Miso, you can browser the categories with the uBrowser and select each product in that category you wish to export. The to add more just continue browsing through your categories adding more products to the export. At first this seems daft but then I realised that this a much better way than just exporting the whole lot. For those instances there maybe should be a button to export all.

Posts: 67
Joined: 08/10/2007

yes, I've been looking for that button too... because most of the time I just want to export the whole database.

Posts: 3
Joined: 10/14/2008

I messed with editing the XML export file in excel and posted my inconclusive findings at:

http://www.ubercart.org/forum/support/6158/xml_import#comment-28495