after importing .MPP file i got this error while saving data to database.
but when i reload the page i found that data are saved successfully
so i need to make loading mask to indicate that save process is working and remove the mask
in afterSync event but afterSync doesn't invoked because the fail error of saving data.
note that the error appears after a couple of seconds not immediately so i think it may concern with sync time
Re: MSImport Save issue
Posted: Thu Jul 12, 2018 3:17 pm
by arcady
Have you checked how server response looks? Do you provide "success : true" in the response?
Re: MSImport Save issue
Posted: Thu Jul 12, 2018 3:32 pm
by Dev_Coppelis
yes it already has success : true
and the problem happens only with big data project
Re: MSImport Save issue
Posted: Thu Jul 12, 2018 3:39 pm
by Maxim Gorkovsky
Have you tried to debug it? You can get this message if server response cannot be decoded:
var response = this.decode(rawResponse);
if (!response || !response.success) {
// warning thrown here
}
Try to debug response and see why it cannot be decoded?
Re: MSImport Save issue
Posted: Thu Jul 12, 2018 4:14 pm
by Dev_Coppelis
Maxim Gorkovsky wrote:Have you tried to debug it? You can get this message if server response cannot be decoded:
var response = this.decode(rawResponse);
if (!response || !response.success) {
// warning thrown here
}
Try to debug response and see why it cannot be decoded?
where can i provide these lines ? in sync event ?
Re: MSImport Save issue
Posted: Thu Jul 12, 2018 7:03 pm
by Maxim Gorkovsky
You can find these lines in the bundle (gnt-all-debug.js). Set breakpoint in the browser and see why you get inside that code block.
Have you included sync respose to your test case? Otherwise we have nothing to check.
Re: MSImport Save issue
Posted: Tue Jul 17, 2018 9:24 am
by Maxim Gorkovsky
As mentioned in next thread, issue is not reproducible. Please amend
Re: MSImport Save issue
Posted: Sun Jul 29, 2018 1:44 pm
by Dev_Coppelis
dear maxim,
i searched for this error and i found the same issue hereviewtopic.php?f=1&t=7177
but the urls are not working so please can u provide me the correct ones ?