Skip to main content
August 19, 2009
Question

Cannot declare local variable cfcatch twice

  • August 19, 2009
  • 2 replies
  • 1620 views

Hi All,


I migrated my CFMX6.1 application to CF8 on my local dev machine and getting the following error.


Cannot declare local variable cfcatch twice. Local variables cannot have the same names as parameters or other local variables.

Please let me know how it can be resolved.

Thanks!

Sanjeev Singla

    This topic has been closed for replies.

    2 replies

    ilssac
    Inspiring
    August 19, 2009

    But until you do post the code, I can say look for a line something like this:

    <cfset var cfcatch = ...>

    If you have that twice in a function or some other illeagal combonation suggested in the error message you are going to get that error.

    August 19, 2009

    Hi All,

    Thanks all for your comments.

    It looks like as of now that arugumnet name as cfcatch was creating the problem. Will post code or let all you know if problem persists.

    Prasanth_Kumar_S
    Inspiring
    August 19, 2009

    please post the code

    -Prasanth