cancel
Showing results for 
Search instead for 
Did you mean: 

Illegal Argument Exception

Former Member
0 Kudos

Hi,

Am getting the below exception while getting the value from the MDM repository for a field 'X'

java.lang.IllegalArgumentException: Field with ID 'F67_12034' is not Lookup field of table 'T1', so any action on Lookup field can not be evaluated

Any inputs?

Thanks,

Rekha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rekha,

The field X is not a lookup field.Check the type of the 'X' Field in console.

MdmValue mdmValue = record.getFieldValue("field id of X field");

if it is look up field then use below line

if(!mdmValue .isNull){

LookupValue lookupValue = (LookupValue) mdmValue;

}

if it is string ...

String str = mdmValue.toString();

Hope this helps you.

Cheers,

Veeru.

Former Member
0 Kudos

Yes it helps.Thanks Veeru