cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA API error MDM field with specified ID does not exist or was not popula

Former Member
0 Kudos

Hi All,

We are using CE 7.2 and MDM 7.1 SP07. I have written a simple java api code to find limited records.

When I a trying to get the field value from retrieved records, it is giving error as MDM field with specified ID does not exist or was not populated. Please let me know what could be the error cause and solution.

Pasting the code

TableId regTBID = schema.getTableId("Lifecycle_Codes_Code");

TableSchema regtbs = schema.getTableSchema("Lifecycle_Codes_Code");

RetrieveLimitedRecordsCommand retrREG = new RetrieveLimitedRecordsCommand(repositoryBean.getUserSessionContext());

Search srcREG = new Search(regTBID);

ResultDefinition rsdREG = new ResultDefinition(regTBID);

retrREG.setSearch(srcREG);

retrREG.setResultDefinition(rsdREG);

retrREG.setRetrieveDisplayValue(true);

retrREG.execute();

RecordResultSet rssREG = retrREG.getRecords();

rssREG.getRecord(k).getFieldValue(regtbs.getFieldId("Lifecycle_Code_Types_Code_Code"))

above line is giving the error.

Edited by: Abhinandan Desai on Nov 15, 2011 10:39 AM

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

rsdREG.addSelectField(yourfieldid)

you can add all field there.

if you didn't specify, no field returned, i think

Answers (0)