Path is too Long

I ran into an issue with a customer where they were getting an error that the package could not be downloaded. The that they kept showing up in the client logs was 0x80070057. In going over the logs and researching the issue we found that the issue was in that the file path was too long. The deployment was a user based install which adds a lot of characters to the path. The problem is with writing the files to the cache on the client side. The error number 0x80070057 translates to "The parameter is incorrect." Here is a little background on how we get the full path length for the package:

The CM07 client cache directory is specified as:


This is built up from:
<LOGICAL_DRIVE> - the logical drive of the volume where the Cache directory is stored-> <LOGICAL_DRIVE> will be 1 character from A till Z-> 3 characters in total.

<<CCM_CACHE_FOLDER> - the folder where the CM07 Client stores Package Data that was downloaded from DP -> <CCM_CACHE_FOLDER> by default is: Windows\System32\CCM\Cache-> the actual folder may be different from the default, is user configurable-> 28 characters in total: Windows\system32\CCM\cache

<PackageID> - the SMS PackageID-> the PackageID has a fixed size of 8 characters in format + the dot (“.”)-> 9 characters in total: CM70017A.

<Package_Source_Version> - the Source Version Number of the package-> a number between (1 .. xxxx), may be 1 to 4 characters in size + the dot (“.”)-> 5 characters in total: 9999.

<System|(UserSID)> - is either 'System' if package is executed in Local System context OR the Security Identifier (decimal formatted) of the user that downloaded the package source -> System is a fixed size of 6 characters + “\” -> <UserSID> is in decimal format and may be 51 bytes or less in size + “\” -> 7 characters in total when targeting to the system: SYSTEM-> 52 characters maximum when targeting to a user: S-1-5-21-1046319769-833967741-3563887046-8288-> the 52 character maximum is the maximum that a SID can be.

The path length of the CM07 client cache folder is 3 + 28 + 9 + 5 + 53 = 98 characters.

<FolderName|FileName> - a folder or file that makes part of the Package folder structure or files
The maximum allowed path length for the package is the maximum allowed path length for the OS minus the path length of the location of the cache folder.

The maximum allowed path length for the OS is 255 characters.

The maximum allowed path length for the package is 255 - 98 = 157 characters.

Everything above 157 characters in path length on the DP can be a problem for downloading a package to the CM07 client cache. Everything above 167 characters in path length will almost certainly fail with a too long path.

Comments (15)

  1. GabrielNar says:

    This is a Windows* OS/file system issue.The cause is directory paths on the disk is longer than 255 characters (including spaces). Windows* is limited to less than 256 characters for the entire path.

    Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

  2. juthi543 says:

    its very good site. i have read this…so learn more …………….<a href=" Too Long">Path Too Long</a>

  3. falguni543 says:

    you are good writer, its so good .learn more………. Too Long

  4. franklo says:

    Long path tool is the best solution for your problem. try it and solve your problem.

  5. Patrick8 says:


    I suggest to try "Long Path Tool" program .

    before I have problem cannot copy file because file name too long. and after I found long path tool and now my problem solved



  6. Shashi Kant Gupta says:

    Try "Long Path Tool ” is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source
    or destination file may be in use and many other file managing errors.

  7. kevin15 says:

    Try Long Path Tool program

  8. kevin15 says:

    Try Long Path Tool program

  9. Damien barifon says:

    Try to long path tool. It is very helpful.

  10. Damien barifon says:

    Try to long path tool. It is very helpful.

  11. joshua42 says:

    Long Path Tool is a best software to solve this issue. 5++ Rating. Long Path Tool is a best software
    it is a free software. You can Try it

  12. DaveHu says:

    I had this problem too before. I think the file is really too long to  download. I read some articles and used Long Path Tool. I was happy because it worked. 

  13. karin9 says:

    I see many suggestion at different forums that "Long Pah Tool" is good for such situations, we can try it.

  14. oxishmit says:

    I agreed with all commenter, Long Path Tool could be the answer to your problem.

  15. Long Path Tool help me a lot when i have an issue like file deleting or renaming the file. Also good to use if file name and file extension is too long.

Skip to main content