Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

This is the error , when i try to insert data to my DB.

How to resolve this issue . can anyone help me to resolve this issue.

why it's showing this error...?

when it's showing this error...?



C#
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: 0  Records Inserted Successfully...!!!
1  Records Already Exists ...!!!
  at EDRSysDAL.edrDrawingSchedule.Insert_Data_To_DB(String Title, String Dwg_Size_Desc, String Job_code, String Dwg_Category_Short_Desc, DateTime Approval_Date, DateTime Release_Date, Byte Multi_Disc_Check, String Proj_Code, String Doc_No, Int32 SNo, DateTime Client_Approval_Date, DateTime Client_Release_Date, Single Weightage, Int32 User_Id)
  at DesignService.Design.Insert_Data_To_DB(String Title, String Dwg_Size_Desc, String Job_code, String Dwg_Category_Short_Desc, DateTime Approval_Date, DateTime Release_Date, Byte Multi_Disc_Check, String Proj_Code, String Doc_No, Int32 SNo, DateTime Client_Approval_Date, DateTime Client_Release_Date, Single Weightage, Int32 User_Id)
  --- End of inner exception stack trace --- 
Posted
Comments
Rai Pawan 26-Dec-12 22:55pm    
It seems that an exception is raised while trying to insert data to database. It could be because the same value is provided for primary key column(s) that already exists in the database (just a guess thought). I'd recommend that you first of all try to debug the database insert code. You may want to post the part of your code that is producing the exception.
Regards
Pawan
[no name] 26-Dec-12 22:59pm    
i already try to insert some sample data by using my SP here there is no issue

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