Copy link to clipboard
Copied
Hi Everyone, I have created a scheduled job that deletes the data from db, when i access the file through browse it runs fine, but when i gave the url in schdule task in CFadmin it does not run, it shows that schedule task ran successfully but it does not run.
Code in my cfm file: FormSubmit.cfm
Copy link to clipboard
Copied
Do any of the cf logs show anything at the time the task is run? If not, modify the task to have it save its output to a file. What does it show?
Or create a cf page that does a cfhttp call to that url for the task, and cfdump the cfhttp scope. What does it tell you?
A first guess is that the url is protected by a web server that implements windows authentication, which is not supported by cf scheduled tasks or cfhttp. This might be easily solved by putting the task in a separate folder with other means of protecting it (such as by ip address).
(Other common problems stem from when the url is using https, and there are solutions for that, but you are not using that )
Let's us know what you find.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now