crash on updating record
Aldevinas Katkus
7-19-19
My code crashes on updating customer's record. Why it happens. When I remove the pricelist from the customer in Standard ERP manually (not in HAL) it does not crash. Any ideas why it crashes?
...
2019-07-19 16:26:01 AD delete pricelist AAA from PBESEAGR
2019-07-19 16:26:01 AD delete... pricelist from PBESEAGR
2019-07-19 16:26:01 AD CopyDVP with some KeyMasterArrType touchedf!=false
2019-07-19 16:26:01 AD
2019-07-19 16:26:01 AD dump of call stack
2019-07-19 16:26:01 AD Exiting to protect the database

Code:
ResetLoop(CUr);

CUr.Code=custcode;
if (ReadFirstMain(CUr,1, true)) then begin
RecordCopy(oldCUr, CUr);
end else begin
end;
if (action=="DEL") then begin
LogText(0, "delete pricelist "& CUr.PLCode & " from " & oldCUr.Code);
CUr.PLCode="";
LogText(0, "delete... pricelist from " & CUr.Code);
err=RecordUpdate(oldCUr, CUr,true);//crash here

if (err==0) then begin
...
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024