The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

LOCKTIMEOUT Method (Database)

Determines whether the lock time-out setting is set to On. You can also use this method to override the default setting.


[LockTimeout :=] LOCKTIMEOUT([LockTimeout])  


Type: Boolean

The new setting for whether the lock time-out is on.

Property Value/Return Value

Type: Boolean

This value shows whether to use a lock time-out.


This method has been designed specifically for use in long-running processes that should not be terminated because of a lock time-out, for example batch jobs that run overnight.

When the AL code has finished running, the default setting is used again. This method does not change the duration of a lock time-out.

To change the default setting in the development environment, on the File menu, choose Database, and then choose Alter to open the Alter Database window. Choose the Advanced tab and select or clear the Lock time-out field.

See Also

Database Methods