Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save error - Cannot perform a 'setEntityState' on an entity that is in the process of being saved #8

Closed
coni2k opened this issue May 22, 2015 · 1 comment
Labels

Comments

@coni2k
Copy link
Contributor

coni2k commented May 22, 2015

What's this error? Seek & destroy!

Error: Cannot perform a 'setEntityState' on an entity that is in the process of being saved
Pt</p._checkOperation@http://wealth.forcrowd.org/Scripts/breeze.min.js?v=024:2:10754
Pt</p.setEntityState@http://wealth.forcrowd.org/Scripts/breeze.min.js?v=024:2:7220
Pt</p.setDeleted@http://wealth.forcrowd.org/Scripts/breeze.min.js?v=024:2:7056
updateElementMultiplier@http://wealth.forcrowd.org/App/services/userService.js?v=029:238:29
link/scope.resetElementMultiplier@http://wealth.forcrowd.org/App/directives/resourcePoolEditor.js?v=029:70:17

@coni2k coni2k changed the title ElementField SortOrder field validations Save error - Cannot perform a 'setEntityState' on an entity that is in the process of being saved Jun 12, 2015
@coni2k coni2k added bug and removed enhancement labels Jun 12, 2015
@coni2k
Copy link
Contributor Author

coni2k commented Jun 12, 2015

While saving an entity, it was possible to change it' state from editor (resetXXX functions) and apparently it's not a valid action.

Also, while saving the changes to server, it there is a new save changes attempt, it was leading to concurrent save error.

Both of the issues were fixed by using 'isSaving' state in resourcePoolEditor.

Later on, maybe 'breeze save queuing' can be used but it also has a problem with RowVersion property.
http://www.getbreezenow.com/documentation/concurrent-saves

@coni2k coni2k closed this as completed Jun 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant