Question

Namespace Issue of script task in a process

Hi,



I am facing an issue while create a  script task in a process of Bpm'online. 

I want to use "IDataReader" object of System.Data namespace to implement the functionality.  



1- : While publishing the process changes the Bpm'online generating exception like :

"The type or namespace name 'IDataReader' could not be found (are you missing a using directive or an assembly reference?)"



2- : "'Query' does not contain a definition for 'ExecuteReader' and no accessible extension method 'ExecuteReader' accepting a first argument of type 'Query' could be found (are you missing a using directive or an assembly reference?)"

 

Please suggest me to fixed the above Compilation Errors. 

Like 0

Like

2 comments

The obvious question:  did you try using the full space name:  System.Data.IDataReader ?

 

On #2, are you using "Select" ? If so, did you cast it as "Select" ?

e.g. 

var x = new Select()

...

.Where()

as Select;

Please open the business process designer, go to the Methods tab and add the System.Data namespace to the Usings list (https://prnt.sc/p1rp6w). It will resolve the compilation errors.

Show all comments