An "Attaching volume failed. [7522]" Error Occurs When Attaching an Exported Volume with an Ampersand in the Volume Name.

June 11, 2007 | KB: 1011832
Laserfiche Server - Team (MSDE) 7, Laserfiche Server - United (MS SQL) 7, Laserfiche Server - United (Oracle) 7

Summary

When you attempt to attach an exported or detached volume with an ampersand (&) in the volume name, you may receive the following error message:

    Attaching volume failed. [7522]

    The volume has only been partially attached. You should attempt to delete its folder as soon as possible.

Your repository's error.log file may also contain entries similar to the following:

    XML Parsing error C00CE5xx at line 3 column x : various parsing errors
    Import volume failed: Error parsing LFVol.xml
    [7522] Volume attach failed. Unable to create needed templates
    [7522] Volume attach failed

Cause

The ampersand (&) character is a reserved character in XML. When exporting or detaching a volume with a name that contains an ampersand character, Laserfiche does not correctly account for this. This results in an invalid XML file.

Workaround 1

Rename the original volume so that there is no ampersand character in the name and re-export the volume.

Workaround 2

Manually modify the exported volume's LFVol.xml and LFVolDefs.xml file to remove the ampersand character from the LaserFicheVolume tag's name attribute.