• Sorry about the late response..

    The problem was the folder path I mentioned for FTP had multiple files and sub folders in it. I removed all the other files and sub folders and re-created ftp task with only one file and it worked.

    THanks a lot for all your help