Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gremlin 3.5.4 gives error from Java code but not from gremlin console (Connecting to Neptune) #130

Open
gauravsingh96 opened this issue May 26, 2023 · 0 comments

Comments

@gauravsingh96
Copy link

Hi team, I have followed the following link https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-java.html to create a sample application. This works fine. But when I add one traversal to add a vertex it fails saying the {"requestId":"xyz","code":"ConstraintViolationException","detailedMessage":"Vertex with id already exists: "} even though the id is not ingested. The traversal that I have added is -

g.inject(1).union(__.addV('label').property(T.id, 'uniqueId1').property('prop1','val1')).valueMap(true)

What is surprising the same query runs from the gremlin console and does not complain about vertex already ingested.

Is there something in the query that must be changed for it to run from the code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant