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:
9/24 09:09:00.16 SDMPRI 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 SDMPRI 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 SDMPRI 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%20Communication%20%20%20%20iPhone%20update%20%28ios%207%200%29%20%20%20Mixe%20%20kour%20an%20l'iPhone%20%28ios%207%200%29%20.msg.gz'.
The situation is explained by the Windows API limitation described in the following 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.