Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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

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