Solved

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

Posted on 2009-05-18
4
374 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

627 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