Unable to assign value from Datatable

I have another doubt in tabular data project

If you have a different question, make a new post.

Anyway…

CDec(in_transactionItem.SpecificContent(“Cashin”).ToString)

For Queue Items (transactions) the data is in SpecificContent (which is a dictionary of string, object). And you have to output it as a string to pass it to CDec.

image

I assume you still don’t have the .ToString on them

CDec(in_transactionItem.SpecificContent(“Cashin”).ToString)

in_transactionItem.SpecificContent(“Cashin”) is an OBJECT. You can’t assign an Object to a decimal/double variable. You have to convert the Object with .ToString inside the CDec (or CDbl) conversion.

Mouse over the (!) and show us what the error is.

hey did u get this answer ? if yes please let me know i have got the same problem…!!

Hi @Neha_Singh1

If you are using in_Transactionitem as Datarow use index instead of column name and try once

Regards
Sudharsan