1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Error: Unknown error occurred when calling saveChanges. in JSDO

Discussão em 'StackOverflow' iniciado por fdantas, Janeiro 23, 2020.

  1. fdantas

    fdantas Administrator Moderador

    We are using Kendo + JSDO in our application.

    While deleting a record we are receiving an error given below.

    core.js:1673 ERROR Error: Uncaught (in promise): Error: Unknown error occurred when calling saveChanges. Error: Unknown error occurred when calling saveChanges. at DataSource.push../node_modules/@progress/jsdo-angular/lib/progress.data.angular.js.DataSource.normalizedErrorObj (progress.data.angular.js:656) at progress.data.angular.js:519 at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Object.onInvoke (core.js:3820) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387) at Zone../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at zone.js:872 at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3811) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at resolvePromise (zone.js:814) at zone.js:724 at progress.data.angular.js:518 at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Object.onInvoke (core.js:3820) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387) at Zone../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at zone.js:872 at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3811)

    The code that performs the delete operation is as below :

    this.datasource.saveChanges()
    .subscribe((response: DataResult) => {

    }, (error, response) => {
    // this.dataSource.eTTtemp.getErrors();
    });


    However , when we do a getErrors(), we get blank for a particular scenario while for many others we are getting valid errors when getErrors() are called. Moreover 'error' returns the above error message in the scenario that returns blank getErrors();

    Any help would be appreciated.

    Continue reading...

Compartilhe esta Página