added input checking to prevent runtime errors on bad input
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user