Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Check if a table is locked

$
0
0

Hi All,

I have this codeunit (run from the job queue)  that fetches some *.csv files from a network share and posts the data it gathers on the Job Journal Line.

But sometimes the posting is stoped because the table is locked and the job queue task blocks.

Is there anyway of checking if a table is locked before starting any insert operation?

And if so, could you give me a hint on how to deal with this issue without losing the data I gathered?

Thank you in advance.

Best Regards,

ZPaulo.


Viewing all articles
Browse latest Browse all 15740

Trending Articles