Skip navigation
Currently Being Moderated

Attribute validation error

Jun 11, 2012 2:47 AM

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

 
Replies
  • Currently Being Moderated
    Jun 11, 2012 2:54 AM   in reply to Karen_Little

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 6:41 AM   in reply to Karen_Little

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 6:42 AM   in reply to Karen_Little

    That said, session variables (the few I had) no longer work and I've had to replace them with cookie variables. Session variables would not carry over from page to page.

     

    I think you should pretty much try to fix whatever the issue is with sessions, rather than fall back to using cookies...

     

    --

    Adam

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points