cancel
Showing results for 
Search instead for 
Did you mean: 

MEGA Error 80020003 When trying to remove from a MegaCollection

Contributor

MEGA Error 80020003 When trying to remove from a MegaCollection

Hello,

 

I have found absolutely no documentation about the following error:

 

MegaException : MEGA Error 80020003
    at com.mega.modeling.api.jni.MegaCollectionJNI.Remove(null:-2)
    at com.mega.modeling.api.jni.MegaCollectionProxy.remove(null:91)

 

We are using MEGA SP5 CP8 and the error occurs when we want to remove an element from a MegaCollection obtained from a _standard_ (not customized) MetaAssociation:

 

MegaObject app = (An Application MegaObject)

MegaObject srv = (A Server MegaObject associated to app via "Application" MetaAssociationEnd)

 

Any of these two lines causes the same error:


app.getCollection("Server").remove(1)

 

srv.getCollection("Application").remove(app)

 

both collections are a different view on the same MetaAssociation, MetaClass [Server] seems to be the owning class of the MetaAssociation since in explorer on Applications the association is a yellow folder and on Servers it's a green folder.

 

What does this error code mean and where can I find documentation about it (and similar errors without error text)

1 Reply
Contributor

Re: MEGA Error 80020003 When trying to remove from a MegaCollection

We have now found out that you need to use

 

app.getCollection("Server").get(1).remove();

srv.getCollection("Application").get(app).remove();

 

But still we could not find any documentation of the error code. Where is the corresponding documentation for error codes like 80020003?

Regards, alros