Repository navigation
Closed
Milestone
Description
ArcadeDB Version: ArcadeDB Server v23.7.1-SNAPSHOT (build 2ed2834735647841ad33d9b76408221bfc96055d/1690912950007/main)
OS and JDK Version: Running on Mac OS X 12.6.5 - OpenJDK 64-Bit Server VM 11.0.19 (Homebrew)
Expected behavior
Correct import of graph from CSV files.
Actual behavior
- Importer skips last edge
- Repreating the import command causes error
Error on importing database/Error on parsing source 'edges.csv (compressed=false size=41)'/Transaction not begun
Details
Error on command execution (PostCommandHandler)
com.arcadedb.exception.CommandExecutionException: Error on importing database
at com.arcadedb.query.sql.parser.ImportDatabaseStatement.executeSimple(ImportDatabaseStatement.java:69)
at com.arcadedb.query.sql.executor.SingleOpExecutionPlan.executeInternal(SingleOpExecutionPlan.java:91)
at com.arcadedb.query.sql.parser.SimpleExecStatement.execute(SimpleExecStatement.java:64)
at com.arcadedb.query.sql.parser.Statement.execute(Statement.java:73)
at com.arcadedb.query.sql.SQLQueryEngine.command(SQLQueryEngine.java:101)
at com.arcadedb.database.EmbeddedDatabase.command(EmbeddedDatabase.java:1299)
at com.arcadedb.server.ServerDatabase.command(ServerDatabase.java:451)
at com.arcadedb.server.http.handler.PostCommandHandler.executeCommand(PostCommandHandler.java:123)
at com.arcadedb.server.http.handler.PostCommandHandler.execute(PostCommandHandler.java:91)
at com.arcadedb.server.http.handler.DatabaseAbstractHandler.execute(DatabaseAbstractHandler.java:98)
at com.arcadedb.server.http.handler.AbstractHandler.handleRequest(AbstractHandler.java:124)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.arcadedb.integration.importer.ImportException: Error on parsing source 'edges.csv (compressed=false size=41)'
at com.arcadedb.integration.importer.Importer.load(Importer.java:63)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.arcadedb.query.sql.parser.ImportDatabaseStatement.executeSimple(ImportDatabaseStatement.java:61)
... 17 more
Caused by: com.arcadedb.exception.DatabaseOperationException: Transaction not begun
at com.arcadedb.database.EmbeddedDatabase.checkTransactionIsActive(EmbeddedDatabase.java:1250)
at com.arcadedb.database.EmbeddedDatabase.lambda$commit$2(EmbeddedDatabase.java:359)
at com.arcadedb.database.EmbeddedDatabase.executeInReadLock(EmbeddedDatabase.java:1361)
at com.arcadedb.database.EmbeddedDatabase.commit(EmbeddedDatabase.java:358)
at com.arcadedb.integration.importer.graph.GraphImporter.close(GraphImporter.java:82)
at com.arcadedb.integration.importer.format.CSVImporterFormat.loadEdges(CSVImporterFormat.java:368)
at com.arcadedb.integration.importer.format.CSVImporterFormat.load(CSVImporterFormat.java:69)
at com.arcadedb.integration.importer.Importer.loadFromSource(Importer.java:95)
at com.arcadedb.integration.importer.Importer.load(Importer.java:57)
... 22 more
- Is the
<URL>necessary inIMPORT DATABASEwhen I have no documents? Should it be optional?
Steps to reproduce
IMPORT DATABASE file://vertices.csv WITH
vertices = vertices.csv, edges = edges.csv, database = test,
typeIdProperty = Id, typeIdType = Long, typeIdPropertyIsUnique = true,
edgeFromField = `From`, edgeToField = To;
and CSV files vertices.csv:
Id,First Name,Last Name
0,Jay,Miner
1,Elon,Musk
2,Steve,Jobs
3,Isaac,Newton
4,Nikola,Tesla
5,Albert,Einstein
and edges.csv:
From,To,Since
0,1,1990
0,2,2005
1,4,1970
Activity
chore(deps): bump org.codehaus.mojo:versions-maven-plugin from 2.18.0…
chore(deps-dev): bump testcontainers from 11.10.0 to 11.11.0 in /e2e-…
chore(deps-dev): bump testcontainers from 11.10.0 to 11.11.0 in /e2e-…
lvca commentedon Jan 22, 2026
The bug was in CreateEdgeFromImportTask.execute(). Edges are batched by source vertex key for efficiency, and the batch is only flushed when the source key changes to a new
vertex. When edge processing completes:
This meant ALL edges could be lost if:
fix: CSV importer misses last edge
lvca commentedon Jan 22, 2026
Finally closed 👏
gramian commentedon Jan 22, 2026
Not completely working yet:
Error on importing database -> Error on parsing source 'null' -> vertices.csv)lvca commentedon Jan 23, 2026
Probably studio can't access to the file because run from a server and the file is not in the right path?
gramian commentedon Jan 27, 2026
This works for me now:
Thank you!
fix: CSV importer misses last edge
chore(deps): update pytest-asyncio requirement from >=0.23.0 to >=1.2…
chore(deps): bump org.codehaus.mojo:versions-maven-plugin from 2.18.0…
chore(deps-dev): bump testcontainers from 11.10.0 to 11.11.0 in /e2e-…
chore(deps-dev): bump testcontainers from 11.10.0 to 11.11.0 in /e2e-…
fix: CSV importer misses last edge
chore(deps): update pytest-asyncio requirement from >=0.23.0 to >=1.2…