Security Compliance

Failed to publish, fully qualified file name must be less than 260 characters.

An attempt to publish a package will fail because the file patch has too many characters. This is a Windows WSUS limitation.

First published date

1/4/2021 3:29 PM

Last published date

1/4/2021 3:41 PM

Overview

Attempting to publish a third-party package that has a file path over 260 characters or the directory name is over 248 characters. The execute method will fail 

Product section

Patch Manager

Cause

Attempting to publish a package that has an fqdn file name more than 260 characters and the directory name must be less than 248 characters. This usually only happens when publishing a custom package. 
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character

Resolution

The package that is being published will need to be moved to a file path that meets the 260 character limit. The custom package will need to be edited and the file path changed.