Hi Expert,
I write a codeunit A with procedure B, for procedure B, I need to get specific posted sales shipment line, I also create a table C to store Posted sales Shipment line data, below is my table definition:
Before I insert table "Sales Shipment Line" data to table C, I try to deleteAll data in table C:
var
c : record C
begin
c.DeleteAll();
//insert data
end;
When I run this D365BC cloud environment, it error out:
ErrorCode:NDBCS:LockTimeout
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.RecordImplementationHelper.MapException(NavCSideException originalException, NavDatabase database, Int32 companyToken, NCLMetaTable metaTable, IRecordBuffer recordBuffer, Boolean makeNewExceptionRemappable) in s:\repo\src\Platform\Server\Prod.Ncl\Data\RecordImplementationHelper.cs:line 909
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.MapException(NavCSideException exception, IRecordBuffer recordBuffer, Boolean makeNewExceptionRemappable) in s:\repo\src\Platform\Server\Prod.Ncl\Data\RecordImplementation.cs:line 3453
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.DeleteAllRecords() in s:\repo\src\Platform\Server\Prod.Ncl\Data\RecordImplementation.cs:line 3672
at Microsoft.Dynamics.Nav.Runtime.NavRecord.DeleteAll(Boolean runApplicationTrigger) in s:\repo\src\Platform\Server\Prod.Ncl\Runtime\NavRecord.cs:line 330
at Microsoft.Dynamics.Nav.BusinessApplication.CodeunitA.GetItem_Scope_962805188.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() in s:\repo\src\Platform\Server\Prod.Ncl\Runtime\NavMethodScope.cs:line 456
at Microsoft.Dynamics.Nav.BusinessApplication.CodeunitA.GetItem(NavCode shipmentNum, NavText packageorAuto)
at Microsoft.Dynamics.Nav.BusinessApplication.CodeunitA.OnInvoke(Int32 memberId, Object[] args)
Could anyone shed me some lights on it? what is the probably reason caused this issue?
Thanks,
Ming

Report
All responses (
Answers (