Can you please put error stack.. by seeing the microflow I cannot make out the issue with file.. however there are lot of corrections which can be done
1. Why commit and change again ?? Can that not be a single activity.
2. Refresh object is not needed for both
3. Add error handler for rest service