cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use DataTable in code block

vignesh_sundar
Level 3
If I use a datatable (DataTable dt = new DataTable())in the code block, I'm getting the following error.(Language preference is set to c#) System.ComponentModel.MarshalByValueComponent is in a assembly that is not referenced. System.ComponentModel.IListSource is in a assembly that is not referenced. System.ComponentModel.ISupportIniatializeNotification is in a assembly that is not referenced. These namespaces are by default included in System.dll which is included by default. If try to add an external reference. It says kindly remove the duplicate reference.
1 REPLY 1

shahariar_k_bhu
Level 5
Remove the System.dll reference, and add C:\Windows\Microsoft.NET\Framework64\v2.0.50727\system.dll (also full path) instead. Seems like Blue Prism requires full path to System.dll file. Ref: https://blueprism.knowledgeowl.com/help/how-do-i-use-c-code-in-blue-pri