Importing JSONL file to datastore - getting errors

Trying to upload to datastore but then get the import to work for the agent. This is the error im getting:

Error sample
invalid JSON in (google.cloud.discoveryengine.v1main.Document), near 1:9 (offset 8): no such field: 'test'
Solved Solved
2 6 451
4 ACCEPTED SOLUTIONS

The same error, did you fixed that?

View solution in original post

how did you solve it?facing the same error 😕



View solution in original post

Same issue here, it used to work with the same jsonl file.

 

View solution in original post

Why are you mark my comment as a solution. If it's resolved, how did you fix it?

 

View solution in original post

6 REPLIES 6

The same error, did you fixed that?

how did you solve it?facing the same error 😕



Same issue here, it used to work with the same jsonl file.

 

Why are you mark my comment as a solution. If it's resolved, how did you fix it?

 

Same issue encountered. Did anyone able fix it?

You need to add the JSON data inside "json_data" field in string type.

Let us suppose your individual JSON document is {"test": "value"}

JSONL file should be like:

{ "id": "0", "json_data": "{\"test\" : \"value\"}" }