Symptoms

The Windows service provisioning task fails in Parallels Operations Automation (POA) with the following error message:

The system cannot find the file specified

More detailed diagnostics are provided in the example below:

Exception during execution of MPF request: 'The system cannot find the file specified.
[<response><errorContext description="The system cannot find the file specified." code="0x80070002" executeSeqNo="3">
<errorSource namespace="NTFSManager" procedure="changeFileOwner"/></errorContext></response>]'.

Cause

It is likely that there are files inside the problem webspace with invalid names (for example, names with a trailing space or dot at the end).

There are some file names that are allowed by the NTFS file system but Windows API functions cannot work with them. This issue is described in the Microsoft Knowledgebase article You cannot delete a file or a folder on an NTFS file system volume (see cause 6).

Resolution

Use Process Monitor to trace system calls on the target Windows server during the POA background task's execution. This will help you find the files that are causing the problem. Once these files are identified, delete them one-by-one as suggested in the Microsoft Knowledgebase article mentioned above:

del "\\?\c:\path_to_file_that contains a trailing space.txt "

File with a trailing space can be removed in the following way: for example it is called "filename.pl "

cd C:\CustomerData\webspaces\webspace_00ID\wwwroot\<full_path_to_the_containing folder>
del filename.pl*

Internal content