You are currently reviewing an older revision of this page.
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"). This can be difficult to troubleshoot because no errors are thrown and the document looks like it was created correctly within Appian.
Change the smart service's template file to be of type .txt.