Importing/updating products - PRODUCTID Field.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Smurf
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Sat Oct 27, 2007 8:03 am

Importing/updating products - PRODUCTID Field.

Post by Smurf » Thu May 01, 2008 7:49 pm

I am trying to figure out how to update products via CSV and Dataport.

Here is my situation.

All my product information is maintained in a database. I am using Excel and querying what I need to creating a CSV file for uploading to AC7. This works fine and a batch of products imports correctly.
The problem comes when I try to update the products through Dataport. Dataport simply imports the products under a new "ProductID", creating duplicates. I assume it is not checking the "SKU" field for duplicates. I need to update our products daily.

How should I go about this?

I tried assigning the SKU to the productID field. This did not work. Our SKUs contain numbers letters and dashes. I am not sure if this was the problem.

Any thoughts would be appreciated. :)

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Importing/updating products - PRODUCTID Field.

Post by AbleMods » Thu May 01, 2008 10:15 pm

ProductId is the unique indentifier in the AC7 data class for product records. I believe you have to include the ProductId value in your import file if you want the data client to match the incoming data up to an existing product record. If the value is not included in the incoming data, the data client has no choice but to build a new product record.

SKU is not a unique field so the data client will not test it so far as I know.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Smurf
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Sat Oct 27, 2007 8:03 am

Re: Importing/updating products - PRODUCTID Field.

Post by Smurf » Wed May 14, 2008 11:21 am

Just when I thought I was making good headway. hehe

Yeah you are right.... I have to have the productID to update. This is making things complicated. :)

It seems like a major oversight not to reference the SKU on an update. I can't think of any reason to have duplicate SKUs and without updating on SKU, Dataport will not be useful to anyone handling inventory in a separate system (which is a good portion of users). I can't help but wonder if I am missing some obvious solution here :)

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Importing/updating products - PRODUCTID Field.

Post by AbleMods » Wed May 14, 2008 4:17 pm

You have the correct understanding now.

I've battled it for many months. Eventually I wrote some programming that let me relate to the AC7 data by SKU instead of ProductId. It's not elegant, but it gets the job done for me.

There are several programming design advantages to making the ProductId value a unique identifier. But from a data management standpoint, I think complexity was increased as a result.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

europhile
Ensign (ENS)
Ensign (ENS)
Posts: 14
Joined: Fri Jan 23, 2009 3:05 am

Re: Importing/updating products - PRODUCTID Field.

Post by europhile » Tue Feb 03, 2009 9:36 am

This is indeed somewhat frustrating, because otherwise the Dataport is just the ticket! I note there was a Poll on Smurfs similar thread, and folk are saying its critical!

The biggest and most fundamental problem I see is that to avoid duplicating everything on new uploads, you have to keep removing all live categories (and thus their products). Annoying :evil: , and this also wipes out the Featured Items, Top Sellers etc, and maybe other things I don't know yet! I can't go on wiping and recreating all this everytime I need to upload a few new/updated products.

If I synchronise the AC ProductID with my Import SKUs (ie. update my import records by adding the live AC ProductId) and then upload with that ProductID, does it handle it without issue, and only add brand new SKUs? Can you leave the ProductID blank on new Import products so that AC will create the new ones with its Autonumber? If that works ok, then it is a workable solution for now (more work, admittedly).

Any answers and experiences (and heads up from dev team) gratefully received to minimise the hassle for us poor data managers. Phil.

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Importing/updating products - PRODUCTID Field.

Post by kastnerd » Tue Feb 10, 2009 6:32 pm

europhile wrote: Can you leave the ProductID blank on new Import products so that AC will create the new ones with its Autonumber? If that works ok, then it is a workable solution for now (more work, admittedly).

Any answers and experiences (and heads up from dev team) gratefully received to minimise the hassle for us poor data managers. Phil.
Yes you can leave it blank and it will autonumber the productid

europhile
Ensign (ENS)
Ensign (ENS)
Posts: 14
Joined: Fri Jan 23, 2009 3:05 am

Re: Importing/updating products - PRODUCTID Field.

Post by europhile » Wed Feb 11, 2009 2:42 am

Thanks kastnerd, yes can also confirm now, new ProductIDs are created (from records without ProductId) in a batch including existing ones. Had a chance to test out more.

The most important thing (to avoid having to delete and recreate all products each time) is: If you do include the ProductID, will changed records be updated? And the answer is... Yes They Do! Note the ProductId is case sensitive on Import, then it works great.

It's a bit of fiddling to synchronise the exported ProductId back to your Import csv file (Access etc is very handy for managing your base product list) but I think it's worth it. Sometimes, the SKUs may change, especially when first creating the store and new batches are added (always best to use your own SKU of course, not the manufacturers, as they might be duplicated by another manufacturer) - and using the ProductId instead of SKU means you can quickly update them. Cheers, 8)

Post Reply