Otis wrote:
Also what's the exact error message?
Could you post the proc signature (name + variable names declaration, I don't need the proc body) ?
Btw, how do you set the decimal value? Be aware that 1134.24 isn't a decimal, it's a long:
Decimal d = 1134.24;
will give an error, you have to do:
Decimal d = 1134.24M;
But as your code compiles, you seem to set it to the proper dec value
The stacktrace suggests that the error is BEFORE the proc is called, so the parameter binding process already gives up.
// Example how the first parameter gets set.
Decimal? lForecastgr = null;
lForecastgr = Decimal.Parse(l_forecastgr.Value.ToString());
public static int Aux(Nullable<System.Decimal> lForecastgr, Nullable<System.Decimal> lForecastkl, Nullable<System.Decimal> lActualkl, Nullable<System.Decimal> lActualgr, Nullable<System.Decimal> lHomeofficekl, Nullable<System.Decimal> lHomeofficegr, Nullable<System.Decimal> lFieldconstructionkl, Nullable<System.Decimal> lFieldconstructiongr, System.String lProjectstart, System.String lProjectend, Nullable<System.Decimal> lCvaluekl,
Nullable<System.Decimal> lCvaluegr, Nullable<System.Decimal> lTickl, Nullable<System.Decimal> lTicgr, System.String lLocation, System.String lCountry, System.String lCrttype, Nullable<System.Decimal> lSubctrkl, Nullable<System.Decimal> lSubctrgr, System.String lConstr, System.String lSubctr, Nullable<System.Decimal> lCapakl,
Nullable<System.Decimal> lCapagr, System.String lProduct, System.String lProdesc, System.String lInstrsys, System.String lVenname, System.String lTof2, System.String lTof1, System.String lToi, System.String lOffice, System.String lPrdir, System.String lPrman,
System.String lCondir, System.String lRegion, System.String lScoserv1, System.String lAddserv2, System.String lOilgas3, System.String lPipelines4, System.String lStudy5, System.String lLicensor6, System.String lUtils8, System.String lOffsites9, System.String lAux10,
Nullable<System.Decimal> lOnshore, Nullable<System.Decimal> lOffshore, System.String lParcom, System.String lClient, System.String lFunctions, System.String lExproj, System.Decimal aScoserv, System.Decimal aFunctions, System.Decimal aAddserv, System.Decimal aOilgas, System.Decimal aPipelines,
System.Decimal aStudy, System.Decimal aUtils, System.Decimal aOffsites, System.Decimal aAux, System.Decimal aPrdir, System.Decimal aPrman, System.Decimal aCondir, System.Decimal aOffice, System.Decimal aToi, System.Decimal aTof1, System.Decimal aTof2,
System.Decimal aProdesc, System.Decimal aInstrsys, System.Decimal aConstr, System.Decimal aSubctr, System.Decimal aParcom, Nullable<System.Decimal> aExcou, DataAccessAdapter adapter)
Most of the decimals have the NUMBER type in oracle. Some of them have the FLOAT type. All of them are mapped to decimal by LLBLGEN generator. The ones that have a FLOAT type in the database give me the error i mentioned. The ones that have a DECIMAL in the database don't give me the error, but they don't seem to be passed through as my selections aren't returned correctly.
I am quite stuck now and can't seem to figure out how to solve this within LLBLGEN generated code.