[Webinar] Streamline your web hosting managementRegister Today


FormView - Procedure or function spInsertVessel has too many arguments specified.

Posted on 2011-10-28
Medium Priority
Last Modified: 2012-05-12
Hi I am getting the above error when I try to insert a record using FormView.  I've added a function to display the parameters and their values on screen and they are being repeated as follows:

Parameter:@vesselName Parameter Value:(null) 0.01658004020064 0.014521
Parameter:@vesselOwner Parameter Value:(null) 0.016653513225843 0.000073
Parameter:@vesselPLN Parameter Value:(null) 0.0166791449751295 0.000026
Parameter:@Vessel_Name Parameter Value:Old Victoria 0.0167033798988419 0.000024
Parameter:@Vessel_Owner Parameter Value:Mrs Smith 0.0167269164097672 0.000024
Parameter:@Vessel_PLN Parameter Value:LP 4565 0.0167507322858073 0.000024

My insert parameters are as follows:
                <asp:Parameter Name="vesselName" Type="String" />
                <asp:Parameter Name="vesselOwner" Type="String" />
                <asp:Parameter Name="vesselPLN" Type="String" />

Please could someone tell me why these are repeating - I need to resolve this asap.
Thanks, Lorna
Question by:Lorna70
  • 2
LVL 10

Accepted Solution

Jini Jose earned 1000 total points
ID: 37044446
you need to give all the parameter values for your sp
you missed the Vessel_Name,Vessel_Owner and Vessel_PLN

Author Comment

ID: 37044478
The Parameters were generated by VisualStudio but it looks like I have to give the parameters the exact same name as the DB table fields?  Is this correct?  This would mean changing my sproc variable names and the names in my ASP.Net file to the exact fieldnames??
LVL 10

Expert Comment

by:Jini Jose
ID: 37044503
yes it should be same

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Suggested Courses

612 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