cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RajParivar
Helper I
Helper I

AI Builder -Extract Information from Receipts

While Running (test Run) the AI-Builder -Extract information from Receipts flow in Power Automate , I get a error '

Unable to identify the mimetype input'

The input file in the drive is pdf format of a till receipts .Any reason for the error.

 

Screenshot 2021-09-09 at 14.54.48.png

 

 

 

{"statusCode":400,"headers":{"x-ms-service-request-id":"e36115bd-97cf-4c83-8beb-0dbfdcbf152e,6496f763-deb1-4e78-a74d-62011bc1304c","Cache-Control":"no-cache","Set-Cookie":"ARRAffinity=24d0dce654032635911f09e4fb84dedc0ab54bb6d2a1510eb5125549949114db; domain=org04546f24.crm11.dynamics.com; path=/; secure; HttpOnly,ReqClientId=b3a42ed2-26a3-45c9-8e07-66191ef80522; expires=Wed, 09-Sep-2071 13:30:35 GMT; path=/; secure; HttpOnly,ARRAffinity=24d0dce654032635911f09e4fb84dedc0ab54bb6d2a1510eb5125549949114db; domain=org04546f24.crm11.dynamics.com; path=/; secure; HttpOnly","Strict-Transport-Security":"max-age=31536000; includeSubDomains","REQ_ID":"6496f763-deb1-4e78-a74d-62011bc1304c,6496f763-deb1-4e78-a74d-62011bc1304c","AuthActivityId":"618b8d50-bb1f-49f4-8e2a-23e44d50d5a0","x-ms-dop-hint":"4","x-ms-ratelimit-time-remaining-xrm-requests":"1,200.00","x-ms-ratelimit-burst-remaining-xrm-requests":"5999","OData-Version":"4.0","X-Source":"112112101126194180254154216156510855155012571972512041961350168122439723239181202128,112112101126194180254154216156510855155012571972512041961350168122439723239181202128","Public":"OPTIONS,GET,HEAD,POST","Timing-Allow-Origin":"*","Date":"Thu, 09 Sep 2021 13:30:36 GMT","Content-Length":"486","Allow":"OPTIONS,GET,HEAD,POST","Content-Type":"application/json; odata.metadata=minimal","Expires":"-1"},"body":{"error":{"code":"0x80040265","message":"{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"InvalidPredictionInput\",\"message\":\"Unable to identify the mimetype input\",\"properties\":{\"BackendErrorCode\":\"InvalidInferenceInput\",\"DependencyHttpStatusCode\":\"400\"},\"innerErrors\":[{\"scope\":\"Record\",\"target\":\"single\",\"code\":\"InvalidRecord\",\"type\":\"Error\",\"properties\":{\"MlIssueCode\":\"InvalidRecord\",\"MlIssueTarget\":\"single\"}}]}}"}}}

 

 

12 REPLIES 12
Antrod
Microsoft
Microsoft

Hi @RajParivar,

 

Yes the Receipt processing woks with files with the following format: JPEG, PNG, or PDF.

Would it be possible that the file newly created in your OneDrive (that caused this error) is a corrupted pdf? You can perhaps test if by adding an action in the flow that would send you back the file by email and try to open it.

 

Let us know if that helps.

 

Thanks.

@Antrod Just tried the email action in the flow and I can see the attachment in the mailbox without any issue. The pdf file does not seem to be corrupted .

Any other pointers to resolve the error (

\"Unable to identify the mimetype input\",\"properties\":{\"BackendErrorCode\":\"InvalidInferenceInput\",\"DependencyHttpStatusCode\":\"400\"},\"innerErrors\":[{\"scope\":\"Record\",\

)

Is it failing for any of the below pdf characteristics and if yes then how can I detect the issue ?

  • The image dimensions must be between 50 x 50 pixels and 10,000 x 10,000 pixels.
  • PDF dimensions must be at most 17 x 17 inches, which is the equivalent of the Legal or A3 paper sizes or smaller.

Yes these are ones of the limitations as mentioned in the documentation: Receipt processing prebuilt AI model - AI Builder | Microsoft Docs

 

Do you have the possibility to edit the PDF to verify that assumption? Also, is your flow failing for all the PDF documents that are created in your OneDrive?

Yes I dropped 6 pdf files and all of them failed in the AI-Builder -Extract information from receipts ...

 

Error Details :-

Input parameters are invalid for your model

Error :-

Invalid Input 

Downloaded Error :-

{"statusCode":400,"headers":{"x-ms-service-request-id":"1bb5f666-5c4a-4988-a43e-893779b5da32,08317b5c-e1c0-43d7-a991-b7052b9636a4","Cache-Control":"no-cache","Set-Cookie":"ARRAffinity=24d0dce654032635911f09e4fb84dedc0ab54bb6d2a1510eb5125549949114db; domain=org04546f24.crm11.dynamics.com; path=/; secure; HttpOnly,ReqClientId=19f4469f-abda-47f4-842e-90dba9ab6b5f; expires=Wed, 09-Sep-2071 15:19:06 GMT; path=/; secure; HttpOnly,ARRAffinity=24d0dce654032635911f09e4fb84dedc0ab54bb6d2a1510eb5125549949114db; domain=org04546f24.crm11.dynamics.com; path=/; secure; HttpOnly","Strict-Transport-Security":"max-age=31536000; includeSubDomains","REQ_ID":"08317b5c-e1c0-43d7-a991-b7052b9636a4,08317b5c-e1c0-43d7-a991-b7052b9636a4","AuthActivityId":"5d5d51cf-1336-43bf-b87f-be42ebcf324e","x-ms-dop-hint":"4","x-ms-ratelimit-time-remaining-xrm-requests":"1,196.97","x-ms-ratelimit-burst-remaining-xrm-requests":"5994","OData-Version":"4.0","X-Source":"112112101126194180254154216156510855155012571972512041961350168122439723239181202128,1474010223516533183491401617318813511324411710335209217156209145158124626987153186236128","Public":"OPTIONS,GET,HEAD,POST","Timing-Allow-Origin":"*","Date":"Thu, 09 Sep 2021 15:19:07 GMT","Content-Length":"486","Allow":"OPTIONS,GET,HEAD,POST","Content-Type":"application/json; odata.metadata=minimal","Expires":"-1"},"body":{"error":{"code":"0x80040265","message":"{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"InvalidPredictionInput\",\"message\":\"Unable to identify the mimetype input\",\"properties\":{\"BackendErrorCode\":\"InvalidInferenceInput\",\"DependencyHttpStatusCode\":\"400\"},\"innerErrors\":[{\"scope\":\"Record\",\"target\":\"single\",\"code\":\"InvalidRecord\",\"type\":\"Error\",\"properties\":{\"MlIssueCode\":\"InvalidRecord\",\"MlIssueTarget\":\"single\"}}]}}"}}}

 

Can anyone from Microsoft confirm if its defect  ?  

Hi @RajParivar, I sent you a private message to investigate your issue in details.

 

Thanks.

@Antrod I send you an email with a separate OneDrive link for the images ...

RajParivar
Helper I
Helper I

Is there a way to determine the pixel size(whether above 17 x 17 inches ) for the the pdf receipts ?

Hi @RajParivar ,

 

It's the equivalent of the A3 format. If you consider you document at 100% size, it shouldn't exceed this limit.

 

If your document fits in a standard A4 format you shouldn't be impacted by this limit.

 

Thanks.

RajParivar
Helper I
Helper I

@Antrod Thanks ...

Any breakthrough in the issue on the difference in the run between your environment and mine...

RajParivar
Helper I
Helper I

No I have not yet tried due to some deadline..I will inform you soon.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (2,347)