SXP Packager error occurred while saving directories and files. The system cannot find the path specified
search cancel

SXP Packager error occurred while saving directories and files. The system cannot find the path specified

book

Article ID: 404262

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

SXP Packager returns following error :

An error occurred while saving directories and files.
Path:
<long_path with size exceeding 256 characters>

The system provides the following error message:
The system cannot find the path specified.

Environment

Client Automation 14.5

Cause

This problem occurs when a very long path is scanned (256 or more characters)

Resolution

  1. - Open a cmd with Administrative privileges and execute this command
     
    reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f

    This will set 1 for registry key value :
    HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled = 1


  2. Copy the file C:\Program Files (x86)\CA\DSM\Bin\sxppkg.exe.manifest as sxppkg.exe.manifest_ORI

  3. Edit file C:\Program Files (x86)\CA\DSM\Bin\sxppkg.exe.manifest and add following section at the bottom just before the last line "</assembly>"
    <application xmlns="urn:schemas-microsoft-com:asm.v3">
      <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
          <ws2:longPathAware>true</ws2:longPathAware>
      </windowsSettings>
    </application>


  4. Delete all files under C:\Program Files (x86)\CA\DSM\Bin\Save\0001

  5. Start again SD Packager