1-800-691-1991 | 9am - 8pm ET
EN

RestAPI requests to tenant entities fail with "Specified cast is not valid" error

KB ID: 2087
Product: Veeam Backup & Replication
Version: 9.x
Published: 2016-01-18
Last Modified: 2020-08-13

Challenge

After upgrading Enterprise Manager and Backup server  to version 9, RestAPI requests to tenant entities fail with "Specified cast is not valid" error.

Cause

During the first data collection, Enterprise Manager v9 replaces "0" with "NULL" in some tenant-related database fields.

Solution

1. Log in to veeam.com and download this script
2. Stop Veeam Backup Enterprise Manager service
3. Open MS SQL Management studio and connect to the instance hosting Enterprise Manager database.
4. Right-click on Enterprise Manager DB (default name VeeamBackupReporting) -> New Query
5. Copy/paste the contents of the text file into SQL query window
6. Execute the query
7. Start Veeam Backup Enterprise Manager service
KB ID: 2087
Product: Veeam Backup & Replication
Version: 9.x
Published: 2016-01-18
Last Modified: 2020-08-13

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Your report was sent to the responsible team. Our representative will contact you by email you provided.
We're working on it please try again later
Knowledge base content request
By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please go back try again later.