Tue Nov 30, 2021 10:16 pm
Login Register Lost Password? Contact Us


MoveExternalFile

Comments and questions related to the Enterprise Control Language

Tue Sep 26, 2017 5:20 pm Change Time Zone

Greetings -

I have a file on the Landing Zone, which is sprayed and processed with no problem. Now I want to take that file and move it to a different folder.

I have looked at this forum and the ECL Standards Library Reference Manual and I'm trying the simplest code possible:
Code: Select all
IMPORT STD;

IP      := '10.999.88.001';     // faked address;
infile  := '/data/test/APPLICATION/requests/IN/myfile.csv';
outfile := '/data/test/APPLICATION/requests/PROCESSED/myfile.csv';

M1  := STD.File.MoveExternalFile(IP, infile, outfile);
O1  := OUTPUT(DATASET(STD.File.ExternalLogicalFileName(IP,outfile),{STRING1 Char},FLAT));
SEQUENTIAL(M1,O1);


Fairly simple - move the code from one folder to another, then print it. Well, it fails. I get a RFSERR_MoveFailed(1) error telling me 'Operation not permitted'. The folder/file permissions (since this is a Linux system) is set to the most accessible: 7777 -(includes the sticky bits)- so that anyone can Read/Write/Execute/Delete. So is this an issue where the daliserve utility program is not running on the remote machine? Is there something missing in the latest release that's not in the manual?
There's not much in the way of diagnostics on this, so any help would be greatly appreciated.

Regards,
John
John Meier
 
Posts: 18
Joined: Wed Jun 29, 2016 7:45 pm

Wed Sep 27, 2017 8:29 pm Change Time Zone

Hi,

A few questions:

Is "/data/test/APPLICATION/requests" your dropzone location ?
What version of HPCC are you using ?
What target (hthor/thor) are you submitting to ?
Who is the owner of the /data/test/APPLICATION/requests/IN/myfile.csv file ?
Can you provide the complete and exact error msg text ?

thanks,
mark
mkellyhpcc
 
Posts: 16
Joined: Mon Mar 10, 2014 2:51 pm


Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest

cron