Skip to main content

Error: 'Reports database not available'

When attempting to run a custom report on a new database, you may encounter the error, reports database not available.

J
Written by Jordan Hutchinson
Updated over 3 months ago

The error is caused by the custom SQL view not existing in your new database. The custom view will need to be copied from a database where the report works. To do this, follow the relevant steps below.

Hosted

If you are hosted, our support team will need to carry out the steps, raise a case confirming the name of the report and the database it is not working on.

On-premise

  1. Take a backup of the affected database.

  2. Log in to the server where SelectPay is installed.

  3. Click the Windows button, and then search for SelectPay reports administrator.

  4. Click SelectPay Reports Administrator, and then enter your SQL instance name.

  5. Click Ok.

    πŸ€“Tip: The description column contains the name from the front end.

  6. Find and select the report, and then click Configure.

  7. Note down the view name.

  8. If it is separate, you will need to log in to your SQL server.

  9. Log in to the server where SelectPay is installed.

  10. Click the Windows button, and then search for SSMS.

  11. Click SSMS, enter any required credentials, then click Connect.

  12. Using the + icon, expand databases.

  13. Expand the database where the report works, and then expand views.

  14. Find and right-click the view from step 7.

  15. Hover over Script View As, Create To, and click New Query Editor Window.

    • The first line will read 'Use [Databasename]'.

  16. Change the database name in the square brackets to the impacted database.

  17. Click Execute.

Did this answer your question?