Exception Type: JsonSerializationException

I faced the same exception! when I am assigning a datarow array variable to another datarow array argument.
jsonConstructor attribute. Path ‘Output.out_WIList.$values[0].RowError’, line 1, position 143.

while assigning Datarow variable to datarow argument

1 Like

same for me when assigning a datarow-array to an argument

1 Like

I have a same problem, please help!!!

Hi there @radovan.bordovsky,
How are you converting your DataTable to a DataRow?

I have just tested this on my machine, converting my initial DT using:

out_ArrDataRows = dtExample.AsEnumerable.ToArray

I then had the resultant Argument (out_ArrDataRows) passed out successfully?

Can you clarify on what you are trying to achieve?

Thanks,
Josh

Have same problem.

It could be different to topic starter, but I bump into this message when I assign DataRow variable to DataRow argument

Hi there Ancher,
Can you provide an example snippet on how you are achiving this?

Thanks,
Josh

1 Like

System1_ExtractWorkItems.xaml (9.7 KB)

and the message I get once I run it

Hi there @Ancher,
Apologies, I will take a look at this momentarily :slight_smile:

Thanks,
Josh

1 Like

Hi there @Ancher,
I’ve run the provided workflow twice with success.

Once in isolation and once from elsewhere.

If you go to the output pane, are you receiving this error before, or after the final Log message?

Thanks in advance,
Josh

Hard to tell, final log line and pop up message come up at about same time.

If you will run that workflow by invoking then it will work and if you will try to run directly then it will give the exception after running all activities.

it’s right? but I not know how to do

Hi @miracle

Let me say all that I know about this exception.
Isolated Invocation:
All the output arguments should be Serializable one. Arguments that aren’t Serializable like BrowserElement will throw this expection
Not Isolated:
One can use Non-Serializable arguments, however the workflow will throw the same Exception if run independently i.e you just run this workflow alone. Will NOT throw Exception if invoked elsewhere

I was successed solved this problem,thanks

@miracle Can you let us know, how did you resolve issue?

rajeev85 answer this question perfectly, I just follow him.

@rajeev85, @miracle, @Abhishek2krs, @Ancher, @Mr_JDavey, @irahmat, @markus
Hi all, I have the same problem but in different case please follow the link and help me out