Forum Discussion

jmillsjmills's avatar
jmillsjmills
Helper III
4 years ago
Solved

Can I extract the error message as a text string?

I'm getting an error message that when I click into it, it says:

 

DataFormat.Error: We found extra characters at the end of JSON input. 

Details:
Value=;
Position=805732

 

I would like to convert this error message from being along the yellow bar to being text in a table with one row and one column. That's all I need to know how to do - do you have any ideas please?

 

Thanks!

 

For what it's worth, it's because this number in my error message can also be my solution to the error. If I can extract 805732 - a number that will change each time I run the query - I can dynamically handle this error. If I extract "805732" and convert it to a number, I can then change the original JSON input using the Text.Start function (trimming off the extra characters that cause the error).

 

So all I need to do is take the error message and have it returned in the table, so I can manipulate the output.

3 Replies