Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

We found extra characters at the end of the JSON input

Hi Experts,

I am extracting data from azure blob we are getting the json files format in location some json we have one record and some json files we have multiple records in each json as below:

 

One records in one json

mmcaccount_0-1721195606141.png

Multiple records in one json files:

mmcaccount_1-1721195606112.png

 

Is due to that after invoke function, in transform file, getting table (single record) , errors are coming having multiple records.

#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File (2)", each #"Transform File (2)"([Content]))

 

An error occurred in the ‘Transform File (2)’ query. DataFormat.Error: We found extra characters at the end of the JSON input.
Details:
Value={
Position=2118

 

mmcaccount_2-1721195723780.png

 

Checked in json viewer invalid due to multiple records.  i was stuck is there any possible to bring the error record ?

Please suggest

1 ACCEPTED SOLUTION
v-xianjtan-msft
Community Support
Community Support

Hi @Anonymous 

 

Please try adding “[”at the beginning, “]”at the end, and “,” after every line. 

Here is my test result, checked in Json Viewer is valid.

vxianjtanmsft_0-1721281910181.png

 

Here are similar cases for your reference:

Solved: We found extra characters at the end of the JSON i... - Microsoft Fabric Community

We Found Extra Characters at End of JSON Line - Microsoft Community Hub

 

Best Regards,

Jarvis Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xianjtan-msft
Community Support
Community Support

Hi @Anonymous 

 

Please try adding “[”at the beginning, “]”at the end, and “,” after every line. 

Here is my test result, checked in Json Viewer is valid.

vxianjtanmsft_0-1721281910181.png

 

Here are similar cases for your reference:

Solved: We found extra characters at the end of the JSON i... - Microsoft Fabric Community

We Found Extra Characters at End of JSON Line - Microsoft Community Hub

 

Best Regards,

Jarvis Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.