Hi All,
I am getting exception like :
eConnectTraceSource Error: 735 : Create Transaction Entity produced the following exception:
Sql procedure error codes returned:
Error Number = 908 Stored Procedure= taSopLineIvcInsert Error Description = Invalid Sales Account
Node Identifier Parameters: taSopLineIvcInsert
SOPNUMBE = 226144
SOPTYPE = 3
Related Error Code Parameters for Node : taSopLineIvcInsert
SLSINDX = 06700
<taSopLineIvcInsert>
<SOPTYPE>3</SOPTYPE>
<SOPNUMBE>226144</SOPNUMBE>
<CUSTNMBR>5663</CUSTNMBR>
<DOCDATE>8/01/2011</DOCDATE>
<ITEMNMBR>2810 - BA - 005</ITEMNMBR>
<QUANTITY>1</QUANTITY>
<ITEMDESC>Prem Designer NC Misc.</ITEMDESC>
<NONINVEN>1</NONINVEN>
<DOCID>STDINV</DOCID>
<TAXSCHID>0</TAXSCHID>
<SLSINDX>06700</SLSINDX>
<DEFEXTPRICE>1</DEFEXTPRICE>
<UOFM>EACH</UOFM>
</taSopLineIvcInsert>
But i want to dispaly this error messages very shortly .. like
SOPNUMBE = 226144
Related Error Code Parameters for Node : taSopLineIvcInsert
Error Description = Invalid Sales Account
Can you please tell me For this what i have to do...
Please see this my catch blocks like ... i am trying catch the error..but i didn't get the idea how to dispaly messages very shortly....
catch (eConnectException o)
{
Console.Write(o.Message);
Console.Read();
}
// Catch any system error that might occurr. Display the error to the user
catch (Exception ex)
{
Console.Write(ex.Message);
Console.Read();
Application.Exit();
}
finally
{
// Use the Dipose method to release resources associated with the
// eConnectMethods objects
eConcall.Dispose();
}