This question is locked. New answers and comments are not allowed.
Dear Telerik Team,
Please consider this as an urgent request so please find some time to address this issue.
We are trying to execute a stored procedure using telerik open access. The stored procedure takes a string parameter. That parameter contains & character which is causing the system to throw following exception:
Here is the code snippet:
where
xml : Input string in xml format
To add more information to it, we tried replacing & with & but no help. We still encountered that error.
Can somebody please assist us on this issue?
Best Regards,
Shiva
Please consider this as an urgent request so please find some time to address this issue.
We are trying to execute a stored procedure using telerik open access. The stored procedure takes a string parameter. That parameter contains & character which is causing the system to throw following exception:
Telerik.OpenAccess.RT.sql.SQLException: XML parsing: line 1, character 848, illegal name character
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.RelationalQueryResult.createFetchResult(Connection conParam, SqlDriver sqlDriver, Boolean scrollableParam, FetchSpec fetchSpec, RelationalCompiledQuery relationalCompiledQuery, RelationalStorageManager storageManager, Object[] paramVals, Int32 fetchSize, Int32 maxRows)
Here is the code snippet:
object[] arrParam = new object[1] { xml };
SqlParameter parameterCategoryID = new SqlParameter("CategoryDataElementXML", OpenAccessType.Varchar);
List<
SqlParameter
> sqlParameters = new List<
SqlParameter
>();
sqlParameters.Add(parameterCategoryID);
var entityDataSource = new MDSDataContext();
var queryResult = entityDataSource.ExecuteStoredProcedure<
object
[]>("'SaveCategoryDataElement' ?", sqlParameters, arrParam);
where
xml : Input string in xml format
To add more information to it, we tried replacing & with & but no help. We still encountered that error.
Can somebody please assist us on this issue?
Best Regards,
Shiva