Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Exception
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...?
 

 
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 26-Dec-12 17:42pm
(unknown member)
Comments
Rai Pawan at 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

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

  Print Answers RSS
0 DamithSL 265
1 CPallini 235
2 OriginalGriff 233
3 Maciej Los 175
4 George Jonsson 170
0 OriginalGriff 5,305
1 DamithSL 4,382
2 Maciej Los 3,760
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,901


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 26 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100