GeodatabaseFeatureTable.addAttachment returns -1

4282
3
Jump to solution
10-15-2014 01:52 AM
EduardLepner
New Contributor II

Hi!

I'm trying to implement work with attachments in offline mode. But when I call the method GeodatabaseFeatureTable.addAttachment it just returns -1. Moreover the state of app gets corrupted after this call and the app is not even able to do queries. This issue appears if and only if some other application was called from my app e.g. the file was selected from gallery. If I just hardcode the path to a file then this method does not cause any problems.

Any ideas?

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
EduardLepner
New Contributor II

Updated SDK and reinstall the app. The problem has dissapeared.

View solution in original post

0 Kudos
3 Replies
EduardLepner
New Contributor II

Updated SDK and reinstall the app. The problem has dissapeared.

0 Kudos
imritanshu
New Contributor III

i am also facing some related problem. I am not able to attach my image in feature layer. Can u please help me..

Thanks

Rhitz

0 Kudos
EduardLepner
New Contributor II

We found the reason of this problem. It happend because the geodatabase got corrupted due to wrong call Geodatabase.dispose() method.

0 Kudos