Table locking

fve
fve Member Posts: 28
We get the following message:

The table is locked by another user wait until user completed operation.

Is there some way we can make a personal error-message that shows the user that is locking the db?

Comments

  • kriki
    kriki Member, Moderator Posts: 9,132
    It is not possible. The error is not on C/AL level, but on a lower level.
    The only thing you could do is use TSQL to get the User who is locking this user. But I wouldn't know how to program it.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • DenSter
    DenSter Member Posts: 8,307
    You can't catch and/or personalize that particular error message, it is raised internally by the exe's.
  • kine
    kine Member Posts: 12,562
    Better is to optimize your DB to not lock tables for a long time and to see this message lesser time than now. 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.