Failed to merge document of type <Name of the document template>

Failed to merge

The process cannot access the file C:\Users\<Windows Username>\AppData\Roaming\LawMaster\PracticeManagement\<Production Database Folder>\<LawMaster Username>\temp\<Name of the template>.dat because it is being used by another process.


  1. <Windows Username> is the Windows Username of the person logged into the machine in question running LawMaster
  2. <Production Database Folder> is the name of your Production database
  3. <LawMaster Username> is the LawMaster username that was used to login to LawMaster


There is no setting in LawMaster that governs this behavior as the issue is occurring in Word and Windows.

The error message that LawMaster is displaying is being returned by Windows to LawMaster because the file that LawMaster needs to use is currently in use by another program/process

What may be happening is:

  1. Your Antivirus is locking up the file.
    1. Setting LawMaster and/or that location mentioned in the error as an exception in your Antivirus might resolve the issue.\
      (Turning off your anti-virus in the first instance should help identify whether this is the cause)
      Your IT people should be able to help you with this.

    And /or 

  2. There are multiple instances of Word open
    1. Rebooting the machine in question; or
    2. Open task manager on the PC in question and stop any errant instances of Word
    3. Then clear the LawMaster temporary files on the machine in question by opening LawMaster on that machine after the reboot and going to File > Clear Temporary Files

    And /or 

  3. There is another Word issue occurring to do with security:
    1. Go to your Windows taskbar,
    2. Right click, and
    3. Select ‘show windows side by side’.
    4. At this time, you may notice a warning window like this:
    5. If there is no message can you:
      1. Send through the logs.  To do this:
      2. Go to C:\Users\%username%\AppData\Roaming\LawMaster\PracticeManagement\Logs
      3. Where %username% is the Windows username of the person logged in using LawMaster
      4. Copy all the files in the folder and send them through to the LawMaster help desk.

    And /or 

  4. You are using the Save as menu in Word after opening the folio in LawMaster.
    For Example: The order in which you might be creating the PDF if using Save As from Word. 
    1. You right click on a Word folio in LawMaster and select Edit Attachment
    2. This downloads the Word document from your LawMaster DMS to your local machine and opens the document in Word
    3. When in Word you go to "Save as PDF" that Word document, Word then runs a process to convert the Word document into a PDF and via Windows locks the local file.
    4. In certain circumstances this can also change the location of the Word document on your local machine meaning you are no longer working on the document that has been checked out by LawMaster but rather another copy of the Word document.
    5. Therefore when you then save the document and close it and LawMaster tries to upload the files back into LawMaster's DMS several things can happen:
      1. Windows hasn't released the Word document after turning it into a PDF and so you get the error mentioned; and/or
      2. The Word document uploaded back to LawMaster is not the one original copy you checked out and hence the changes you made are not there.

If you are following the above steps the process you should follow to make sure that the above issue doesn't occur is:

  1. right click on a Word folio in LawMaster and select Edit Attachment
  2. Make the changes to the Word document as need but do not use the Save As option at any point
  3. Save and Close the Word document so it get's checked back in to LawMaster.
  4. When you then want to make a PDF of the document right click on a Word folio in LawMaster and select Open Attachment (Read Only)
    NOTE: Make sure the document has fully checked back in before doing this step.
  5. Now choose the Save as PDF option in Word to create your PDF

There is no content with the specified labels