Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
!!! An Error Occured While getting Data From Hdr_AccountType.Procedure or function sproc_Ins_ManualPhotoSettingsDetails has too many arguments specified.
Posted

Count the number of arguments (parameters) in the definition of above mentioned procedures and/or functions. Then count the number of arguments (parameters) in the invocation of said procedure/function.
If the number of arguments in the definition is less than the number of arguments in the invocation you already have the source of your error. Somehow you've added more parameters to the invocation than were specified in the definition of said procedure/function.

To solve your issue you'll just have to remove the surplus parameters from the procedure/function invocation.

Best Regards,

-MRB
 
Share this answer
 
v2
Comments
Toniyo Jackson 11-May-11 7:24am    
Good call +5
Abhinav S 11-May-11 8:00am    
Good answer. 5. Proposed as solution.
Sergey Alexandrovich Kryukov 11-May-11 13:48pm    
This is correct, my 5, but I think the best way of approaching this problem is re-factorization, which is apparently in order in this case.

Please see my solution.
--SA
fjdiewornncalwe 11-May-11 13:49pm    
Simple, and true. +5
If you have to many parameters, there is a big flaw in your code design. It means you need to functionally group most parameters in appropriately encapsulated types: classes and/or structures and use much fewer parameters of these types.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900