Skip to main content
NetApp Knowledge Base

File operation failed with error reporting file is open in another program

Views:
216
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:
2/11/2025, 5:11:46 AM

Applies to

  • ONTAP 9
  • CVO
  • CIFS/SMB

Issue

  • Windows Errors:
    • File operation failed with error : The action can't be completed because the file is open in another program
    • Error: <filename> is locked for editing by 'another user'
  • ONTAP CLI command vserver locks show for affected file indicates lock is applied:

Example:

::> vserver locks show -vserver <vserver_name>

Vserver: kct
Volume     Object Path          LIF           Protocol Lock Type   Client
--------   -------------------- -----------   -------- ----------- ----------
kct_volume /kct_volume/aaa.xlsx  kct_cifs_lif1  cifs    share-level 10.1.1.2
                Sharelock Mode: read-deny_delete
                                                         op-lock   10.1.1.2
                Oplock Level: batch
2 entries were displayed.

Example:

::> vserver lock show -vserver svm1 -volume vol1 -path /vol1/folder1/file1.xml

Vserver: svm1
Volume   Object Path                     LIF    Protocol  Lock Type   Client
-------- -------------------------  ----------- --------- ----------- ----------
vol1     /vol1/folder1/file1.xml         lif1     cifs     op-lock    10.xx.xx.xx
        Oplock Level: null
        share-level 10.xx.xx.xx
        Sharelock Mode: read_write-deny_write_delete

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.