File stays locked even after host instance restart

Hello All,
We have a custom adapter build over File Adapter. The extra things done by the adapter are sorting and archiving of file.
We have 2 BizTalk servers to receive the input files.
The file extension is change to .inprogress when it is being worked upon by the adapter.
The issue is that sometimes the file that comes on the file location gets locked i.e it stays in .inprogress status and is not processed further even if host instances of both the receive servers are stopped. If we try to rename the file we keep getting
an error that the file is being worked upon by some program.
Please suggest what to do.

--We have 2 BizTalk servers to receive the input files.---
It happened due to 2 BizTalk servers.
Try to rename from command prompt (DOS) using admin access or try to move the file inside some other folder. 
Regards
Suman

Similar Messages

  • I keep getting the error message "could not open a scratch file because the file is locked" even after resetting my preferences. I have to use Ctrl, Alt, Shift to start photoshop every time

    I'm unable to start Photoshop without holding down Ctrl, Alt, Shift each time I open it. Also Lightroom is now unable to open photos in Photoshop. I'm at a loss as to how to fix this.

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    To help others help you, please read through this article and provide any additional relevant details.

  • I can't unlock my ipod nano 4th generation.  The screen is still working, I can sync to my computer and I can see when it is charging but it stays in the mode of being locked even after I unlock it at the top.

    I can't unlock my ipod nano 4th generation.  The screen is still working, I can sync to my computer and I can see when it is charging but it stays in the mode of being locked even after I unlock it at the top. What could be wrong?

    Hi Saint09,
    Thanks for visiting Apple Support Communities.
    I'd recommend the steps in our iPod troubleshooting assistant:
    http://www.apple.com/support/ipod/five_rs/nano4gen/
    Regards,
    Jeremy

  • I have just updated to Yosemite, but now I can't get the custom shortkeys to work. In Mavericks I had no problem whatsoever, but now even after googeling and restart no solution. Does anyone have the problem? All the other shortcuts work!

    I have just updated to Yosemite, but now I can't get the custom short-keys to work.
    In Mavericks I had no problem whatsoever, but now even after googeling and restart no solution.
    Does anyone have the problem? All the other shortcuts work!

    Hi Thomas,
    I can confirm the problem you are hitting. The XML test trace does not get recognized at all, and it defaults to Eclipse's basic Open File behaviour. I am not sure if it's because the format definition is missing, or if it's because something prevents the trace type from being recognized. I will open a bug about it.
    Thanks for identifying this issue!
    In the meantime, if you'd like to experiment with XML analyses, you can also take a look at the example at https://github.com/tracecompass/xml-analysis-example .
    Cheers,
    Alex

  • HT3775 why can't i play .wmv file in quicktime even after i download codec from windows? can anyone help me wit this please!!!!!

    why can't i play .wmv file in quicktime even after i download codec from windows? can anyone help me wit this please!!!!!

    Have you done the obvious things to try to fix it: quit Quicktime then start it back up again, log out then back in, reboot.
    Edit: Just read one of your later posts. If VLC won't play it, this is unrelated to Quicktime and Flip4Mac. Are you sure these wmv files are okay?

  • Data lock even after commit work and wait

    Hi Experts,
    Data is still locked even after commit work and wait step has run, which made me very confusing.
    The following are the details:
    These steps are in a FOP.
    Step1: Change Move-in Date of a move-in document in background after get the new move-date from user.
    Step2: Run BAPI_TRANSACTION_COMMIT and pass the wait parameter.
    Step3: Bring move-in document transaction to the user for other information changes.
               After the user confirms the changes and presses SAVE button, error message shows that the move-in document is still locked. But no other transaction is opened for the specified move-doc changing.
    Does any1 have any idea on this? How can I solve this issue?
    Thanks in advance and points will be rewarded.
    Vincent

    Hi,
    Normally every BAPI will work on Update task so that the data will be updated once the commit work is done. For the commit work, we will normally call the bapi function module - BAPI_TRANSACTION_COMMIT. It should work.
    In your case, just try the below option:
    Please call the bapi - BAPI_ACC_DOCUMENT_POST & BAPI_TRANSACTION_COMMIT in a seperate function module and call this function module in your program (just pass the import / export / table parameters accordingly).
    For the information, I had once a similar type of issue and it got solved once I did like the above.
    Regards,
    Selva K.

  • No books appear in ibooks-ipad3 when i do add file to librery even after synic

    HI ALL,
    plz help ,no books appear in ibooks-ipad3 when i do add file to librery even after synic

    Did you try dragging them into iTunes in the Books tab Under the library heading in the left sidebar of iTunes? Can you see the PDF files in iTunes on your computer?

  • Can't delete a file displayed in ListView ("File in use") even after removing it from window.

    I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
    Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
    I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
    Dim intCnt As Integer = 0
    Do
    ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
    lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
    ".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
    Thx

    Mugsy,
    Consider this as food for thought, even if you don't use it.
    If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
    As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
    Public Class MyImages
    Private _bmp As Bitmap
    Private _name As String
    Private _sourceFilePath As String
    Private Sub New(ByVal bmp As Bitmap, _
    ByVal name As String, _
    ByVal filePath As String)
    _bmp = bmp
    _sourceFilePath = filePath.Trim
    _name = name.Trim
    End Sub
    Public ReadOnly Property Bmp As Bitmap
    Get
    Return _bmp
    End Get
    End Property
    Public ReadOnly Property Name As String
    Get
    Return _name
    End Get
    End Property
    Public ReadOnly Property SourceFilePath As String
    Get
    Return _sourceFilePath
    End Get
    End Property
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    ByVal imageName As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
    Throw New ArgumentException("The name of this image cannot be null or empty.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    Optional ByVal removeFilePathAlso As Boolean = False)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
    From mi As MyImages In miList _
    Where mi.SourceFilePath = imageFilePath
    If findInstance.Count <> 1 Then
    Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
    "image file path is not in the collection.")
    Else
    Dispose(findInstance.First)
    If removeFilePathAlso Then
    My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
    End If
    miList.Remove(findInstance.First)
    End If
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Private Shared Sub Dispose(ByVal instance As MyImages)
    If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
    instance._bmp.Dispose()
    instance._bmp = Nothing
    End If
    End Sub
    End Class
    When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
    I tested it with a simple form:
    Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Imports System.IO.Path
    Public Class Form1
    Private miList As New List(Of MyImages)
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim desktop As String = _
    My.Computer.FileSystem.SpecialDirectories.Desktop
    Dim imgFolder As String = _
    Combine(desktop, "Images")
    PictureBox1.BorderStyle = BorderStyle.FixedSingle
    For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
    MyImages.AddNew(miList, imgFilePath)
    Next
    btn_RemoveFirstImage.Enabled = False
    CheckBox_RemoveSourcePath.Enabled = False
    End Sub
    Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_ShowFirstImage.Click
    Try
    If miList.Count >= 1 Then
    With PictureBox1
    .SizeMode = PictureBoxSizeMode.Zoom
    .Image = miList(0).Bmp
    End With
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    End If
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_RemoveFirstImage.Click
    Try
    If miList.Count >= 1 Then
    MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
    End If
    PictureBox1.Image = Nothing
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    End Class
    Running it is straightforward:
    Now when I click to show the first one:
    A different image is shown because that first one no longer exists - either in the collection or in the folder.
    Closing/disposing all references is the key and the order matters.
    Something to consider the next time around. :)
    Still lost in code, just at a little higher level.

  • 100% CPU! HALP! w/ Win 8.1 Pro infected by malicious content that reoccurs even after a factory restart. I've tried near everything malwarebytes, win defender, I'm still too new to effectively use MMC, or GPEDIT.MSC,

    Some form of malicious content is assaulting my PC's registrys, drivers, along with portraying as other Users, and programs. It's a constant struggle to keep my property, authority, permission under my control over security ownership of my files etc. I
    have seen PUP and PUM files in scans, I'm still learning the different forms of malicious content, but I have a feeling there's male-ware, root-kit, and ad-ware that I haven't Identified. Even though my network is private, haven't even created a home-group,
    and all my remote access is turned off, but I haven't ruled out someone still being clever enough to access my system/network remotely. I've tried to keep my computer as secure as possible, multiple passwords, and two-step verification I thought I was going
    off the deep end when I started to suspect my SYSTEM profile had been compromised. I can't tell if it's a phony, or actually my system taking away everything until I literally cant do a thing on my computer.  I didn't want to remove any files that I shouldn't.
    When ever I feel that I'm about to lose complete control over my PC I restore it to factory condition, it's about all I can do. Even after 5 restarts it's persistent. I"ve stopped short of using the more extreme programs like Anti-maleware tool Adlice,
    RogueKiller, and Combofix. I've actually learned a lot about script, and IS no thanks to my computers new little friends. I've been dealing with this malicious content since december upgrading OS from 7 up to 8.1 has really been the only thing my computer
    and I from being completely run over. Some newer up to date advice would be great, I don't want to use out of date or ineffective programs the instructions I've been following are sometimes several years, to at least months old. No point in waisting my time
    if the information is irrelevant and out of date. I'll attach some of my reports, and the progams that I have/haven't used yet. I have several MS accounts, from XboX, college, and this old one I was contemplating on putting all three of them in an admin group,
    making it more difficult to challenge my authority, or maybe just joining a workgroup/domain would also work. Last night I did use GPEDIT.MSC to disable inheratance, followed by a taking global ownership, if it I actually managed to get GPEDIT.MSC to can't
    wait to get my hands I"m kind of enjoying myself though, it's been fun teaching myself IS I always wanted to learn how to use CMD script with proper syntax, I was starting the think that my only solution was to learn command prompt, but there may be a
    newer programm that just might work. I've been using reginout, drivertoolkit, MBAM/backup/chameleon, ncleaner, cclearner, and many others. I've scanned but haven't put combofix, roguekiller, or Adlice to the grind stone, I'd probably do more harm not being
    able to tell whats more benine for beneficial. Here is a link to the instructions that I was following https://forums.malwarebytes.org/index.php?/topic/149492-pcregserviceexe-infection-pup-infections/ the members description was also very close to what I was
    dealing with, he just had better luck with MBAM

    You will find appropriate Consumer-specific support by beginning your own, new thread in this forum =>
    http://answers.microsoft.com/en-us/protect/forum/protect_scanning
    ~Robear Dyer (PA Bear) MS MVP-Windows Client since 2002 Disclaimer: MS MVPs neither represent nor work for Microsoft

  • .itl file is locked error after installing new build - iTunes won't open

    After upgrading to the new build itunes won't open. I receive an error message "The iTunes Library .itl file is locked, on a locked disk, or you do not have write permission for this file." When I check permissions I have full control. I tried uninstalling all apple components - iTunes, Quicktime, apple updater - rebooting and then reinstalling but the same error message comes up when I try to start itunes.

    Even after uninstalling the .itl file remained in my itunes music folder. I deleted this file after uninstalling again and then reinstalled and the issue was resolved.

  • Sqlnet.ora trace files getting generated even after turning off tracing

    Hi,
    I have recently added the following parameters to the sqlnet.ora file.
    TRACE_LEVEL_SERVER=16
    TRACE_FILE_SERVER=SERVER
    TRACE_DIRECTORY_SERVER=/ftpland/trace
    TRACE_TIMESTAMP_SERVER=on
    Even after removing these enteries from the sqlnet.ora I still see the trave files being generated.
    #####enable tracing###################
    #Trace_level_server=0
    #Trace_filelen_server=1000
    #Trace_fileno_server=1
    #Trace_timestamp_server=on
    #Trace_directory_server=/opt/oracle/product/10.2.0/network/trace
    #Diag_adr_enabled=off
    AUTOMATIC_IPC = ON
    TRACE_LEVEL_CLIENT = OFF
    SQLNET.EXPIRE_TIME = 10
    NAMES.DEFAULT_DOMAIN = bsca.eds.com
    NAME.DEFAULT_ZONE = bsca.eds.com
    SQLNET.CRYPTO_SEED = "232166927-1713903352"
    NAMES.DIRECTORY_PATH = (ONAMES,TNSNAMES)
    NAMES.PREFERRED_SERVERS =
          (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = TCP.bsca.eds.com)
              (PROTOCOL = TCP)
              (Host = oraclenames1.bsca.eds.com)
              (Port = 1575)
            (ADDRESS =
              (COMMUNITY = TCP.bsca.eds.com)
              (PROTOCOL = TCP)
              (Host = oraclenames2.bsca.eds.com)
              (Port = 1575)
    NAME.PREFERRED_SERVERS =
          (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = TCP.bsca.eds.com)
              (PROTOCOL = TCP)
              (Host = oraclenames1.bsca.eds.com)
              (Port = 1575)
    (ADDRESS =
              (COMMUNITY = TCP.bsca.eds.com)
              (PROTOCOL = TCP)
              (Host = oraclenames2.bsca.eds.com)
              (Port = 1575)
    BEQUEATH_DETACH=YES
    Regards,
    VN

    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME =ROSDMP.bsca.eds.com)
          (ORACLE_HOME = /opt/oracle/product/10.2.0)
          (SID_NAME = ROSDMP)
    TRACE_LEVEL_LISTENER=16
    I believe, this is the reason, you are seeing trace files even after disabling it in sqlnet.ora

  • SEM BPS locking even after user switches to a new variable value

    Hi,
    This is locking related question & appreciate any kind of suggestion.
    Users are locking previously planned variable value even after changing to a new value which is causing another user with a  locking issue.
    I've a variable GROUP defined at planning level & included in the planning folder.
    let's say USER1 is planning for GROUP1 & saved the data after planning.
    same user has changed the variable to GROUP2 & is planning now without leaving UPSPL session.
    at this point, when USER2 tries to plan for GROUP1 & is faced with a message "USER1 is currently processing the data".
    currently, USER1 is planning for GROUP2 right? so, why it's still giving locking message (locking GROUP1).
    I even followed SAP note 635244 & created a DB table & included GROUP characteristic in to the table but of not much help.
    even after this, I still see that USER1 is locking both GROUP1 & GROUP2 in report UPC_ENQUEUE_READ.
    Appreciate if any one can share your ideas to deal this kind of issue.

    Hi Hari,
    You indicated in your 1st post, that User 1 is able to access both Group 1 and Group 2. I am assuming in your configuration, multiple users share the same values in the Group variable and they are making selections on execution of your planning application.
    If this is the case, User 1 switching to Group 2 using, e.g., a drop-down menu does not remove the lock on Group 1. Hence User 2 will get the lock message.
    You defining a table in DDIC only specifies Group as a lock relevant characteristic. It will not prevent locking in this fashion.
    The probable options could be:
    1. Consider dividing Groups amongst users, and use user-specific values for your variable;
    2. Consider additional characteristic that will separate data sets.
    The central question I would ask about this planning process, is why would different users be editing the same group at the same time? Is there a way to differentiate their planning needs? That might help in your modeling.
    Hope this helps.
    William Lee

  • Why does the print cue window stay open even after job is done?

    In Tiger, and every other version of OSX I have any recollection of using, the printer window opens to display what's in the cue when you select to print something. Once printing is done, this cue closes. Since installing Leopard, everytime we print from our iMac, MacBook or MBP, the print cue window stays open indefinitely after the job is done, requiring a manual closing of the window. I can't for the life of me fathom what benefit this brings or who would want this. Is this part of Leopard or a problem with our install? Something I can turn off?

    If you control-click (or right click) on the open printer queue in the Dock you can choose to have it auto close once the spool file is sent.
    As to why this is necessary in Leopard, well I haven't seen a good enough answer to date...
    PaHu

  • IPAD Screen Stays Black even after reset.

    Hello
    I have a case similar to the one posted by darKnghtV  on Jun 24, 2012 10:12 AM related to screen stays Black.
    after I have stopped using the device for 3 days, I came back and the screen came back on. I reset the device to factory setting and it has been working fine for two days.
    how can I confirm if the issue is a hardware or software?
    if the device is defective, how can I exhaust the screen to show the issue again so I can take it to the service center?
    Regards

    I have done this few times.
    however I had to use screen shot, view the image from  my PC to have the unit reset to factory setting. even after that screen wouldn’t start.
    when I took it in the car and it was a hot day, I reach the work shop and the unit was really worm, screen came back on and it did not go black again for the past three days.
    what is puzzling me, was it fixed after the reset and it is a software issue, or is it a hardware ?

  • Spell Check Box stays up even after sending mail.

    Lion truly has some bugs. More annoyances, which is what bugs are I guess. I noticed that in Mail now, after you hit send and cycle through all the spell check changes, the spell check box remains open, even after you've sent the email off. I know it's just one click to close it, but it makes you think the mail didn't get sent. It's so more official when everything just closes up, you know? Am I being too picky here?

    yep same here, my spell check box stays open - any fixes?

Maybe you are looking for

  • Mac Mini no longer reads or writes DVD-R DL discs

    My mac mini stopped reading and writing dual layer DVD-R disks about a year ago for no reason, even ones that IT created in the first place. Is my drive faulty or is there some setting that got changed when I upgraded to Lion and then Mountain Lion?

  • Ultra 60 with a Hercules VGA Card wont show me anything

    Hi there, i just have a Ultra 60 on my desk, and unfortunately I am not getting anything on my screen. Is there anything special I should look after to get the U60 with the Hercules PCI Card to work? The Model of the hercules VGA Card is: Terminator

  • How can I download a video that I have stopped

    I have stopped a video download accidentally by pushing the stop button in iTunes The problem is that I can't continue the download now. There is no download area Available in the store anymore. In the video area is a grey monitorsymbol next to the N

  • Formatting chapter titles in table of contents

    I am finishing up my dissertation and am having trouble with the TOC. My chapter titles are usually a couple of lines long: e.g. Chapter 1 Blah Blah Blah Blah Blah Blah Blah It looks nicer on separate lines like this. But when I insert a TOC, it's li

  • Accessing a returned SYS_REFCURSOR

    Hi, i have a problem accessing records in a weak sys_refcursor (that was returned from another function) inside a PL/SQL function. I alwys get a "PLS-00487: Invalid reference to variable 'REC2'" where rec2 is my loop record variable. Here is a simpli