My Oracle Support Banner

Export Hierarchy Data Task Failed Due to "unable to remove target: Directory not empty" (Doc ID 2958021.1)

Last updated on JULY 03, 2023

Applies to:

Oracle Retail Demand Forecasting Cloud Service - Version 19.0 and later
Oracle Retail Merchandise Financial Planning Enterprise Edition Cloud Service - Version 19.0 and later
Oracle Retail Assortment & Item Planning Enterprise Edition Cloud Service - Version 19.0 and later
Oracle Retail Predictive Application Server Cloud Edition - Version 19.0 and later
Information in this document applies to any platform.

Goal

Export hierarchy OAT task is failing and the log shows:

13:15:38 : INFORMATION : oat_exporthier.ksh[102] - _call of command 'exportHier -d /rpasce/customer/domains/RDF -datFile Location First Try -hier loc -loglevel all -toOutputDirOnly' complete
13:15:38 : INFORMATION : oat_exporthier.ksh[112] - Moving result file to FTP directory...
13:15:38 : INFORMATION : oat_exporthier.ksh[122] - _call executing command 'mv /rpasce/customer/domains/RDF/output/ /rpasce/integrate/ftp_outgoing/'
mv: inter-device move failed: '/rpasce/customer/domains/RDF/output/' to '/rpasce/integrate/ftp_outgoing/output'; unable to remove target: Directory not empty
13:15:38 : INFORMATION : oat_exporthier.ksh[122] - _call of command 'mv /rpasce/customer/domains/RDF/output/ /rpasce/integrate/ftp_outgoing/' complete
13:15:38 : ERROR : oat_exporthier.ksh[123] - mv /rpasce/customer/domains/RDF/output/ /rpasce/integrate/ftp_outgoing/
13:15:38 : INFORMATION : oat_exporthier.ksh[123] - Exiting script with code: 1
13:15:38 : INFORMATION : oat_exporthier.ksh[123] - Creating Log File archive as failure.1.oat_exporthier.20230627131538.tar.gz...
13:15:38 : INFORMATION : oat_exporthier.ksh[123] - Moving Log File archive to destination...
ServerRunUtilityJsonException: {"returncode":"1","id":"t20230627131535p00","exception":"ScriptExecuteException","cause":"Process exited with status: 1","server_name":"################"}
Set task status to 'failed'
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.