added input checking to prevent runtime errors on bad input

This commit is contained in:
Infineon\StieberD
2025-07-14 09:17:28 -07:00
parent 184d2c2cba
commit 2226f3112b

View File

@ -2553,12 +2553,17 @@ Service ImportBioRadEPPFQAData(RunData, FileName)
DataPoints[-1, 1] = '' ; // Strip final @VM DataPoints[-1, 1] = '' ; // Strip final @VM
If Error_Services('NoError') then If Error_Services('NoError') then
If Error_Services('HasError') then If DataSlotId NE '' then
Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : ' : Error_Services('GetMessage')) If Num(DataSlotId) then
// Update the WM_OUT record for EpiPro
WMORec<WM_OUT_MU_WAFER_THK_RESULT$, Int(DataSlotId)> = 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 end
//Update the WM_OUT record for EpiPro
WMORec<WM_OUT_MU_WAFER_THK_RESULT$, DataSlotId> = DataPoints
Database_Services('WriteDataRow', 'WM_OUT', WMOKeyID, WMORec, True$, False$, True$)
end else end else
Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : ' : Error_Services('GetMessage')) Metrology_Services('LogResults', RDSNo@, Machine, 'UID001', Service : ' : ' : Error_Services('GetMessage'))
end end