Professional Web Applications Themes

<CFSCHEDULE> Error - The following task could not be - Coldfusion - Getting Started

I need to run a custom tag for every 2 mins. I have created a CFM file called session_clean_call.cfm (location ..\newsession folder) and from which i am calling to the custom tag <session_clean> but getting an error as given below. on session_clean_call.cfm ======================== <cfsetting enablecfoutputonly="yes"> <session_clean> <cfsetting enablecfoutputonly="no"> Error: ====== "The following task could not be found: ClnSess." <cfschedule action="run" interval="60" file="session_clean_call.cfm" path="..\newsession" task="ClnSess"> Appreciate your time. Regards micj....

  1. #1

    Default <CFSCHEDULE> Error - The following task could not be

    I need to run a custom tag for every 2 mins. I have created a CFM file called
    session_clean_call.cfm (location ..\newsession folder) and from which i am
    calling to the custom tag <session_clean> but getting an error as given below.

    on session_clean_call.cfm
    ========================

    <cfsetting enablecfoutputonly="yes">
    <session_clean>
    <cfsetting enablecfoutputonly="no">

    Error:
    ======

    "The following task could not be found: ClnSess."

    <cfschedule action="run" interval="60" file="session_clean_call.cfm"
    path="..\newsession" task="ClnSess">

    Appreciate your time.

    Regards
    micj.


    micjohnson Guest

  2. #2

    Default Re: <CFSCHEDULE> Error - The following task could not be

    path="..\newsession

    This should be the full path
    Abinidi Guest

  3. #3

    Default Re: <CFSCHEDULE> Error - The following task could not be

    <cfschedule> has an attribute called "action" which should be specified if
    you're going to add the task to the CF Administrator. If the task is not
    already created in the CF Administrator you would get the error your getting.
    Try adding the action="update" attribute to the <cfschedule>. if the task is
    not in the CF Admin, it will automatically create it.

    Just a side note, if <session_clean> is the custom tag, it should be
    <cf_session_clean> not <session_clean>.

    cmschofield Guest

Similar Threads

  1. Scheduled Task - 403 Error
    By Kling in forum Coldfusion Server Administration
    Replies: 0
    Last Post: July 5th, 07:42 PM
  2. Coldfusion Scheduled Task throws HTTP 401.2 error
    By Nandeesh in forum Coldfusion Server Administration
    Replies: 2
    Last Post: September 16th, 08:08 PM
  3. efexec task error
    By MattRice40 in forum Coldfusion Server Administration
    Replies: 4
    Last Post: July 19th, 01:51 PM
  4. <cfschedule>
    By drdagwood in forum Coldfusion - Getting Started
    Replies: 6
    Last Post: March 8th, 11:14 PM
  5. Preventing Error Logging on End Task
    By Lyle in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 19th, 02:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139