JSON Data Deserialize JSON: Unexpected character encountered while parsing value: O. Path '', line 0, position 0

Hi All,

I am getting an error in Deserialize JSN Output “Deserialize JSON: Unexpected character encountered while parsing value: O. Path ‘’, line 0, position 0.”

Below is the JSON txt attached.
Output.txt (1.5 KB)

Hi,

In my environment, the issue cannot be reproduced. Can you check the following sample?

Sample20230626-4L.zip (3.1 KB)

Regards,

@marina.dutta

Read the data of text file and that is to be stored in a string variable and that variable is to be passed to deserialize and as it is a json file your type argument will be jobject

Cheers

Hi,

Can you check the following post?

Regards,

Hi Yoichi,

Thanks . But If I want to create a Data Table Inside Parallel for Each after Wait for Form Task and Resume activity how should I do it?

I need to create a DataTable and add Data Row inside my parallel for each.

Hi,

How about as the following?

new object(){jo2("Data")("in_TotalRolloverCredit").ToString,jo2("Data")("subscriptionId").ToString,jo2("Data")("out_Approvedamount").ToString}

Regards,

@Yoichi

I am getting this error at Run time

Hi,

Probably, this error shows something wrong with your definition. Can you check your definition of variables etc or share your workflow file if possible?

Regards,

Hi @Yoichi

Please find the attached workflow. I am doing it in End Process

UC004_CreditRollover.zip (392.2 KB)

Hi,

In my environment (Studio23.4.2), it starts without exception.

image

For now, can you try to restart Studio then run?

Regards,

Hi Yoichi,

In the End Process , is there any wrong in the declaration of variables . Kindly confirm

Hi,

It seems no problem. Did you just run (file) or debug (file)?

Regards,

@yoichi,

I have run the file.