Skip to main content
Answer

Document Automation fails with Google Document AI

  • March 14, 2023
  • 4 replies
  • 317 views

Forum|alt.badge.img+11

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.

Best answer by Augustin

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 ?

4 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • March 14, 2023

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.


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • March 14, 2023

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


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • Answer
  • March 14, 2023

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 ?


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • March 15, 2023

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.