Skip to Content
0

Getting SQL Statement errors during CRUD operation when Refresh is happening in Background

Mar 20, 2017 at 09:37 AM

117

avatar image
Former Member

Hell Experts,

I am working on Windows 8.1 Store App using SMP Native SDK with Offline Odata feature. I am facing issue when i try to perform CRUD operation in UDB while Refresh operation (Server to UDB) is happening in background parallely. This is not happening all the time but whenever this two actions are in sync then i am facing SQL Errors like.

<msg>[-10001] An error occurred executing SQL statement: UPDATE "MVj3L2pKsz4eSipaw/3UnDDpX6g=xxxxxxxxxxx.5" SET lodata_sys_copy = IF ? <> 0 THEN ? ELSE "lodata_sys_copy" ENDIF , lodata_sys_etag = ?, "HPHRf89Wyi7xssIQWvv6vtxSBbA=xxxxxxxxxxx" = ?, "fKMrZjp2p6zTZ4393fgsKlbBOyg=xxxxxxxxxxx" = ?, "8tUVbDEZKtgJjVbmdPLnwj8nnLc=xxxxxxxxxxx" = ?, "Mq0YONNLUr1vIEcsQff7YWRofXE=xxxxxxxxxxx" = ?, "1+trNAoRo2ehvsVeSkIdlJIUdZ8=xxxxxxxxxxx" = ?, "KUvVJuKlTbAU9I1ka5vUXoBzRwg=xxxxxxxxxxx" = ?, "h4f2raCIXv5UOU35zWSijwVomOI=xxxxxxxxxxx" = ?, "ZjI9UDo7e+jb82tNic44tyVB3Nw=xxxxxxxxxxx" = ?, "0t3vQjIi6TnNld3Ds6WGaMz4MR8=xxxxxxxxxxx" = ?, "b5ua881ui4pzws3O03/p9ZIm4n0=xxxxxxxxxxx" = ?, "aumZVSoNLcoU1i4ryLdk03ex3Ww=xxxxxxxxxxx" = ?, "Ot17lhIQLyp9vk7U/ohuB+hHwk0=xxxxxxxxxxx" = ?, "mKfhlW+O+ChsKzHQcvqLoK8UR2E=xxxxxxxxxxx" = ?, "QHNvCZctmOoNpL4bIPQzJEkwGls=xxxxxxxxxxx" = ?, "KxJC+maeixTvQo1MHAuMtgr31iA=xxxxxxxxxxx" = ?, "4c3U11MhYtvsDC+L0TbaEW45C+I=xxxxxxxxxxx" = ?, "8LbHbVWk6dLn76GRV</msg>

1. is it recommended to have CRUD operation during Refresh.

2. do as developer we have any control on UDB to lock and not to perform any operation during refresh which is actually updating values in UDB.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Patrizia Rossi Jul 31, 2017 at 09:21 AM
0

Hi,

how did you solve this problem?

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

SAP Recommended not to access DB while refresh is happening on Tables.

So we are doing full refresh while login into the app and just flushing data when user is doing action on screen.

0