Skip to main content
Question

Document Automation fails with Google Document AI

  • 14 March 2023
  • 4 replies
  • 197 views

Hello everyone,

I am trying to use Google Document AI in Document Automation, with a *.automationanywhere.digital Control Room

The extract fails with that message :

EXTRACT_FAILED - [DocAi] : 500 : Unexpected failure from Engine : com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $

Has anyone faced the same error ? I am facing it with various PDF files.

4 replies

Userlevel 7
Badge +13

Hi @Augustin ,

 

Are you getting this error for all the documents or only for a specific one? Because this error can be because of the type or format of the Input data. The error suggests using the JsonReader.setLenient(true) method to accept malformed JSON, which can help bypass strict formatting requirements. However, it is important to note that this may not always be the best solution, as it could potentially introduce inaccuracies or issues in the output.

Userlevel 1
Badge +8

Hi @Padmakumar 

I get the same error for all files.

I did not change any of the settings/parameters of the bots except for the Document AI key/URL

Userlevel 1
Badge +8

I answer to myself : the solution is in a hidden page reachable after login : https://apeople.automationanywhere.com/s/article/A360-BYOK-GoogleDocAI

 

Why isn’t this page easily accessible ?

Userlevel 7
Badge +13

I answer to myself : the solution is in a hidden page reachable after login : https://apeople.automationanywhere.com/s/article/A360-BYOK-GoogleDocAI

 

Why isn’t this page easily accessible ?

 

This is not from the AA Documentation. It is an article from AA KB where login is required.

Reply