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

ORecord Not found Exception #7866

Closed
shanmuga007 opened this issue Nov 3, 2017 · 3 comments
Closed

ORecord Not found Exception #7866

shanmuga007 opened this issue Nov 3, 2017 · 3 comments
Assignees
Labels

Comments

@shanmuga007
Copy link

shanmuga007 commented Nov 3, 2017

OrientDB Version: orientdb-community-2.2.22

Java Version: 1.7

OS: Windows 10

Expected behavior

#45:0

Actual behavior

ORecordNotFoundException #-2:0

Steps to reproduce

select @Rid from test where test_id = 1;
insert into test1 (field1) values (@Rid of test object);

com.orientechnologies.orient.core.exception.ORecordNotFoundException: The record with id '#-2:0' was not found

Note : #-2:0 this is not my document Id. Actual document id is #45:0.

while committing DB, am getting this exception.

Code :
Am used LINKED CLASS.
ODatabaseDocumentTx db = orientTemplate.getDB();
db.activateOnCurrentThread();
db.begin();
ODocument doc = new ODocument(className);
doc.fromJSON(json);
doc.save();
db.commit(); -- Here am getting exception

@luigidellaquila
Copy link
Member

Hi @shanmuga007

Could you please post a script to create your schema?

What is className in your case? "test" or "test1"?

Thanks

Luigi

@shanmuga007
Copy link
Author

Hi,

After using EXPAND its working now.

Thanks.

Please give support JOINS.
i) INNER JOIN
ii) LEFT JOIN like etc...

@luigidellaquila
Copy link
Member

Ok, happy to hear this.

About joins, I'm afraid you'll never see them supported in OrientDB. You should consider the graph API instead

Thanks

Luigi

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

No branches or pull requests

3 participants