Service Management Email Request "Unexpected error while running action as user" Error

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.


Jira Service Management Email Request would not be able to process the Email with an error like below shown in Jira Administration Page > Application > Email Requests > View Log of the affected Email Address then move to the Processing Tab:

The following appears in the atlassian-jira.log:

2019-02-22 09:39:22,256 ERROR [] Caesium-1-1 anonymous     Exception when MailHandlerWorker handles message:
java.lang.RuntimeException: Unexpected error while running action as user ''
        at com.atlassian.pocketknife.internal.util.runner.AuthenticationContextUtilImpl.runAs( [?:?]
        at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.inEmailContext( [?:?]
        at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$doCreateNewOrCommentOnIssueWithMailChannel$15( [?:?]
        at io.atlassian.fugue.Either$Right.fold( [fugue-4.5.0.jar:?]
        at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.doCreateNewOrCommentOnIssueWithMailChannel( [?:?]
        at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$createNewOrCommentOnIssueWithMailChannel$6( [?:?]
        at com.atlassian.pocketknife.step.EitherStep2.lambda$null$0( [?:?]
        at io.atlassian.fugue.Either$RightProjection.flatMap( [fugue-4.5.0.jar:?]
        at io.atlassian.fugue.Either.flatMap( [fugue-4.5.0.jar:?]
		....List continues....
Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractList.add( [?:1.8.0_181]
        at java.util.AbstractList.add( [?:1.8.0_181]
        at com.atlassian.servicedesk.internal.comment.InternalServiceDeskCommentServiceImpl.validateMailAttachmentsToAdd( [?:?]
        at com.atlassian.servicedesk.internal.comment.InternalServiceDeskCommentServiceImpl.addEmailAttachmentsToIssue( [?:?]
        at com.atlassian.servicedesk.internal.comment.InternalServiceDeskCommentServiceImpl.addAttachmentsAndBuildComment( [?:?]



One of the cause is due to the Workflow Property set on a particular status which is "jira.issue.editable" that would not allow any Editing operation including adding an attachment.


Edit the Workflow and remove the property from the affected Status. Publish it to take an effect.

DescriptionService Management Email Request "Unexpected error while running action as user" Error
ProductJira Service Management, Jira
Last modified on Nov 23, 2020

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.