Jump to content

Unhandled exception: Key not found:


---
 Share

Recommended Posts

These PiWeb errors are getting old, real old... 😡
What is this error and why is it happening?
It almost seems random. Fix one, another pops up, fix that and another pops up.
Wash, Rinse, Repeat.... 🙄

When I fix the issue, I rename the group nested in the main group.
Then rename the characteristics in the nested group.
I then create the exact same names for the nested group and characteristics.
The error has not recalled the same group twice and I've done this 6 times with 6 different groups\nested groups.
Below is the last example.

This started yesterday on a program that had no issues.

Common denominator?
I think each error is generated by a Feature/Characteristic that has been copy/pasted then edited. These features/characteristics are sets of 6, 12 and 24. (not capable for using a pattern, yet features are of the same size, depth, etc. with changing locations.)
Unhandled exception: Key not found: "Intake #50.9\9. Removed at Beta"
This string "Intake #50.9\9. Removed at Beta" is a group (Intake 50.9) with a group nested (9. Removed at Beta).

Error Report
OBJECT 
BlockClosure [] in Dictionary>>at:
 copiedValues->#(Dictionary ('Intake #305\Group #305.1 Int\FIP #306.1,5h4 Int TP_Ø0.3_C_A_B' -> '04021ed8-e066-4a08 Per_Ø0.1_C' -> '1c02f3ff-7ef2-4296-b68d-0b4057adbff1' ...etc...) 'Intake #50.9\9. Removed at Beta') method->CompiledBlock [] in Dictionary>>at: outerContext->nil

METHODSTACK
Unhandled exception: Key not found: 'Intake #50.9\9. Removed at Beta'
Dictionary>>keyNotFoundErrorFor:index:
optimized [] in Dictionary>>at:
Dictionary>>at:ifAbsent:
Dictionary>>at:
optimized [] in [] in [] in Zeiss.PiWeb.OMPiWebCMM>>compareCharacteristics:with:
Dictionary>>at:ifAbsent:
optimized [] in [] in Zeiss.PiWeb.OMPiWebCMM>>compareCharacteristics:with:
optimized [] in Interval>>collect:
Interval>>do:
Interval>>collect:
optimized [] in Zeiss.PiWeb.OMPiWebCMM>>compareCharacteristics:with:
optimized [] in OrderedCollection>>collect:
OrderedCollection>>do:
OrderedCollection>>collect:
Zeiss.PiWeb.OMPiWebCMM>>compareCharacteristics:with:
Zeiss.PiWeb.OMPiWebCMM>>shouldListOfCharacteristicsBeUpdated:
Zeiss.PiWeb.OMPiWebCMM>>prepareAndUpdateCharacteristics:
Zeiss.PiWeb.OMPiWebCMM>>updateCharacteristics:
Zeiss.PiWeb.OMPiWebCMM>>updateMeasurement:checkSingleFeature:
Zeiss.PiWeb.OMPiWebCMM>>uploadForInspection:
optimized [] in Zeiss.Calypso.OMMeasProt>>outputProtocolMultiPR
BlockClosure>>on:do:
Zeiss.Calypso.OMMeasProt>>outputProtocolMultiPR
Zeiss.Calypso.OMMeasProt>>outputProtocolMulti
Zeiss.Calypso.OMMeasProt>>setupOutputProtocol
optimized [] in Zeiss.Calypso.OMMeasProt>>outputProtocol
BlockClosure>>evaluate
optimized [] in Zeiss.Calypso.OMWindowsHolder class>>protocolTimeFor:id:
Time class>>microsecondsToRun:
Time class>>millisecondsToRun:
Zeiss.Calypso.OMWindowsHolder class>>protocolTimeFor:id:
Zeiss.Calypso.OMMeasProt>>outputProtocol
optimized [] in Zeiss.Calypso.OMMeasDefinition>>executeSubPart:
BlockClosure>>evaluate
Zeiss.Calypso.OMWindowsHolder class>>executeAndProfile:with:
Zeiss.Calypso.OMMeasDefinition>>executeSubPart:
Zeiss.Calypso.OMMeasDefinition>>executeActiveRunNoWatchDog:
Zeiss.Calypso.OMMeasDefinition>>executeActiveRunWith:
Zeiss.Calypso.OMMeasurement>>measureWith:
Zeiss.Calypso.OMUITestplanEditor(Zeiss.Calypso.OMUIEditor)>>executeInspection
optimized [] in [] in Zeiss.Calypso.OMUIEditor>>executeTotalRun
BlockClosure>>valueOnUnwindDo:
optimized [] in Zeiss.Calypso.OMUIEditor>>executeTotalRun
BlockClosure>>valueOnUnwindDo:
optimized [] in [] in [] in Zeiss.Basics.OMJobProcessor>>basicProcess:wait:
OMExceptionSetWithoutNotification(ExceptionSet)>>handle:do:
optimized [] in [] in Zeiss.Basics.OMJobProcessor>>basicProcess:wait:
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:


#endOfMessage#

PiWeb Unhandled exception 1.JPG

Link to comment
Share on other sites

That's not the issue, I have been using the # symbol for over 20 years and never had an issue.
All I had to do was rename the offending characteristic, I placed an x as a prefix.
"xFIP #306.1,5h4 Int TP_Ø0.3_C_A_B"
Did the same for the name of the group.
Then recreated the characteristics and Groups with the exact names as when they generated an error.
They no longer generate an error.

I believe this is a Copy/Past problem. Something about three sets of data all in sets of 6, 12 and 24.
Example:
I created a feature, Diameter.
"Circle1-203"
Copy and past and the number increments up for each paste (12x).
I created a characteristic; "FIP #306.1", attached a feature.
Then copied and pasted the characteristic 12 times.
Open each characteristic and select the corresponding feature.
Once completed, I add the rest of the string.
FIP #306.1,5h4 Int TP_Ø0.3_C_A_B

I have hundreds of characteristics using the # symbol. Probably close to 250.
Every program I write I follow the same patterns.

"Key not found" caught my attention as it has been used in databases for identifiers.
Basically, I recreated the Key.
Link to comment
Share on other sites

 Share

×
×
  • Create New...