groovy.lang.MissingPropertyException: No such property:"someLabel" for class: groovysh_evaluate

229 views
Skip to first unread message

Venkat Dasari

unread,
May 6, 2021, 10:41:35 AM5/6/21
to Gremlin-users
HI,
 I created the schema on gremlin and did a commit.
 I then tried to insert one record manually, and it failed with saying the above error.

g.addV(someLabel)
No such property: someLabel for class: groovysh_evaluate
Type ':help' or ':h' for help.
Display stack trace? [yN]y
groovy.lang.MissingPropertyException: No such property: MedicalVisit for class: groovysh_evaluate
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:65)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:51)

Venkat Dasari

unread,
May 6, 2021, 10:48:57 AM5/6/21
to Gremlin-users
Ah... never mind.. figured it out.. that someLabel should be in quotes!
Reply all
Reply to author
Forward
0 new messages