KB Article #176740

Error 142 00000018 receiving a file using WFNAME on the local server and FNAME on a NAS.

Problem

--142 00000018 for a reception when using WFNAME on the local server and FNAME on a NAS.
--When both WFNAME and FNAME are on the same file system, transfer is correctly done

Resolution

--DIAGI=142: FILE - The "rename" operation failed
--errno=18: Invalid cross-device link


WFNAME is RENAMED at the end of the transfer to FNAME.
It works only when it works on the system (side of CFT) for the same rename operation.
Transfer CFT does not do a copy and then a delete to move the file.
Rename issued by CFT is not automatically changed into a Copy/Delete operation by the system as it can be the case when with shell or DOS commands.

To proceed with different FS between the transferred and the final file for the application, an EOT procedure can be used.
The script can then do a COPY and then, a DELETE before doing the CFTUTIL END command itself conditioned to the COPY operation.

It will end the transfer is X status if all is done as expected.