Vla*_*lad 2 coldfusion cfml coldfusion-2016
We ported to CF 2016 and now encounters error in scheduled task
This code used to work:
<cfschedule action="update" task="ia_scheduler" operation="HTTPRequest"
url="#sURL#" startdate="#runDate#" starttime="#runTime#"
path="#request.basepath#" file="ia_scheduler.html"
resolveurl="yes" publish="yes" interval="3600" requesttimeout="900">
Run Code Online (Sandbox Code Playgroud)
If I change the html to .txt it will work but I prefer it in html extension
file="ia_scheduler.html" to file="ia_scheduler.txt"
Run Code Online (Sandbox Code Playgroud)
The error throws
Invalid extension of the file name.
Valid extensions are : log,txt.
Run Code Online (Sandbox Code Playgroud)
How can I save to html file in cfschedule?
我已经解决了你的问题。这里是存储计划任务的已发布输出的文件的名称。默认情况下,该文件只能具有.txt或.log扩展名。您可以添加更多扩展
cfusion\lib\neo-cron xml.
您可以检查 xml 文件在 string 标签下是否只有log,txt。所以你还必须添加html。然后也检查html文件。希望它会起作用。谢谢你。