Skip to Content

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 31, 2017 at 09:21 AM

    Hi,

    how did you solve this problem?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.