A file with a very long name cannot be attached when the path and filename are more than 260 characters long.
During such an attempt, the following messages may be written to the stdlog:
09/24 09:09:00.16 [SDM SERVER] rep_daemon 19560 SIGNIFICANT FileMng.c 1153 CopyFile() - Failed to duplicate the file D:/PROGRA~1/CA/SERVIC~1/bopcfg/www/CATALINA_BASE/temp/a82f33b8-7495-4aba-96db-0c6b26c1e22e5653350277279663803.gz. (No such file or directory (2))
09/24 09:09:00.17 [SDM SERVER] rep_daemon 19560 SIGNIFICANT FileMng.c 1197 MoveFile() - Failed to copy the file D:\PROGRA~1\CA\SERVIC~1\bopcfg\www\CATALINA_BASE\temp\a82f33b8-7495-4aab-96db-0c6b26c1e22e5653350277279663803.gz. (No such file or directory (2)) 09/24 09:09:00.19 [SDM SERVER] rep_daemon 19560 ERROR AttmntMng.c 919 CUploadLocalFile() - Failed to move file 'D:\PROGRA~1\CA\SERVIC~1\bopcfg\www\CATALINA_BASE\temp\a82f33b8-7495-4aba-96db-0c6b26c1e22e5653350277279663803.gz' to 'D:/PROGRA~1/CA/SERVIC~1/site/attachments/default/servicedesk/files/rep_folder_00301/419FA5686FC95142A88C1BB45B5BCA7A_584774_E%20%20%20549011%20%20%2D%20RE%20%20%20xxxxxxxxxxxx%20%20%20%20xxxxxxxxxxxx%20xxxxxxxxxxxx%20%28xxxxxxxxxxxx%207%200%29%20%20%20xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.msg.gz'.
Release: 14.1 and higher
Component: CA Service Desk Manager
The situation is explained by the Windows API limitation described in this Microsoft article:
In particular, the article states:
"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"
Please review the relevant sections of the article.
Be sure to not exceed the limit when setting the name of the file which is to be uploaded as an attachment.
In editions of Windows before Windows 10 version 1607, the maximum length for a path is MAX_PATH, which is defined as 260 characters. In later versions of Windows, changing a registry key or using the Group Policy tool is required to remove the limit. See Maximum Path Length Limitation for full details.