https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IyMDg3IiwiaGFzaCI6ImQzZjc1OTQzLTkyMDEtNDgyNy05YzEzLTVmNTQ1MTgyM2RiOCJ9
1-800-691-1991 | 9am - 8pm ET
EN

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

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
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

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

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

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.