Employee Form Errors on HR Tasks

NagiReddy Nagir
Tera Contributor

Hi Members,

 

We could see there are some employee form errors on HR tasks like "Cannot display the employee form because the associated condition returned 2 records. The condition must return one record." How can we fix this issue. 

 

As i know the condition which is part of Employee form should satisfies only 1 record. But we have some records which contains more then 30+ records with same number. Is there any way we can bring back to one record.

 

Thanks,

Nagireddy

 

2 REPLIES 2

Harsh_Deep
Giga Sage
Giga Sage

Hello @NagiReddy Nagir 

 

Please use this in your code-

gr.setLimit(1);

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

NagiReddy Nagir
Tera Contributor

Hi Harsh,

 

We have configured employee forms and under related list created employee form field mappings. This issue is happening only some of the tasks. I don't think that gr.setLimit(1); will work on that.

 

Any changes to process the employee error records and make it one record available?

 

Thanks,

Nagireddy