From 2226f3112bb74e5421d8cf598ae6455caed287e6 Mon Sep 17 00:00:00 2001 From: "Infineon\\StieberD" Date: Mon, 14 Jul 2025 09:17:28 -0700 Subject: [PATCH] added input checking to prevent runtime errors on bad input --- LSL2/STPROC/METROLOGY_SERVICES.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/LSL2/STPROC/METROLOGY_SERVICES.txt b/LSL2/STPROC/METROLOGY_SERVICES.txt index e0ad1e3..6732854 100644 --- a/LSL2/STPROC/METROLOGY_SERVICES.txt +++ b/LSL2/STPROC/METROLOGY_SERVICES.txt @@ -2553,12 +2553,17 @@ Service ImportBioRadEPPFQAData(RunData, FileName) DataPoints[-1, 1] = '' ; // Strip final @VM If Error_Services('NoError') then - If Error_Services('HasError') then - Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : ' : Error_Services('GetMessage')) + If DataSlotId NE '' then + If Num(DataSlotId) then + // Update the WM_OUT record for EpiPro + WMORec = DataPoints + Database_Services('WriteDataRow', 'WM_OUT', WMOKeyID, WMORec, True$, False$, True$) + end else + Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : DataSlotId ':Quote(DataSlotId):' is not a number!') + end + end else + Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : DataSlotId is null!') end - //Update the WM_OUT record for EpiPro - WMORec = DataPoints - Database_Services('WriteDataRow', 'WM_OUT', WMOKeyID, WMORec, True$, False$, True$) end else Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : ' : Error_Services('GetMessage')) end