George James Software logo

KB0100

ERROR #514: Map expression - unknown or invalid field: MyClass.myProperty

Applies to: Caché Objects

This error can occur when compiling a class that uses %CacheSQLStorage.

One possible cause is the omission of an index definition which defines the Object Identifier of the class.

In the CDL you should have an entry that looks similar to this:

index RowBasedID { attributes = patientNumber; extent = 0; idkey; primarykey = 0; unique = 0; }

Alternatively, using Object Architect, open the Properties window for the Class and go to the Index tab. Make sure that you have an index defined that has the checkbox labeled "This is used as the Object Identifier" checked. If not you will need to create one containing all of the subscripts that comprise the RowId specification for your class.

Last reviewed: June 26, 2002

Back to top