cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member400819
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

patty_1982
Contributor
0 Kudos

Hi,

how did you solve this problem?

former_member400819
Discoverer
0 Kudos

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.