If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Database I/O Manager (DbIo) Plugin [Support Thread]

Database I/O Manager (DbIo) Plugin [Support Thread]

Started by lat9 on 1 Jul 2016, 6:09 PM · Views: 104,847

Results 241 to 260 of 628
28 May 2019, 12:04 PM
#241
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #241 by ryk

This may well be a daft question, but I've read the docs and this thread and have either missed the obvious or it isn't there.

How to import/export Specials data to/from the Specials table?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

28 May 2019, 12:48 PM
#242
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #242 by lat9

Ryk:

This may well be a daft question, but I've read the docs and this thread and have either missed the obvious or it isn't there.

How to import/export Specials data to/from the Specials table?
Not a daft question, nor did you miss the description in the documentation. There's not (currently) a ProductSpecials handler, but I've created a GitHub issue to identify and track the request.

4 Jun 2019, 10:59 AM
#243
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #243 by ryk

Thanks. Looking forward to seeing it.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

4 Jun 2019, 11:10 AM
#244
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #244 by ryk

Another possibly silly question. I can see that v_dbio_command can include ADD or REMOVE, but what should be the command for just updating? Leaving the column blank throws a fatal error.

All I've found in the readme is

DbIo introduces a new column (v_dbio_command) that a handler can conditionally enable to support record-removal and/or other commands. Starting with v1.1.0, the Products handling supports this field; set that column's value to REMOVE for a particular product and, if the product exists, it will be removed.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

4 Jun 2019, 11:18 AM
#245
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #245 by lat9

Ryk:

Another possibly silly question. I can see that v_dbio_command can include ADD or REMOVE, but what should be the command for just updating? Leaving the column blank throws a fatal error.

All I've found in the readme is
You've not given me much to work with! What version of DbIo, which import handler, what is the fatal error thrown?

4 Jun 2019, 1:18 PM
#246
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #246 by ryk

Thanks for getting back to me.

Version 1.5.4

Products

Unrecognized command (0) found at line #2; the operation was not performed.

(This was because file had 0 under v_dbio_command - changing it to ADD removed the error)

But my question should probably have been - is there a specific entry required in the v_dbio_command column when just updating a product

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

4 Jun 2019, 4:23 PM
#247
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #247 by lat9

Ryk:

Thanks for getting back to me.

Version 1.5.4

Products

Unrecognized command (0) found at line #2; the operation was not performed.

(This was because file had 0 under v_dbio_command - changing it to ADD removed the error)

But my question should probably have been - is there a specific entry required in the v_dbio_command column when just updating a product
When simply updating a product, the v_dbio_command column should be left blank (i.e. an empty string).

11 Jun 2019, 10:18 AM
#248
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #248 by ryk

Hi Cindy.

Zen Cart 1.5.6a
PHP: 7.2.18
MySQL 5.6.44
DBIO Version 1.5.4
Handler - Products

If we leave products_id blank, we get

zen_products.products_id, line #2: Value () is not an integer

Entering a products_id of 0 seems counter-intuitive but that then gives a successful import. Just want to check if this is expected behaviour?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

11 Jun 2019, 10:20 AM
#249
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #249 by lat9

Ryk:

Hi Cindy.

Zen Cart 1.5.6a
PHP: 7.2.18
MySQL 5.6.44
DBIO Version 1.5.4
Handler - Products

If we leave products_id blank, we get

zen_products.products_id, line #2: Value () is not an integer

Entering a products_id of 0 seems counter-intuitive but that then gives a successful import. Just want to check if this is expected behaviour?
Ryk, that's the expected behavior, albeit counter-intuitive, since the products_id value is (in the database) an integer.

Are you inserting or modifying products?

11 Jun 2019, 11:02 AM
#250
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #250 by ryk

Thanks. I'm testing with one of those clients who has a little bit of knowledge of the dangerous kind, doesn't like change (been a long time user of EasyPop) and generates his csv file from Access so the waters keep getting a little muddied! :smile:

We're adding, modifying and removing.

I found I had to download his file and change the format of his model number from "number" to "text" (he has alpha-numeric model numbers) , then re-upload it to get a successful import. This doesn't make sense to me as I thought that formatting was irrelevant in a csv file.

But your module is excellent and I'm gradually getting him to believe it! LOL

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

24 Jul 2019, 3:11 PM
#251
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #251 by lat9

I've just submitted v1.5.5 of the Database I/O Manager to the Zen Cart plugins for review and will post back here once approved.

 This release contains changes associated with the following GitHub issues:

#138: Double record-header included in first chunk of a split file.
#139: Don't record generated SQL when performing a full import (for performance).
#140: Disregard empty records during CSV import operations.

29 Jul 2019, 12:50 PM
#252
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #252 by lat9

lat9:

I've just submitted v1.5.5 of the Database I/O Manager to the Zen Cart plugins for review and will post back here once approved.

 This release contains changes associated with the following GitHub issues:

#138: Double record-header included in first chunk of a split file.
#139: Don't record generated SQL when performing a full import (for performance).
#140: Disregard empty records during CSV import operations.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2091

10 Aug 2019, 6:35 PM
#253
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #253 by lat9

I've just submitted v1.5.6 of the DbIo to the Zen Cart moderators for review and will post back when it's available for download.

 This release contains changes associated with the following GitHub issues:

#142: Correct split when fields contain embedded spaces.
#143: Correct PHP notice when imported CSV contains blank lines.
#141: Add select/unselect all for file delete operation.

13 Aug 2019, 2:49 PM
#254
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Post #254 by tmccaff

Thanks for the great mod. I just uploaded to 1.5.6c. I am trying to import my products. I downloaded csv from my supplier and getting this error when trying to import:

Please choose an upload file that is associated with the current handler (Products), e.g. dbio.Products.*.csv.

What does this mean exactly?

13 Aug 2019, 3:01 PM
#255
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #255 by ryk

You have to have the importing csv named as per the example in the error message and its content needs to be in the same format as the dbio output csv.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

13 Aug 2019, 3:04 PM
#256
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #256 by ryk

Further to that, it is highly unlikely that your supplier will be providing the data in the format expected by dbio/Zencart.

You should download your existing products using dbio and use that file as a template into which you copy the relevant information from your supplier's file to the appropriate columns.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

18 Aug 2019, 1:19 PM
#257
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #257 by lat9

lat9:

I've just submitted v1.5.6 of the DbIo to the Zen Cart moderators for review and will post back when it's available for download.

 This release contains changes associated with the following GitHub issues:

#142: Correct split when fields contain embedded spaces.
#143: Correct PHP notice when imported CSV contains blank lines.
#141: Add select/unselect all for file delete operation.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2091

20 Aug 2019, 1:16 PM
#258
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #258 by hasher

Hi All ,

Trying out DB I/O and looks good so far . I am having am issue with an error message of "The current import-file is missing these (v_products_id) required columns; the import is disallowed." . I did find a link to that message in this thread which related to the csv separator , which I tried changing.

I turned on the log file and have attache to this post . Could someone take a look and see what I am doing wrong ?

Thanks in advance !!

https://yadi.sk/d/6TYwKEApZS1A2g

20 Aug 2019, 4:11 PM
#259
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #259 by lat9

Hasher:

Hi All ,

Trying out DB I/O and looks good so far . I am having am issue with an error message of "The current import-file is missing these (v_products_id) required columns; the import is disallowed." . I did find a link to that message in this thread which related to the csv separator , which I tried changing.

I turned on the log file and have attache to this post . Could someone take a look and see what I am doing wrong ?

Thanks in advance !!

https://yadi.sk/d/6TYwKEApZS1A2g
The columns in the header don't seem to match the associated data (like I don't see where the v_products_model is supplied). If you are trying to add all new products, then you'll include a v_dbio_command column and set that column for all newly-added products to ADD.

What program did you use to create that csv-import; it's currently encoded as UTF-8 BOM instead of the expected UTF-8, and I don't know if that's affecting the import.

20 Aug 2019, 9:58 PM
#260
hasher avatar

hasher

New Zenner

Join Date:
Sep 2011
Posts:
77
Plugin Contributions:
0

Post #260 by hasher

Thanks Lat9

I will do my best to recreate the file as the export. I used VB.NET and and automated MS EXCEL to create file . I will make sure it saves as UTF-8!