more than one row in the ExternalEntity table

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

A user start seeing problems with their account and can no longer login.

The following appears in the atlassian-jira.log:

An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- 
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'formatUser' in class com.atlassian.jira.plugin.userformat.DefaultUserFormatManager
threw exception class com.atlassian.jira.exception.DataAccessException : There is more than one row in the ExternalEntity table for name: testuser
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:251) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256)
at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:422) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
...

Resolution

  • Clear the ExternalEntity of the duplicate listed in the error log then restart JIRA
    (info) In the example case above you'll want to find the entries for testuser and clear one entry

SELECT * from external_entities where name = <name>;

Always back up your data before performing any modification to the database. If possible, try your modifications on a test server.

Last modified on Mar 30, 2016

Was this helpful?

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