When a document is created using the Text Doc from Template Smart Service and the node's template file is not of type "Text Document," the document will be created correctly in Appian (correct content, filename, etc). However, after the file has been downloaded, it will have a trailing underscore in its filename (e.g. testfile.txt_ or testfile_.txt).
The smart service's template file is not of type .txt (aka "Text Document").
Change the smart service's template file to be of type .txt.
This article applies to all versions of Appian.
Last Reviewed: February 2020