When testing of delete, trash functionality discussed in SO 22295903, I\'ve run into this issue.
1/ Create a file with contents
GoogleApiCl
This happens because changes are persisted locally first, and then uploaded to the server at a (possibly) later time when we have sufficient network connectivity. Unfortunately the resource id is not available until the newly created file is committed to the server.
Currently all you can do is wait for it to be available. We are working on some additions that will make this flow easier, so stay tuned.