[
https://issues.apache.org/jira/browse/TINKERPOP-3169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18004294#comment-18004294
]
Alfredo commented on TINKERPOP-3169:
------------------------------------
After further investigation it seems that when I hit a breakpoint in pycharm at
the below line is when it jumps to my exception handler with the only message
returning StopItteration(), when I execute additional command against the
server its created. When I run the application without a debug point no errors
are thrown. When I run the application in vs code in debug mode I can see it
without issue. One thing I noticed before executing the .next() line is that
the traversal has a bunch of i['shape','values']elements in pycharm, those
don't get created in are at least are not shown in vs code.
response = t.next()
> Vertex Creation Return StopItteraion() Error
> --------------------------------------------
>
> Key: TINKERPOP-3169
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3169
> Project: TinkerPop
> Issue Type: Bug
> Affects Versions: 3.7.3
> Reporter: Alfredo
> Priority: Major
>
> The vertex gets created with all its properties, however there's a
> stopItteration() error that is thrown.
> Maybe i'm not doing this correctly but haven't found a way to do it.
> What i'm trying to do is build my vertex and its properties dynamically from
> a list, then "commit" it all in one transaction or call to db engine. Im
> using latest gremlin python library.
> {code:java}
> t = g.add_v("person")
> for prop, value in property_list:
> t = t.property(prop, value)
> response = t.next() # this creates vertex, throws stopIteration() error
> response = t.to_list() # this creates vertex, throws no error but returns
> empty list
> ver_count_after = g.V().count().next() # Shows increase in vertices
> # is there a way to create a vertex with dynamic list of properties in one
> transaction.
> # I cant daisy-chain .property().property() on the command as I don't have a
> finite number of properties {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)