System.Data.OracleClient.O
racleExcep
tion was caught
Message="ORA-06550: line 1, column 7:\nPLS-00201: identifier 'INSERT_PRICE_LIST_HDR' must be declared\nORA-06550: line 1, column 7:\nPL/SQL: Statement ignored\n"
Source="System.Data.Oracle
Client"
ErrorCode=-2146232008
Code=6550
StackTrace:
at System.Data.OracleClient.O
racleConne
ction.Chec
kError(Oci
ErrorHandl
e errorHandle, Int32 rc)
at System.Data.OracleClient.O
racleComma
nd.Execute
(OciStatem
entHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList& resultParameterOrdinals)
at System.Data.OracleClient.O
racleComma
nd.Execute
NonQueryIn
ternal(Boo
lean needRowid, OciRowidDescriptor& rowidDescriptor)
at System.Data.OracleClient.O
racleComma
nd.Execute
NonQuery()
at Microsoft.Practices.Enterp
riseLibrar
y.Data.Dat
abase.DoEx
ecuteNonQu
ery(DbComm
and command)
at Microsoft.Practices.Enterp
riseLibrar
y.Data.Dat
abase.Exec
uteNonQuer
y(DbComman
d command)
at Cwb.InitialPriceReporting.
Form1.Mode
0_SaveInse
rtPriceLis
tHeader() in C:\SvnWork\InitialPriceRep
orting\Dot
Net\Initia
lPriceRepo
rting\Form
1.cs:line 183
Database db = DatabaseFactory.CreateData
base("Init
ialPrices.
Properties
.Settings.
Connection
String");
// Create the DbCommand object
DbCommand dbCommand = db.GetStoredProcCommand("i
nsert_pric
e_list_hdr
");
dbCommand.CommandTimeout = 180;
db.AddInParameter(dbComman
d, "p_price_list_hdr_id", DbType.String, txtCropYear.Text + txtListNo.Text);
db.AddInParameter(dbComman
d, "p_wht_tough_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_wht_damp_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_wht_stone_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_durum_tough_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_durum_damp_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_durum_stone_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_bly_tough_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_bly_damp_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_bly_stone_disc_amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_desigtd_bly_tough_disc_
amt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_desigtd_bly_damp_disc_a
mt", DbType.Decimal, 0.0);
db.AddInParameter(dbComman
d, "p_price_list_status_type_
name", DbType.String, "0");
db.AddInParameter(dbComman
d, "p_load_dtm", DbType.DateTime, System.DateTime.Now);
db.AddInParameter(dbComman
d, "p_user_name", DbType.String, "Mathieu");
db.AddInParameter(dbComman
d, "p_wht_indr_flag", DbType.String, "1");
db.AddInParameter(dbComman
d, "p_durum_indr_flag", DbType.String, "1");
db.AddInParameter(dbComman
d, "p_bly_indr_flag", DbType.String, "1");
db.AddInParameter(dbComman
d, "p_desigtd_bly_indr_flag",
DbType.String, "1");
db.AddInParameter(dbComman
d, "p_load_type_name", DbType.String, "Adjustment");
db.AddInParameter(dbComman
d, "p_wht_basis_num", DbType.Int32, 1);
db.AddInParameter(dbComman
d, "p_durum_basis_num", DbType.Int32, 1);
db.AddInParameter(dbComman
d, "p_bly_basis_num", DbType.Int32, 1);
db.AddInParameter(dbComman
d, "p_desigtd_bly_basis_num",
DbType.Int32, 1);
db.AddInParameter(dbComman
d, "p_src_file_path_desc", DbType.String, "C:");
db.AddInParameter(dbComman
d, "p_pool_part_code", DbType.String, "1");
db.AddInParameter(dbComman
d, "p_sct_price_list_name", DbType.String, "1");
db.AddInParameter(dbComman
d, "p_sct_effectv_dtm", DbType.DateTime, System.DateTime.Now);
db.AddInParameter(dbComman
d, "p_row_cnt_qty", DbType.Decimal, 1.0);
db.AddInParameter(dbComman
d, "p_price_sum_amt", DbType.Decimal, 0.0);
db.ExecuteNonQuery(dbComma
nd);
Start Free Trial