[sqlite] Error msg help

2016-03-17 Thread Hick Gunter
It seems your 14 digit API well number is being converted to a real before 
being output with only 2 digits of precision, giving the string "3.11E+13".

This is nearly guaranteed to NOT be unique. You need to request a CSV File with 
the API well number in string format.

-Urspr?ngliche Nachricht-
Von: sqlite-users-bounces at mailinglists.sqlite.org 
[mailto:sqlite-users-bounces at mailinglists.sqlite.org] Im Auftrag von Daniel 
Telvock
Gesendet: Mittwoch, 16. M?rz 2016 22:43
An: SQLite mailing list
Betreff: [sqlite] Error msg help

Anyone know what this is trying to tell me? I cannot import the CSV because of 
this error.

Everything is labeled as VARCHAR and api_well_number is marked as the unique 
identifier.



SQLiteManager: INSERT INTO "main"."WELLS" VALUES ("Adams, E.H. et 
al",'Schuyler','Hector','3.11E+13','Collins 1','UM','Unknown Not 
Found','DW','Dry Wildcat','8') [ UNIQUE constraint failed:
WELLS.api_well_number ]
Exception Name: NS_ERROR_STORAGE_CONSTRAINT Exception Message: Component 
returned failure code: 0x80630003
(NS_ERROR_STORAGE_CONSTRAINT) [mozIStorageStatement.execute]



Dan Telvock
Environment Reporter
Investigative Post <http://www.investigativepost.org/>
Twitter: @dantelvock
716-831-2626 ext. 3
___
sqlite-users mailing list
sqlite-users at mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


___
 Gunter Hick
Software Engineer
Scientific Games International GmbH
FN 157284 a, HG Wien
Klitschgasse 2-4, A-1130 Vienna, Austria
Tel: +43 1 80100 0
E-Mail: hick at scigames.at

This communication (including any attachments) is intended for the use of the 
intended recipient(s) only and may contain information that is confidential, 
privileged or legally protected. Any unauthorized use or dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately notify the sender by return e-mail message and 
delete all copies of the original communication. Thank you for your cooperation.




[sqlite] Error msg help

2016-03-16 Thread Simon Slavin

On 16 Mar 2016, at 9:42pm, Daniel Telvock  
wrote:

> SQLiteManager: INSERT INTO "main"."WELLS" VALUES ("Adams, E.H. et
> al",'Schuyler','Hector','3.11E+13','Collins 1','UM','Unknown Not
> Found','DW','Dry Wildcat','8') [ UNIQUE constraint failed:
> WELLS.api_well_number ]

The error part of that is ...

UNIQUE constraint failed: WELLS.api_well_number

I don't know which of the values in the above command is the api_well_number, 
but the "WELLS" table already has a row with that value for api_well_number.  
So SQLiteManager is obeying the UNIQUE constraint and refusing to insert 
another row with the same value.

Simon.


[sqlite] Error msg help

2016-03-16 Thread Daniel Telvock
Anyone know what this is trying to tell me? I cannot import the CSV because
of this error.

Everything is labeled as VARCHAR and api_well_number is marked as the
unique identifier.



SQLiteManager: INSERT INTO "main"."WELLS" VALUES ("Adams, E.H. et
al",'Schuyler','Hector','3.11E+13','Collins 1','UM','Unknown Not
Found','DW','Dry Wildcat','8') [ UNIQUE constraint failed:
WELLS.api_well_number ]
Exception Name: NS_ERROR_STORAGE_CONSTRAINT
Exception Message: Component returned failure code: 0x80630003
(NS_ERROR_STORAGE_CONSTRAINT) [mozIStorageStatement.execute]



Dan Telvock
Environment Reporter
Investigative Post 
Twitter: @dantelvock
716-831-2626 ext. 3