Hi Mahesh,

Could you print out the contents of your c variable?  I'll bet you'll find 
an extra space or one missing.

Let us know.

-Colin

Orient Technologies

The Company behind OrientDB


On Thursday, April 16, 2015 at 5:38:59 AM UTC-5, Mahesh Wabale wrote:
>
> Hello everyone , i  have get following error while writing function at 
> this line .
>
>
> >>>>>>>>>>>>>>>>>> g.command("sql" ,c, []);
>
>
> code of function is : 
>
> var g=orient.getGraph();
>
> var now=new java.util.Date();
>
> var a=g.addVertex("class:Article" , ["title" ,title , "content" , 
> content,"whenPublished",now]);
>
> var c="create edge Authors from # " + author + " to " + a.id;
>
> g.command("sql" ,c, []);
>
> return a;
>
>
>
>
> getting error as : 
>
> Erroronparsingscriptatposition#0: ErroronexecutionofthescriptScript: 
> createArticlee------^sun.org.mozilla.javascript.internal.WrappedException: 
> Wrappedcom.orientechnologies.orient.core.exception.OCommandExecutionException:
>  
> Erroronexecutionofcommand: sql.createedgeAuthorsfrom#12: 0to#13: 
> -2(<Unknownsource>#40)in<Unknownsource>atlinenumber40Wrappedcom.orientechnologies.orient.core.exception.OCommandExecutionException:
>  
> Erroronexecutionofcommand: sql.createedgeAuthorsfrom#12: 0to#13: 
> -2(<Unknownsource>#40)Erroronexecutionofcommand: 
> sql.createedgeAuthorsfrom#12: 0to#13: 
> -2Argument'#'isnotaRecordIdinformofstring.Formatmustbe: <cluster-id>: 
> <cluster-position>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to