Error deleting collection

32 views
Skip to first unread message

Utchi82

unread,
Apr 4, 2016, 10:37:06 AM4/4/16
to BaasBox
Hello
I'm tryin to delete a collection from the control panel.
I get this error

OSerializationException: Error on unmarshalling field 'rac' in record #32:10 with value: rac:{"@rid":#-2:1,"@version":0,"id":"2f6de8f9-fd55-4d01-b0bf-3034fb957299","nome":"Christian","date":"19/03/2016","ora":9,"col":"w","grand":"N","ART":["b9910d32-9dc3-4e75-b3e6-f731675976e8"],"DEF":["6f470f03-0ac8-49c8-b381-4fab76e98143"],"LOC":["c8e7c2f7-2073-44f2-ae79-8c7858d9255f"],"$$hashKey":"object:54"}

and the collection is not deleted.
Can anyone help ?
Thanks

Utchi82

giastfader

unread,
Apr 5, 2016, 4:52:45 AM4/5/16
to BaasBox
Hi,
you saved a Document into another one as embedded object.
This means that the OrientDB record #32:0 has a field "rac" that actually is a JSON object that contains fields with reserved ODB fields like "@rid" and "@version".
This causes an ODB error and BaasBox cannot prevent it.
You can try to access to the embedded ODB database using its console tool and to provide the following command:
truncate class <collection_you_want_to_delete>
drop class <collection_you_want_to_delete>
delete from _BB_Collection where name = '<collection_you_want_to_delete>'

If you did not use "links", these steps should be enough, although some unused metadata info still remain there.
If the "truncate" command does not work, then it means that the db is corrupted and a deeper analysis is required.


Reply all
Reply to author
Forward
0 new messages