ParameterCache.SetParameters is not populating the parameters

50 Views Asked by At

We have upgraded the Oracle client 19 to 11 and after that our application is stopped working and throwing error "An OracleParameter with parameterName 'parametername' is not contained by this OracleParameterCollection."

After debugging I found issue in below lines:

command = database.GetStoredProcCommand("procedure name");
parameterCache.SetParameters(command, database); // this line doesn't populate the data
Database.SetParameterValue(command, "columnName", "columnValue"); // throws error

Above lines was working fine with Oracle client 11 but throws error with Oracle client 19. Any suggestions will be appreciated.

0

There are 0 best solutions below