Scheduled task output to html Coldfuson 2016

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?

Kan*_*n.P 6

我已经解决了你的问题。这里是存储计划任务的已发布输出的文件的名称。默认情况下,该文件只能具有.txt.log扩展名。您可以添加更多扩展
cfusion\lib\neo-cron xml.

您可以检查 xml 文件在 string 标签下是否只有log,txt。所以你还必须添加html。然后也检查html文件。希望它会起作用。谢谢你。

  • 我的投票将您的声誉归为 4 位数类别。你欠我一杯啤酒。 (3认同)
  • @DanBracuk如果我们在这里谈论免费啤酒,那么几乎值得冒着被禁止的风险创建一个傀儡账户来否决他的答案,将其恢复到3位数,然后用我的常规账户投票以恢复到4位数并窃取你的啤酒。:-) (2认同)