Email this issue plugin: relation "public.AO_544E44_SMTP_CONNECTION" does not exist or Foreign key 'fk_ao_544e33_context_smtp_connection_id' references invalid table 'dbo.AO_544E33_SMTP_CONNECTION'

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When upgrading the plugin Email this issue from an earlier version to the latest available, you may experience issues to use the plugin.

Diagnosis

After upgrading the plugin, you may find errors like the ones below in the atlassian-jira.log:

Invalid table

1 2 active-objects-init-JiraTenantImpl{id='system'}-0 ERROR anonymous [n.java.ao.sql] Exception executing SQL update <ALTER TABLE dbo.AO_544E33_CONTEXT ADD CONSTRAINT fk_ao_544e33_context_smtp_connection_id FOREIGN KEY (SMTP_CONNECTION_ID) REFERENCES dbo.AO_544E33_SMTP_CONNECTION(ID)> com.microsoft.sqlserver.jdbc.SQLServerException: Foreign key 'fk_ao_544e33_context_smtp_connection_id' references invalid table 'dbo.AO_544E33_SMTP_CONNECTION'.

Or

Relation does not exist

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.metainf.jira.plugin.emailissue] at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:95) [?:?] at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:86) [?:?] at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38) [?:?] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.base/java.lang.Thread.run(Thread.java:834) [?:?] Caused by com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library: Database: - name:PostgreSQL - version:11.8 - minor version:8 - major version:11 Driver: - name:PostgreSQL JDBC Driver - version:42.2.6 org.postgresql.util.PSQLException: ERROR: relation "public.AO_544E44_SMTP_CONNECTION" does not exist

Environment

Cause

The plugin Email this issue fails to create the table AO_544E44_SMTP_CONNECTION during the update process.

Solution

  1. Go to Administration > Manage Apps.

  2. Select the option Manage apps on the left menu.

  3. Search for Email This Issue.

  4. Uninstall the plugin from JIRA.

  5. Go to Administration > Manage Apps.

  6. Select the option Find new apps on the left menu.

  7. Search for Email This Issue.

  8. Install the latest version available of the plugin.

  9. After installing, the plugin will have created the missing tables.

ℹ️ Uninstalling the plugin does not result in data loss. All configurations set previously are going to persist.

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.