Hi Farrukh,

The error was 
"com.orientechnologies.orient.core.sql.OCommandSQLParsingException:
Error on parsing command at position #0..."

So by taking a look at how you build the string, seems you forgot the ' in
field values as strings. Try using this:

string link= "CREATE VERTEX Contacts CONTENT { 'name' : '"+
Row.fullname+"', 'Email' : '"+ Row.emailaddress1+"', 'Phone' : '"+
Row.telephone1 + "', 'ContactId' : '"+ Row.contactid+"', 'City' :
'"+Row.address1city+"' }" ;


Best Regards,

Luca Garulli
Founder & CEO
OrientDB <http://orientdb.com/>


On 6 January 2016 at 13:09, <[email protected]> wrote:

> This is the response returned from request.
> InternalServerError{
>   "errors": [
>     {
>       "code": 500,
>       "reason": 500,
>       "content":
> "com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error
> on parsing command at position #0: Error parsing query: \u000aCREATE VERTEX
> Contacts CONTENT {, 'Phone' : '07231/4445-0', 'ContactId' :
> '6938261d-dd40-e511-80d8-3863bb3c33b0', 'City' :
> 'Pforzheim'}\u000aEncountered \" <CONTENT> \"CONTENT \"\" at line 1, column
> 24.\u000d\u000aWas expecting one of:\u000d\u000a    <EOF> \u000d\u000a
>  <RETURN> ...\u000d\u000a    \";\" ...\u000d\u000a    <CLUSTER>
> ...\u000d\u000a    <CLUSTER> ...\u000d\u000a    <RETURN> ...\u000d\u000a
>  "
>     }
>   ]
> }
>
> --
>
> ---
> 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.
>

-- 

--- 
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