10354 All major always 12-29-09 15:06 01-22-10 13:50 RUSSELL gmoskowitz normal resolved none none no change required 0 Export Import Errors Exported contents from "Item List Master" to csv file. Tried to import the file as is into a new database and received the following error below:

ERROR Record 1: ERROR: new row for relation "item" violates check constraint "item_sold_check"
QPSQL: Unable to create query
ERROR Record 2: ERROR: new row for relation "item" violates check constraint "item_sold_check"
QPSQL: Unable to create query

Thank you.
annecote 01-12-10 17:08 Russell,

Are you still experiencing this issue? Where are you exporting from? Are you mapping the item sold field to the correct column in the item api view? In our item view this column is labeled "item_is_sold".
gmoskowitz 01-22-10 13:50 This is not a bug.

The CSV export feature in the xTuple ERP application dumps the displayed contents of the table view and is intended for import into other applications for further manipulation or presentation. It is not intended for dumping the entire contents of a table for loading another xTuple ERP database.

Almost none of the displays in the xTuple ERP application contain enough data to meet the minimum requirements for their respective tables. In fact, many of the displays combine data from multiple tables and so there is no appropriate destination for their data.
11487 All feature always 06-01-10 10:34 06-09-10 14:51 Rydeljh gmoskowitz normal closed none none fixed 0 log of errors cannot be printed Tool does not provide any method to print a log file when errors are received.

When only 1 error type is shown it is not a big deal, however if you get errors on specific records when importing 15K of records it is nice to be able to print the log file out.
svn 06-08-10 13:44 Revision: 9454
          http://postbooks.svn.sourceforge.net/postbooks/?rev=9454&view=rev [^]
Author: gilmoskowitz
Date: 2010-06-08 17:43:56 +0000 (Tue, 08 Jun 2010)

Log Message:
-----------
issue 0011487 - add ability to print contents of log window

Modified Paths:
--------------
    csvimp/trunk/plugin/logwindow.cpp
    csvimp/trunk/plugin/logwindow.h
    csvimp/trunk/plugin/logwindow.ui

mmcbride 06-09-10 14:51 verified fixed in 041
8807 All feature always 05-08-09 12:54 12-31-09 19:09 jaufrec normal acknowledged none none open 0 Use header information in CSV Atlas dialog Steps to reproduce
1) Load a csv file with a header row in CSVimp
2) in the CSV Tool screen, click "Treat first row as header information"
3) Click Map -> Edit to bring up the CSV Atlas screen

Actual Results
1) The Column # field has values such as Column 0, Column 1, Column 2

Expected Results
1) The Column # field is labeled something like "Source Column" and has as values the header information from the file, e.g., "City", "State"
annecote 12-31-09 19:09 User would like to see column description in the drop down list with column number.
11853 All block always 08-06-10 11:00 08-06-10 11:02 joesingleton normal confirmed none none 0.4.2 open 0 csvimp login window does not allow enhanced authentication The options to use Enhanced Authentication and require SSL are no longer available in the login options window for CSVImp.

see forum posting @ http://www.xtuple.org/node/3324 [^]
gmoskowitz 08-06-10 11:02 This was an unintended consequence of revising CSVImp to be available within the xTuple ERP app.
11516 All feature always 06-03-10 12:36 06-03-10 12:37 Daniel normal acknowledged none none open 0 allow feeding results of the pre-sql query to the actual import phase It would be nice if CSVImp allowed using data returned by the Pre-SQL query as part of the import. For example, a query could return an internal cohead_id for a given Sales Order number. Then this internal id could be used when importing coitem records. This would also allow reading default settings from the database.
9581 All minor always 09-10-09 12:53 09-16-09 10:57 j2m ptyler normal resolved none none fixed 0 Link to Import Documentation incorrect The link: http://www.xtuple.org/ImportingData [^]
does not go to the importing data instructions. It points to Event Management instead.
ptyler 09-16-09 10:57 Great feedback. Thanks! This is fixed now. Page wasn't ported properly during website migration in the spring.
7069 All feature N/A 07-29-08 14:30 07-29-08 14:46 nordic normal closed none none 0.4.2 open 0 csvimp and API Views - General Questions I have two specific questions and two general ones.

Specific questions:

s1. Using csvimp, can I do the equivalent of what an SQL Update query does?

s2. Using csvimp, can I do the equivalent of what an SQL Delete query does?

General question:

g1. Can I run an SQL Update query that uses an API view to reference the underlying data in tables?

g2. Can I run an SQL Delete query that uses an API view to reference the underlying data in tables?



--Mike Rosemire, on behalf of Nordic Naturals




jrogelstad 07-29-08 14:46 Mike,

Please post support questions on the xTuple forums or by sending e-mail directly to support. The issue tracker is used only for reporting bugs or feature requests.

Kindest Regards,

John
11658 All block always 06-23-10 21:29 06-30-10 08:43 carolyn cryan normal resolved none none Manufacturing ALL ALL 0.4.1 fixed 0 All Items not Imported - no errors in log When trying to import Items, no errors were reported, but all rows were not imported. On the first attempt, 3000 of Items were imported and 1700 failed although no errors were logged. On the second attempt, only 1061 rows were imported and again, no errors were logged. When the same file was imported using 0.3.0 all 4700 rows imported without incident. On the third attempt (using the csv and atlas I created and successfully imported with version 0.3.0) 3800 rows were imported and the rest were ignored.
mmcbride 06-24-10 08:36 are you using the api views or the table? Is this for database version 351RC?
carolyn 06-24-10 08:58 using API and 3.5.1rc
svn 06-30-10 08:42 Revision: 9583
          http://postbooks.svn.sourceforge.net/postbooks/?rev=9583&view=rev [^]
Author: cryan
Date: 2010-06-30 13:11:57 +0000 (Wed, 30 Jun 2010)

Log Message:
-----------
Issue 0011658. Fixed problem where some records were not imported when running large imports.

Modified Paths:
--------------
    csvimp/trunk/plugin/csvtoolwindow.cpp

9497 All major always 08-23-09 17:51 01-29-10 19:16 brook normal closed none none open 0 Product category field "not found" error while running csvimp (api.item) ERROR Record 1: ERROR: Product Category not found.
QPSQL: Unable to create query

gmoskowitz 08-24-09 08:50 Strictly speaking the error message is true: there is no field called "Product Category". There /is/ a field called "product_category" (note the underscore between words). Which version of the column name did you give csvimp?
annecote 12-31-09 12:49 Reminder sent to: brook|Ok to close this issue?
annecote 01-29-10 19:16 Closed due to lack of feedback
5801 All feature always 09-10-07 10:40 09-10-07 13:32 jrogelstad jrogelstad normal resolved none none fixed 0 Allow the ability to select schema CSV Imp defaults to the public schema. Allow user to select a schema so they can get to API views. Perhaps add a command line switch to force a schema selection so it could be launched from PostBooks/OpenMFG and not have to worry about uneducated users importing directly into public tables?
jrogelstad 09-10-07 13:32 -----------
5801: Allow CSV imp to see and use api schema.

Modified Files:
--------------
    CSVimp:
        CSVimp.pro (r1.10 -> r1.11)
        csvatlaswindow.ui.h (r1.15 -> r1.16)
11517 All feature always 06-03-10 12:40 06-30-10 09:06 gmoskowitz normal acknowledged none none open 0 integrate the metasql editor from openrpt to edit the pre- and post-import queries It might be helpful to be able to test the pre- and post-import queries when editing them. The MetaSQL editor from OpenRPT allows this.
3171 All text always 01-25-05 21:57 08-03-10 14:53 chrisking gmoskowitz normal resolved none none Mac OS X Panther 0.4.2 fixed 0 field type incorrect in field mappings window When viewing a table inside the mappings definition window, QString will be displayed as the type when it should be "char(1)". This makes it difficult to map fields.
svn 07-28-10 16:13 Revision: 9761
          http://postbooks.svn.sourceforge.net/postbooks/?rev=9761&view=rev [^]
Author: gilmoskowitz
Date: 2010-07-28 20:13:47 +0000 (Wed, 28 Jul 2010)

Log Message:
-----------
bug 0003171 - show max string length in field mappings if available

Modified Paths:
--------------
    csvimp/trunk/plugin/csvatlaswindow.cpp

gmoskowitz 07-28-10 16:15 The field type will show as QString(5) if the field is limited to 5 characters and the database driver permits. Text fields with unrestricted length will still show as QString.
3172 All feature always 01-25-05 21:59 01-26-05 13:45 chrisking high confirmed none none Mac OS X Panther 0.4.2 open 0 add comment ability to field mappings it would be very useful to be able to annotate individual fields as one proceeds with a migration. This annotation could then either be put into the table comments, or just saved on the client side inside the mapping file.
9685 All major always 10-06-09 10:47 06-09-10 14:52 matherton gmoskowitz high closed none none OpenMFG ALL ALL fixed 0 CSVimp only enables access to public and api schemas CSVimp does not enable access to views such as xtmfg, xtpos, xtbatch and customer created schemas.
malfredo32 04-07-10 20:45 You can add to this issue that you can't access xtmfg either and in consequence you can't import BOO's.

Alfredo
svn 06-08-10 13:09 Revision: 9452
          http://postbooks.svn.sourceforge.net/postbooks/?rev=9452&view=rev [^]
Author: gilmoskowitz
Date: 2010-06-08 17:09:15 +0000 (Tue, 08 Jun 2010)

Log Message:
-----------
bug 0009685 - allow selecting any table or view from any non-system schema

Modified Paths:
--------------
    csvimp/trunk/plugin/csvatlaswindow.cpp
    csvimp/trunk/plugin/plugin.pro

Added Paths:
-----------
    csvimp/trunk/plugin/csvaddmapinputdialog.cpp
    csvimp/trunk/plugin/csvaddmapinputdialog.h
    csvimp/trunk/plugin/csvaddmapinputdialog.ui

mmcbride 06-09-10 14:51 verified fixed in 041
11691 All feature always 06-30-10 09:05 06-30-10 09:06 cryan low acknowledged none none open 0 Standalong CSVimp does not use transactions -- should when database supports requirements When performing large imports the use of savepoints in transactions can easily lead to memory problems. Newer (8.4.1 and up?) versions of postgresql are supposed to address this problem. If this is the case the transaction support should be added back in with a conditional use when on a version of postgresql that does not exhibit the shared memory leak problem.