Can not assign Nothing to Transaction Item (DataRow type) in New Studio Version in REFramework

Hi All,

Why can’t I assign nothing to Transaction Item (DataRow type) new version?

I have deleted Nothing value and created it again, but it still did not work.

Was it me or the studio?

Hi @Suastrian_Dika

In the new UiPath Studio versions, Nothing is treated as System.Object, so it cannot be assigned directly to a DataRow variable. Use a typed-Nothing instead: TransactionItem = DirectCast(Nothing, DataRow)

This creates a DataRow-typed null reference and you will not get error.

1 Like

Thank you! @MohammedShabbir

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.