Skip to main content
Solved

Document Automation fails with Google Document AI


Forum|alt.badge.img+10

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 ?

View original
Did this topic help answer your question?

4 replies

Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • 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+10
  • Author
  • Navigator | Tier 3
  • 66 replies
  • 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+10
  • Author
  • Navigator | Tier 3
  • 66 replies
  • 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
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • March 15, 2023
Augustin wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings