Batched notifications are not working when using MS SQL database

Still need help?

The Atlassian Community is here for you.

Ask the community


After upgrading or installing Jira 8.+ and turning on Batched Notifications, notifications are never sent at all.


  • Notifications are sent when disabling Batched Notifications in ⚙ > System > Batching email notifications

  • The following error should be found in atlassian-jira.log, indicating that the tables used by the batched notification functionality can't be found:

    2020-07-23 12:35:49,196+0000 Caesium-1-4 ERROR ServiceRunner     [c.a.j.p.i.batching.cron.BatchNotificationJob] Exception during batch notification job
    com.querydsl.core.QueryException: Caught SQLServerException for select "AO_733371_EVENT"."ID", "AO_733371_EVENT"."EVENT_TYPE", "AO_733371_EVENT"."USER_KEY", "AO_733371_EVENT"."ACTION", "AO_733371_EVENT"."ACTION_ID", "AO_733371_EVENT"."EVENT_BUNDLE_ID", "AO_733371_EVENT"."CREATED" from "null"."AO_733371_EVENT" "AO_733371_EVENT" where exists (select "AO_733371_EVENT_RECIPIENT"."ID" from "null"."AO_733371_EVENT_RECIPIENT" "AO_733371_EVENT_RECIPIENT" where "AO_733371_EVENT_RECIPIENT"."EVENT_ID" = "AO_733371_EVENT"."ID" and "AO_733371_EVENT_RECIPIENT"."STATUS" = ? and "AO_733371_EVENT_RECIPIENT"."CONSUMER_NAME" = ? and "AO_733371_EVENT_RECIPIENT"."SEND_DATE" <= ?) and ("AO_733371_EVENT"."EVENT_TYPE" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) and "AO_733371_EVENT"."ID" >= ? order by "AO_733371_EVENT"."ID" asc offset ? rows fetch next ? rows only
    	at com.querydsl.sql.DefaultSQLExceptionTranslator.translate(
    	at com.querydsl.sql.Configuration.translate(
    	at com.querydsl.sql.AbstractSQLQuery.fetch(
    Caused by: Invalid object name 'null.AO_733371_EVENT'.
  • When checking the DB configuration file <JIRA_HOME>/dbcondig.xml, you should see that the schema-name tag is missing::

        <username>Sanitized by Support Utility</username>
        <password>Sanitized by Support Utility</password>
        <validation-query>select 1</validation-query>


The DB configuration file is missing the schema-name tag, which is required for the batched notifications database tables to be properly created.


Follow the steps in Connecting Jira applications to SQL Server 2017 to ensure that the dbconfig.xml file is properly configured, and ensure that the schema-name tag is properly listed. Once that configuration file has been updated, it will be necessary to restart Jira for the changes to take effect.

Last modified on Jan 5, 2021

Was this helpful?

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