Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
stefano_marson
Partner - Contributor III
Partner - Contributor III

check file in FTP

Hello everybody,


in QlikSense, I would need to test the possible presence of a .csv file, within an FTP site, before uploading it.
I was thinking of using the filesize() function as I have done in the past with QlikView.
But it doesn't work: the variable vFileExists  always returns 0 even if the file exists.

This what I wrote:


LET vFileExists = not isNull(filesize('ftp://sense:Yu7..P4nW6L4@ftpecomm.dmospa.local/daElaborare/SENSE2023.csv'));


Maybe I'm doing the syntax wrong?


Thanks in advance

stefano

Labels (1)
1 Reply
marcus_sommer
MVP
MVP

FTP doesn't support the usual file-functions. You will need specialized ftp-functions maybe you could evaluate the return of ftp mdir or as an alternatively you transfers the files in beforehand to a local drive with mget or similar functions. Here a starting point: ftp mdir | Microsoft Learn