Skip to Content
0
Jun 16, 2011 at 11:38 AM

Unexpected field type -1 in MDM Java API

16 Views

Hi,

Our repository has been working fine for months, but after a reload of our repository we are suddenly getting errors in our MDM Java API program. The code which fails is:

Record[] recLocations =	MDM_MaterialFullDetailView.getAllRecords(locationsTableSchema, usc);

It fails with the following error:

java.lang.UnsupportedOperationException: Unexpected field type -1
	at com.sap.mdm.internal.schema.PropertiesHelper.createField(PropertiesHelper.java:274)
	at com.sap.mdm.internal.schema.PropertiesHelper.convertFrom(PropertiesHelper.java:281)
	at com.sap.mdm.internal.data.RecordMetadata.<init>(RecordMetadata.java:56)
	at com.sap.mdm.internal.data.RecordsLoader.<init>(RecordsLoader.java:88)
	at com.sap.mdm.internal.data.RecordsLoader.<init>(RecordsLoader.java:39)
	at com.sap.mdm.internal.data.RecordResultSetHelper.convertFrom(RecordResultSetHelper.java:26)
	at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.execute(RetrieveLimitedRecordsCommand.java:184)
	at com.sap.mdm.material.fullmaterial.MDM_MaterialFullDetailView.getRecords(MDM_MaterialFullDetailView.java:860)
	at com.sap.mdm.material.fullmaterial.MDM_MaterialFullDetailView.getAllRecords(MDM_MaterialFullDetailView.java:957)
	at com.sap.mdm.material.MDM_EditMaterialView.onActionSaveUpdatedMaterial(MDM_EditMaterialView.java:4787)

I cannot find any more information in any logs or traces what field is causing this. The function is looking up all records from a qualified lookup table, containing more than 30 fields. I have checked the table dbo.A2i_CM_Fields in the database which contains all repository fields and their field types, but I cannot find any with field type -1.

I don't know of any changes in the repository that could have caused this.

Does anyone know how to find which field is causing this?

What is field type -1?

MDM version 5.5.61.63.

Thanks for all responses!

Br,

Kenneth