[ic] Correcting the products database

Gert van der Spoel gert at 3edge.com
Sat Jan 16 19:27:55 UTC 2016

> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of David Etheredge
> Sent: Saturday, January 16, 2016 20:48
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] Correcting the products database
> It almost did the job. I got an error "products not a valid database ...
> failed". The cart would not load.
> However, it built a table called "New_products". I deleted the
> .new_products.sql, replaced the original products.sql and .products.sql,
> restarted again. This time it came up with an empty products database and
> imported the updated version.
> Up and running. for this part.

If I understand you correctly you are saying: 
- you tried the removal of the .products.sql and placed a file called
'products.sql' in the products directory
- the result was the creation of a new_products table and an error "products
not a valid database ... failed"
- then you removed the .new_products.sql and put back products.sql and
.products.sql and restarted 
- by now your products table was empty
- then you used the admin import to upload the new products file and this
worked without a problem ... 

The process of importing updates creates those new_xxxxxx files. 
If the process finishes successfully it is renamed to xxxxxx (so
new_products.txt would be renamed to products.txt).

Now I thought that usually the database files had an extentions of .txt  ..
So a product file to update would be called 'products.txt' ...
The files with the name products.sql (or .products.sql) are the system files
... Usually you either have products.sql or .products.sql.
But perhaps somewhere in your update it has changed convention and you are
now getting .products.sql and used to have products.sql (check the time

So if you had not named your file products.txt that would be the easy
answer, but I doubt it's this easy. :)

> BTW, I am very appreciative of the fast response and good support. It is
> improved over the past.
> Thanks,
> David
> ----- Original Message -----
> From: "Stefan Hornburg (Racke)" <racke at linuxia.de>
> To: <interchange-users at icdevgroup.org>
> Sent: Friday, January 15, 2016 1:23 PM
> Subject: Re: [ic] Correcting the products database
> > On 01/15/2016 07:43 PM, David Etheredge wrote:
> >> Using IC 5.10.0 and Strap
> >>
> >> #1) I would like to be able to load products from the products.txt file
> >> rather than use the items editor.
> >> This allows me to make changes using a spreadsheet. How can I tell
> >> interchange to read the products.txt file  and if there are changes,
> >> dump the database file and rebuild from products.txt? The import
> function
> >> only adds new products and the delete items function fails.
> >>
> >
> > There is either a products.sql or .products.sql in the same directory as
> > products.txt. If you delete this *.sql file,
> > it will rebuild the products table from the products.txt when you
> > Interchange or reconfig the catalog.
> >
> > Note: I always flag my Interchange databases with "NoImport" to prevent
> > this scenario, as I don't like this
> > approach.
> >
> > Regards
> >         Racke
> >
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users

More information about the interchange-users mailing list