We use a smart service called "Append Text to File" from the "Text File Utilities" plug-in. It seems to have stopped working since the latest release a few days ago. Are there any alternatives?
Discussion posts and replies are publicly visible
What happens when you try?
It doesn't produce an exception but it does not append the given text to the given file.
Did you already check tomcat-stdOut.log to see if there's any issue, error or exception listed there? Did you check the target folder to verify that no new file was created?
Yes, checked the tomcat log, and there are no exceptions. The service is meant to append text to existing files, so it wouldn't create a new file.
Yep, tried now. Not working for me too. Better raise a support.
Can you try reading from the file >> appending the text >> Saving back to the existing document
Raised a ticket with Appian Support, who were very quick to revert it.
Depending on your use case, the "Text from Template" smart service might work. I allows you to create a template with placeholders like "###text###". To append text to the same file in iterations, I just write that placeholders as the last line of my actual content.
Hi normanc! If the "Append Text to File" feature isn't working, you might try a couple of alternatives. First, check if there's an older version of the plugin available for download. Alternatively, you can use a basic text editor to manually append text to your file. If you're comfortable with scripting, a simple script in Python or another language could automate this process. Let me know if you need more specific suggestions! As a Sociology major, I needed help with a research paper that I couldn’t complete on my own. I found https://academized.com/ and they delivered a well-written, thoroughly researched paper on time. The writer clearly understood the topic, and I was able to submit the paper without any issues. I’m really pleased with the outcome and will be using their services again in the future!
in my case, I am indeed seeing NullPointerException in the application server log. There must be something wrong in the new version of the plugin.
2024-10-23 10:17:25,298 [Appian Work Item - 794645 - WorkID 292 - execution02 - process 2775155 - model 12462 : UnattendedJavaActivityRequest] ERROR com.appiancorp.ps.plugins.textutilities.AppendTextToFile - java.lang.NullPointerException: Cannot invoke "com.appiancorp.suiteapi.content.ContentService.download(java.lang.Long, java.lang.Integer, java.lang.Boolean)" because "cs" is null java.lang.NullPointerException: Cannot invoke "com.appiancorp.suiteapi.content.ContentService.download(java.lang.Long, java.lang.Integer, java.lang.Boolean)" because "cs" is null at com.appiancorp.ps.plugins.textutilities.AppianUtils.getDocumentFromAppian(AppianUtils.java:15) at com.appiancorp.ps.plugins.textutilities.AppendTextToFile.run(AppendTextToFile.java:48) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.lambda$call$0(DefaultActivityExecutor.java:138) at com.appiancorp.plugins.PluginUsageLogger.runWithPluginInformation(PluginUsageLogger.java:54) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:138) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:132) at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:30) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor.execute(DefaultActivityExecutor.java:132) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:101) at com.appiancorp.process.engine.UnattendedJavaActivityRequestResponseCreator.getJavaActivityResultResponse(UnattendedJavaActivityRequestResponseCreator.java:23) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.getJavaActivityResultResponse(UnattendedJavaActivityRequest.java:80) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:67) at com.appiancorp.common.persistence.data.AppianDataUserContextProvider.executeWithConsistentDataReads(AppianDataUserContextProvider.java:143) at com.appiancorp.process.engine.ProcessContinuationRequest.executeOuter(ProcessContinuationRequest.java:68) at com.appiancorp.process.engine.ActivityRequest.executeOuter(ActivityRequest.java:41) at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:136) at com.appiancorp.process.engine.AsyncEnabledActivityRequest.execute(AsyncEnabledActivityRequest.java:22) at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36) at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:110) at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:241) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)