Dear All ,
We have created different batches for JV, cash & Bank . so that different users can work on different batches . But we are facing one problem in this type of situation is that If one of the user click on posting then other user will get message that " Table locked by other user with user id "
similiar problem is face while creating item journal entry.
It will prevent other user to creat transaction.
How to reslove this issue ?
Tell me solution how to overcome this problem.
rgds
dhananjay
rgds
dhananjay
0
Comments
[Edit]
A lot of times the tables get locked because sift tables.
Also if you are looping through the item journal and deleting them one line at a time, I would change the code to deleteall and do it at the end.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
And especially shouldn't be attempted without supervision (people on this forum seem to recommend SQL Perform but to me should be someone with decent amount of Navision experience).
In his case though if I understand correctly he is posting journal batches and those will most likely lock on G/L Entry and that cannot be avoided (well with conventional methods anyway). So the only way to address it in this case would be to just make things post faster or post large batches at night.
you can trying changing any analysis views to not update on post, and then run you the update routine from the job schedular in the evening.
also, when posting about locking table problem, it would be good to actual mention what table is doing the locking, as without it we are just guessing.
Agreed, maybe I did not understand that it's two people posting,
I thought other people working on the journal while one person is posting a journal that locks other people. Which means the journal line table gets locked, and that shouldn't happen.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
After your post I am thinking that could be another way to read the issue
OP I guess we need a lot more details to be able recommend anything.
Ya both of you on right track.
In our case one user is creating journal line in one batch & other user is doing posting of other batch. The message will feature on the screen while creating journal line.
Can we avoid this locking ?
dhananjay
What exact object version are you using and more importantly, is it SQL or C/Side?
There are some application type things you can check, such as the number of dimensions, whether direct cost posting is turned on, whether analysis views are updated on posting, if you have change log turned on, what kind of add-ons you are using, how many users are connected, what kind of hardware setup, etcetera, etcetera
Then there are technical things you can do, such as do a hardware review and make sure that is not the issue, then there is database maintenance if you're on SQL Server. The biggest impact though, will be to tune the indexes of your database.
RIS Plus, LLC