Microsoft Virtualization Discussions


Error "Invalid Block Range" doing Copy-NaHostFile


i am getting "invalid block range" error doing a Copy-NaHostFile, see Picture.

Running Ontap 7.3.3



Re: Error "Invalid Block Range" doing Copy-NaHostFile

This is a bug in Ontap 7.3.4 and older, you need 7.3.5 or newer

View solution in original post


Re: Error "Invalid Block Range" doing Copy-NaHostFile

Hello Good People,

I have the same problem running  7.3.6 and below is the error message i am getting:

Copy-NaHostFile : Clone operation failed to start: Invalid block range.

    + CategoryInfo          : InvalidOperation: (:) [Copy-NaHostFile], EDENSE_CLONE_INVALID_RANGE

    + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Windows.CopyNaHostFile

We have been able to run this command without problem many time before but for some reason it has stopped working.

Any assistance would be greatly appreciated.

Kind regards,



Re: Error "Invalid Block Range" doing Copy-NaHostFile

Hi All,

I've solved my own problem. The issue was that there was a disconnected session on the server and a PowerShell must have been open in that session with DataONTAP loaded. I found the problem when i went to delete the module from C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DataONTAP and got an error saying a DataONTAP PowerShell dll file was open.

I disconnected the session, copied the module back to C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DataONTAP and all is working again.

Try the NEW Knowledgebase!
NetApp KB Site