Consider the following scenario:
You use the AlwaysOn Availability Groups feature in Microsoft SQL Server 2014.
You have an availability group whose backup-preference setting is set as "Prefer Secondary" or "Secondary only."
You create a maintenance plan that uses a backup database task to back up a database, and the database belongs to the availability group.
You select the "Verify backup integrity" option, and click to clear the "For availability databases, ignore replica priority for backup and backup on primary settings" option for the backup database task.
You execute the maintenance plan.
In this scenario, you receive the following error message:
Executing the query "<Query statement>" failed with the following error: "Cannot open backup device '<File path of the backup file>'. Operating system error 2(The system cannot find the file specified.). VERIFY DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
The issue was first fixed in the following cumulative updates of SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.