Hello,
I have a dataport to fill the Sales Journal ( Table: Gen. Journal Line).
It starts by clicking a button in the Form "Sales Journal".
The database has set the Warnings in the Sales & Receivalble Setup to "both warnings". Thats works as long as i do not use a customer that have no overdue balance, because then the warnings starts and the process cancels with the message:
"The following C/AL functions can only to a limited degree during write transactions(because one or more tables will be locked)
...
Form.runmodal()...
Codunit.run()...
..."
How can i handle this constraint? I tried to change the warnings to "no warning", start the dataport and after that set warnings back.
But i have no writing access to the table when i use the dataport?!
Please help!

I wisch u all very nice christmas days
Comments
Otherwise you may want to make one.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
but cant find such method in gen. journal line or the sales header / line.
Some other ideas to solve this problem?
Marcel
You can add a global variable HideValidationDialog
And create this function to activate it
Then add the code to hide the thingy.
otherwise do.
I did so, bit it doesnt work. The same message appears if i
try to import the lines
But thanks for all until now!
Anyone with another idea?
Have you tried debugging?