@Rashmiramchandra Prabhu As per the above screenshot the logic app crates the files correctly if it is the same run for which you have observed the blank file at SFTP end. You may need to review the SFTP server logs to know more details how the file become empty.
In case if the above screenshot is not for the same filename for which you observe the empty file then I will suggest you to validate the run history to confirm if the same file name that was empty was created from logic app. In case if it is yes then checking the previous action in logic app to validate why the content was empty.
To troubleshoot the issue from logic app end you can always review the run history and individual action to know the input/output of individual actions.