Academy Level 3 Client Security Hash Assignment

Hi Guys,

I’m having a problem getting things work for my level 3 assignment 2.
I’m getting an error of

“Error getting transaction data for Transaction Number: 1. Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘System.Data.DataRow’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path ‘RowError’. at Source: Newtonsoft.Json”

I don’t know what is wrong and where the error is coming from.
I Uploaded my project here…
appreciate any help.
Thanks.

1 Like

ReFrameWork-master.zip (2.1 MB)

Check your loops have the correct type assigned.

Can you share some screenshots of it. @theryt

cheers :smiley:

Happy learning :smiley:

2 Likes

Hi patty,

Tbh, I dont think the screen shot will help since its showing the error from different part because it is skipping my transaction.

here is the screenshot of the error.

Hi @theryt
I have make change in main xml file TransactionItem variable should me DataRow.

anandji05@gmail.comReFrameWork-master.zip (2.1 MB)
Regards
Anand

Main.xaml (62.3 KB)

2 Likes

oh wow, that solved it.
I’m still confused of when to use DataRow and DataRow

thanks for the help, anand.

1 Like

Hu @theryt,

To reduce confusion please mark it as solved.

:+1:

2 Likes

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