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.
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
Did you ever find a solution for this issue? Iâm having the exact same problem and have tried the potential solution below, but simply adding the .ToString does not make a difference.
@postwick Iâve tried your solution. Nothing. The error I keep getting is:
Can not assign 'CDec(in_TransactionItem(âCashInâ)) to âCashInâ
Studio keeps telling me I do not need Specific Content, and when I simply add .ToString to the CDec method I get the same error message. My project looks exactly like the example.
@Emilie_Tole1 @uzair_khan @Neha_Singh1
Whatâs the type of the variable CDec, guys?
CDec isnât a variable. Itâs a function that converts into decimal. Itâs C(onvert)Dec(imal)
Again, please copy the entire error message and post it here.
You do need SpecificContent. Write the following with Log Message and tell us what you get:
â[â + in_TransactionItem.SpecificContent(âCashInâ).ToString + â]â
(donât copy paste, the double quotes wonât be correct because of the font used on this web page)
Hi @Neha_Singh1,
I was looking the first screenshot you shared and I noticed that your in_TransactionItem is null. That was the reason you got that exception (Multiple Assign: Can not assign âCDec(in_TransactionItem(âCashInâ))â to âCashInâ)
So, the problem is one step before (GetTransactionData). It must look something like this:
If you want, share your project. Then, I can take a look and identify what is causing the error.
Note: I understood that you are doing the course Build a ReFramework Project with Tabular Data, so you will not use .SpecificContent as you are not dealing with Orchestrator queues.
Thanks!
Hi @uzair_khan and @Emilie_Tole1,
Please check my post above if you are doing the course Build a ReFramework Project with Tabular Data (here you should not use .SpecificContent).
If you are doing the course Build a ReFramework Project with Orchestrator Queues, do not consider my post above and let me know (for this one you should use .SpecificContent).
Feel free to share your project. Then, I can take a look and identify what is causing the error.
Thanks!
Hello Mr Gustavo, i still have the same problem as this post and still cant find the way to get rid of it. Can i send you my project? thank u so much.