Open jjmvee opened 4 years ago
2020-07-15T13:47:30.694000+02:00 ERROR Error while formating a row from "gmw_monitoring_well":
2020-07-15T13:47:30.694000+02:00 ERROR Invalid index NIL for (SIMPLE-ARRAY (UNSIGNED-BYTE 8) (24)), should be a non-negative integer below 24.
2020-07-15T13:47:30.698000+02:00 ERROR The value
NIL
is not of type
NUMBER
when binding SB-KERNEL::X
This is a type error on pgloader's side. We will need a backtrace to figure out where exactly it came from.
OK. Can I supply that?
The gpkg file is sqlite3 format with extra geospatial features, it has INSERT/UPDATE triggers on the offending table calling geospatial functions. But these should not fire or impact the import (to my knowledge).
I think you can supply that, yes - please run pgloader with the --debug
flag.
Here it is:
Hmmm. No cigar yet; it doesn't print a backtrace.
Let's try even more stuff --debug --verbose
?
Now with --debug --verbose (38 MB unpacked):
These seem like two separate errors, one being Invalid index NIL for (SIMPLE-ARRAY (UNSIGNED-BYTE 8) (24)), should be a non-negative integer below 24.
and the other being The value NIL is not of type NUMBER when binding SB-KERNEL::X
. Still, even with --debug --verbose
, the stacktraces still aren't there.
@dimitri - maybe you will be able to help with that one.
I encountered the same error when the integer value of the sqlite field is null or empty. When I change the sqlite integer to a specific value (for example, 0), the error disappears
Yes
Yes. But to no avail.
https://mega.nz/file/m9pQVaCJ#cIYTzCOOks2EKs7GHPQlndMclfojoSqCoahg_HtHCdc
(zip file, unpacks to a gpkg/sqlite3 file)
The sqlite3 table 'gmw_monitoring_well' does not load. The other tables do.