Solved

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

Posted on 2009-05-18
4
367 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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