A specified parameter was not correct: The provided storage backing Datastore:datastore-##:##### for library ##### does not exist, the storage backing might be removed, disconnected, or no longer accessible via Datastore:datastore-##:#####./var/log/vmware/cls.log
YYYY-MM-DDThh:mm | WARN | mfsn63a3-545381-auto-boti-h5:70054873-d0 | cls-simple-activity-5 | ApiMethodSkeleton | Implementation
method reported unexpected exception: com.vmware.vapi.std.errors.NotAllowedInCurrentState
com.vmware.vapi.std.errors.NotAllowedInCurrentState: NotAllowedInCurrentState (com.vmware.vapi.std.errors.not_allowed_in_current_state) => {
messages = [LocalizableMessage (com.vmware.vapi.std.localizable_message) => {
id = com.vmware.ovfs.ovfs-main.ovfs.library_item_files_not_prepared,
defaultMessage = Cannot instantiate library item ##### due to the failure of importing file ##### Template.
ovf, detail error: Error exporting file #####.ovf. Reason: The provided storage backing Datastore:datastore-##:##### for library ##### does not exist, the storage backing might be removed, disconnected, or no longer accessible via Datastore:datastore-##:#####..,
args = [#####, ##### Template.ovf, Error exporting file ##### Template.ovf. Reason: The provided storage backing Datastore:datastore-##:##### for library ##### does not exist, the storage
backing might be removed, disconnected, or no longer accessible via Datastore:datastore-##:#####.],
params = <null>,
localized = <null>
}],
data = <null>,
errorType = NOT_ALLOWED_IN_CURRENT_STATE
}/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres SELECT storageuri FROM cl_storage WHERE id IN (SELECT storage_id FROM cl_library_storage WHERE library_id = '[Library_ID]');Output:
storageuri
-------------------------------------------------------------
Datastore:datastore-##:#####
(1 row)Note: If the storageuri output references a datastore that is no longer present in the inventory, proceed with the resolution steps
VMware vCenter Server 8.x