Assign to value is 16 while creating task

sayan3
Tera Contributor

Hi Expert,
We are facing one issue with assigned to value.
While creating custom task from request through workflow, though assign to is empty but 'i' icon is coming with backend value 16, which is nothing, Please refer attached screenshot.

What could be cause and how can we fix it.

Thanks in advance,

6 REPLIES 6

Ehab Pilloor
Mega Sage

Hi @sayan3,

Please check the workflow if particular task creation has been filled. Also see if any Assignment rules are present for catalog task that fit your particular task.

 

Regards,

Ehab

sunil maddheshi
Tera Guru

@sayan3  Seems like reference value (like Assigned to) was populated with a Sys ID that does not match any valid record in the referenced table (sys_user in this case), or the record was deleted. Maybe you try to update the records with invalid values by running a fix script or background script:

 

 
 
var gr = new GlideRecord('your_custom_task_table');
gr.addQuery('assigned_to', '16'); // or use "ISNOTEMPTY" to catch all invalids
gr.query();
while (gr.next()) {
  gr.assigned_to = ''; // clear the invalid reference
  gr.update();
} 

Please mark correct/helpful if this helps you

Ankur Bawiskar
Tera Patron
Tera Patron

@sayan3 

are you setting assigned to from somewhere? workflow? before business rule etc

some script is setting the sysId but it's invalid and hence it shows this way

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you for responding, assignment rule is there where we set assignment group only not assign to