Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-05-18
4
Medium Priority
?
384 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 750 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 750 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

824 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