Scriptrunner field validation exception - user not found in system

Hi guys - I've got a weird issue that has occurred with users whose accounts have been previously deleted, then have rejoined the company (where we used to delete accounts, rather than deactivate them back in JIra 4 days)

 

A particular user on the helpdesk keeps having this error thrown whenever scriptrunner listener triggers on an event:

2017-05-23 03:34:29,677 http-bio-443-exec-1858 ERROR helpdesk.user@s-a-m.com 214x541268x2 1vjatkb 10.54.66.123 /rest/api/2/issue/INC-42126/comment [c.o.scriptrunner.runner.AbstractScriptListener] *************************************************************************************
2017-05-23 03:34:29,677 http-bio-443-exec-1858 ERROR helpdesk.user@s-a-m.com 214x541268x2 1vjatkb 10.54.66.123 /rest/api/2/issue/INC-42126/comment [c.o.scriptrunner.runner.AbstractScriptListener] Script function failed on event: com.atlassian.jira.event.issue.IssueEvent, file: <inline script>
com.atlassian.jira.exception.DataAccessException: com.atlassian.jira.issue.customfields.impl.FieldValidationException: User 'helpdesk user' was not found in the system.
	at com.atlassian.jira.issue.fields.CustomFieldImpl.updateIssue(CustomFieldImpl.java:1078)
	at com.atlassian.jira.bc.issue.DefaultIssueService.updateIssueFromFieldsWithoutScreenCheck(DefaultIssueService.java:702)
	at com.atlassian.jira.bc.issue.DefaultIssueService.updateIssueFromFields(DefaultIssueService.java:661)
	at com.atlassian.jira.bc.issue.DefaultIssueService.validateAndUpdateIssueFromFields(DefaultIssueService.java:557)
	at com.atlassian.jira.bc.issue.DefaultIssueService.validateUpdate(DefaultIssueService.java:229)
	at com.atlassian.jira.bc.issue.IssueService$validateUpdate.call(Unknown Source)
	at Script12.run(Script12.groovy:282)
Caused by: com.atlassian.jira.issue.customfields.impl.FieldValidationException: User 'helpdesk user' was not found in the system.
	at com.atlassian.jira.issue.customfields.converters.UserConverterImpl.getUser(UserConverterImpl.java:50)
	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
	at com.sun.proxy.$Proxy389.getUser(Unknown Source)
	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161)
	at com.sun.proxy.$Proxy389.getUser(Unknown Source)
	at com.atlassian.jira.issue.customfields.impl.CalculatedCFType.getValueFromCustomFieldParams(CalculatedCFType.java:65)
	at com.atlassian.jira.issue.fields.CustomFieldImpl.updateIssue(CustomFieldImpl.java:1074)
	... 6 more

 

 

The username is actually his email address.  Any ideas?

1 answer

This widget could not be displayed.

Hi Scott, 

Do you use a custom listener or one of the Script Runner built in ? 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you