Skip to main content
Karen_Little
Inspiring
June 11, 2012
Answered

Attribute validation error

  • June 11, 2012
  • 1 reply
  • 3983 views

Hi - all of a sudden, successful code that I've been using daily, is throwing an error that reads:

Attribute validation error.

A duplicate attribute VALUE has been encountered. Attributes with the same name cannot be provided more than once.

Now then, I do not understand the above message at all.

In the first instance (on application 1), this is where the code stops:

30 : <cfif next IS 1> 

31 : <cfinclude template="admin/admin_tags/_getNames.cfm">

32 : </cfif>

33 :

In the second instance (application 2), this is where it stops:

The error occurred in E:/inetpub/wwwroot/littleviews/blogin.cfm: line 31

29 : 

30 : <cfif next IS 1> 

31 :  <cfinclude template = "_accessName.cfm">

32 : </cfif>

33 :

I'm also having trouble with <cfinclude. I tried "including" a different filename that resides in the same directory and CF tells me that it can't find the file.

As I use <cfinclude in a lot of places on other pages, I am NOT having a problem with it. But I'm am having a problem with the two applications above.

Karen

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    Possibly look ath the files being included, rather than the file doing the include.

    You could also run the code analyser over the whole dir: that'll turn up any compile errors like this in all files.

    --

    Adam

    1 reply

    Adam Cameron.Correct answer
    Inspiring
    June 11, 2012

    Possibly look ath the files being included, rather than the file doing the include.

    You could also run the code analyser over the whole dir: that'll turn up any compile errors like this in all files.

    --

    Adam

    Karen_Little
    Inspiring
    June 11, 2012

    Good advice, Adam. I checked my <cfinclude> line by line and did find a problem.

    At the moment, my problem is not resolved. I know a number of things that are NOT my problem at the moment (smile) and the only thing I can think of is that somehow I came to use a reserved word. So, now I'm changing the names of all my variables to see if that helps.

    I'm inching along with tests ending in <CFabort>

    At first, I thought that there was something about CF8 that made extracting information out of queries different, but if that was the case, my whole site would come down.

    Should I find that I did trigger a reserved word, I'll post it here.

    Karen

    Inspiring
    June 13, 2012

    I'm inching along with tests ending in <CFabort>

    You can avoid that sort of approach by using the Code Analyser or CFCOMPILE.  This sort of thing is a compile-time issue, so one doesn't need to run the code in context, simply see if the file compiles or not.  Both the C/A and CFCOMPILE will check all your code in one fell swoop.

    --

    Adam