You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: