Solved

What does this error mean "Attribute validation error for the CFARGUMENT tag."

Posted on 2009-05-18
4
357 Views
Last Modified: 2013-12-24
In Coldfusion 8, can someone tell me what this error means.

Attribute validation error for the CFARGUMENT tag.

It is getting generated on this code.


<cfinvoke method="getEmail2" component="PAR" returnvariable="getEmail"    >

                  <cfinvokeargument value=session.exedf.employeeid name="employeeidxa" >

                </cfinvoke>

Open in new window

0
Comment
Question by:NYGiantsFan
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
pmascari earned 250 total points
ID: 24413062
I suspect the error is actually happening in the Function that is being called by this CFINVOKE statement.  Look into the PAR.cfc file at the getEmail2 function.  That is where the problem is.  Can you copy/paste all the CFArgument tags on that function for us to look at?
0
 
LVL 19

Assisted Solution

by:Jones911
Jones911 earned 250 total points
ID: 24413082

<cfinvoke method="getEmail2" component="PAR" returnvariable="getEmail" >

    <cfinvokeargument value="#session.exedf.employeeid#" name="employeeidxa" >

</cfinvoke>
 

or
 

<cfset getEmail = createObject("component","PAR").getEmail2(session.exedf.employeeid) />
 

Should fix your error.

Open in new window

0
 

Author Comment

by:NYGiantsFan
ID: 24414276
the function is

      <cffunction name="getEmail2" access="public" returntype="query" >

         <cfargument name="employeeidxa" required="true" type="numeric">        
        <cfoutput>#employeeidxa#</cfoutput>
        <cfquery name="getEmail" datasource="esp">
   
               select [employee id] as employeeidx,[first name] as firstname, [last name] as lastname, email
                from tbl_employees
             where [employee id]=#employeeidxa#  
         
          < /cfquery>
         
         
               <cfreturn getEmail>
    </cffunction>
0
 
LVL 8

Expert Comment

by:pmascari
ID: 24415242
The answer from Jones 911 will probably do the trick.  CF may not be recognizing the value you're passing as "Numeric" unless sent using the example he gave.  If you try that and still have problems please paste the ENTIRE error message you are getting.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now