XCOMN0508E Error replacing or creating file
search cancel

XCOMN0508E Error replacing or creating file

book

Article ID: 129971

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC XCOM Data Transport - z/OS

Issue/Introduction

We write to share drives and now we are receiving the above error when we try to transfer. XCOMN0508E Error replacing or creating file

Environment

XCOM r11.6 for Windows

Cause

Per the XCOM trace provided we see that system function MoveFileEx is failing causing the transfer to fail when the temporary file is being renamed. The trace shows:

Xrename: rename file <\\nausbf-hrisp1\datafeeds\ETL_production_HRMS_copy\xc0000026424a06060> to <\\nausbf-hrisp1\datafeeds\ETL_production_HRMS_copy\getthere_employee_20190323txt> 

MoveFileEx: error=0x20 
fsmachin 3212: Calling SetQEntryStats 
SetQEntryStats: Working with entry 000002 
SetQEntryStats: Completed successfully 
fsmachin 3218: Statistics is set successfully. 
fsmachin 3219: SNA Confirm State(3), XCOM xcbp->state = 508 
 

Resolution

Audit errors are being received when they try to write to the share that is used for the XCOM transfers. They need to review the cause of those Audit Errors and for now they will write to the drive directly.

Additional Information

Here are the 2 meanings of the '0x20' code on the failing function:

ERROR_SHARING_VIOLATION 
32 (0x20) 
The process cannot access the file because it is being used by another process. 

and 

MOVEFILE_FAIL_IF_NOT_TRACKABLE 
32 (0x20) The function fails if the source file is a link source, but the file cannot be tracked after the move. This situation can occur if the destination is a volume formatted with the FAT file system.