parse-community / Parse-SDK-Android

The Android SDK for Parse Platform
https://parseplatform.org/
Other
1.88k stars 735 forks source link

pinInBackground throws "Unable to encode an unsaved ParseFile" #1063

Open dsemelianov opened 3 years ago

dsemelianov commented 3 years ago

I create a ParseFile, and put it on a ParseObject X. Then I take ParseObject X, and put it on another ParseObject Y.

All of this is done in the local datastore, since I don't want to save anything to the cloud just yet.

Then I do Y.pinInBackground to save everything to the datastore, and I get this error:

com.parse.ParseException: java.lang.IllegalStateException: Unable to encode an unsaved ParseFile.

Is this by design? If so, what is the suggested way of saving ParseFiles to the local datastore?