Skip to content

Vertex does not support user supplied identifiers #1012

@humutkazan

Description

@humutkazan

Discussed in #1007

Originally posted by humutkazan April 6, 2023
I am trying to migrate to arcadedb and want to use it with gremlin server. Got arcade db up and running on docker with this command

docker run --rm -p 2480:2480 -p 2424:2424 -p 8182:8182 -e "arcadedb.server.defaultDatabases=Imported[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz}" --env JAVA_OPTS="-Darcadedb.server.rootPassword=playwithdata -Darcadedb.server.plugins=Redis:com.arcadedb.redis.RedisProtocolPlugin,MongoDB:com.arcadedb.mongo.MongoDBProtocolPlugin,Postgres:com.arcadedb.postgres.PostgresProtocolPlugin,GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin" arcadedata/arcadedb:latest

When I try to run my code I got this error

org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Vertex does not support user supplied identifiers

it shows the location of error and it is the code below (can provide more info if needed be)

        var traversal = g.addV(someLabel).property(T.id, id);

        traversal = addTraversalProperties(traversal, properties);

        traversal.as("label")
                .V(toVertexIds).as("equipment")
                .addE(EDGE_LABEL)
                .from("label")
                .to("equipment")
                .tail()
                .select("label")
                .id()
                .tryNext().orElseThrow(() -> new IllegalStateException(String.format("result: %s", queryResult)));

I tried to add graph.set-vertex-id=true into the gremlin-server.properties file inside docker but nothing changed.

Does anyone have any idea what I can do the solve this issue? Thanks

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions