Parameter is not valid. Failed to open Veeam Backup and Replication.

KB ID: 1079
Product: Veeam Backup & Replication
Version: 4.x
Published: 2011-07-19
Last Modified: 2020-08-13
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Challenge

Backup and Replication won't open, but jobs will still continue to run.  Error occurs when opening the Veeam Software.  

"Parameter is not valid"


When opening the Veeam.Backup.Shell.exe, the following error occurs: Parameter is not valid
 

User-added image

When you press OK, the service will shut off again, and Backup and Replication will not open.  Jobs will continue to run in this state.

Cause

The number of sessions in the sessions history within the Veeam database become so large that Veeam fails to start with described error message box.

Solution

To workaround the problem you may use the following script. The script will delete sessions history but it will keep the information about last 1000 session from the database.

Code: 

declare @bsess as table([id] uniqueidentifier)

insert into @bsess(id)
select b.id from BSessions b where b.id not in
(
      select top 1000 id from BSessions order by creation_time DESC
)

delete BSessionInfo
where session_id in (select id from @bsess)

delete BSessions
where id in (select id from @bsess)


To run the script you may use SQL management studio or you may also follow next steps:

1. Stop Veeam services

2. Save the file to any file, "script.sql" for example.

3. Run the following command: sqlcmd -S COMPUTER\INSTANCE -d VeeamBackup -i
PATHTOSCRIPT\script.sql -o c:\resetresult.txt

where COMPUTER is the name of computer with database, INSTANCE is the name of instance (VEEAM for default installation), PATHTOSCRIPT is the path to the script.

4. Start the services

More information

As always, Veeam recommends backing up the database before running the SQL script as a precaution.

Click here to send feedback regarding this KB, or suggest content for a new KB.
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.