web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AI Builder won't read ...
Power Automate
Answered

AI Builder won't read the invoice

(0) ShareShare
ReportReport
Posted on by 38

Hello,

 

I wanna read the invoice throw the AI Builder. I have 3 kinds of invoices i every time get a error:

{"statusCode":400,"headers":{"x-ms-service-request-id":"b6c3a1dc-c6fe-4f01-a44d-2508c242c1f4,9e1a3a8c-2911-475f-b8f7-7b7c0de6a9c4","Cache-Control":"no-cache","Set-Cookie":"ARRAffinity=75caae5ee90a84bfc823d686f8810f8c240d366517f0fbba25e87606e27b89a7; domain=org3f193024.crm4.dynamics.com; path=/; secure; HttpOnly,ReqClientId=3cdf4f83-c9d2-4a93-a80f-2200ced1bc42; expires=Thu, 07-Jul-2072 08:13:05 GMT; path=/; secure; HttpOnly,ARRAffinity=75caae5ee90a84bfc823d686f8810f8c240d366517f0fbba25e87606e27b89a7; domain=org3f193024.crm4.dynamics.com; path=/; secure; HttpOnly","Strict-Transport-Security":"max-age=31536000; includeSubDomains","REQ_ID":"9e1a3a8c-2911-475f-b8f7-7b7c0de6a9c4,9e1a3a8c-2911-475f-b8f7-7b7c0de6a9c4","AuthActivityId":"239cbcfc-fc7f-420a-b173-3f1207247f47","x-ms-dop-hint":"4","x-ms-ratelimit-time-remaining-xrm-requests":"1,198.68","x-ms-ratelimit-burst-remaining-xrm-requests":"5991","x-ms-utilization-percent":"1","OData-Version":"4.0","X-Source":"12173581718976251684417224618109184105192491002598214902131302194117320929197176217,1466116121152222232124947203145192232211711382462614529118504278217318416310114","Public":"OPTIONS,GET,HEAD,POST","Date":"Thu, 07 Jul 2022 08:13:05 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\"}}]}}"}}}

 We have other Invoices that are coming throw, so i made a new flow to read the invoice separately but i still get the same code.  

PatrickAxFlowDC_0-1657182923488.png

PatrickAxFlowDC_1-1657182934894.png

 

 

Categories:
I have the same question (0)
  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hallo@PatrickAxFlowDC - thanks for the question!

     

    Let's try two things.

     

    1. If you go the AI Builder homepage: https://aka.ms/tryaibuilder select the option to Extract information from invoices, and try to upload your three invoices. Are you seeing the data extracted? Or do you get an error?

     

    JoeFMSFT_0-1657228607549.png

     

    JoeFMSFT_1-1657228619491.png

     

    2. Try building the flow this following way. Make sure you have activated the options highlighted below in the Outlook trigger, and add a condition to filter out any email signature so it's not processed by the AI Builder model.

     

    JoeFMSFT_2-1657228648137.png

     

    Let us know if this helps! Bedankt! 🙂

  • PS-13051242-0 Profile Picture
    38 on at

    I already did option 1. It reads the invoices but when i make the flow i get the same error. But i see the date extracted.

     

    Option 2 i also did, but which condition i need to apply? Bijlagen ....  because it's getting everytime at the false side and there nothing happens. And when i apply the AI Builder on the false side i get the same error. 

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Good morning! 

     

    Apologies, I should have mentioned that in the condition you should put the Bijlagen is online output.

     

    JoeFMSFT_0-1657269455975.png

     

    Also, to test it, are you sending new emails every time? Or you are testing with previous runs? Testing with previous runs can cause the error. The test it, we recommend that you send new emails every time.

  • PS-13051242-0 Profile Picture
    38 on at

    Hi,

     

    This solution also didn't work. I'm still getting the same error:

    {"statusCode":400,"headers":{"x-ms-service-request-id":"b91c731d-1bc1-4c8c-843d-de6f36b73f68,e1987679-4eca-4136-95da-c09b36fe4e2c","Cache-Control":"no-cache","Set-Cookie":"ARRAffinity=75caae5ee90a84bfc823d686f8810f8c240d366517f0fbba25e87606e27b89a7; domain=org3f193024.crm4.dynamics.com; path=/; secure; HttpOnly,ReqClientId=be64e0b0-4063-42cc-a3a6-ca9a0ddd1914; expires=Tue, 12-Jul-2072 13:55:03 GMT; path=/; secure; HttpOnly,ARRAffinity=75caae5ee90a84bfc823d686f8810f8c240d366517f0fbba25e87606e27b89a7; domain=org3f193024.crm4.dynamics.com; path=/; secure; HttpOnly","Strict-Transport-Security":"max-age=31536000; includeSubDomains","REQ_ID":"e1987679-4eca-4136-95da-c09b36fe4e2c,e1987679-4eca-4136-95da-c09b36fe4e2c","AuthActivityId":"4de81eac-ed5f-4335-9253-a06d97bc06d5","x-ms-dop-hint":"4","x-ms-ratelimit-time-remaining-xrm-requests":"1,200.00","x-ms-ratelimit-burst-remaining-xrm-requests":"5998","x-ms-utilization-percent":"0","OData-Version":"4.0","X-Source":"12173581718976251684417224618109184105192491002598214902131302194117320929197176217,391449517219252133952211811212825014141631071592222471381692913973723019313114119175","Public":"OPTIONS,GET,HEAD,POST","Date":"Tue, 12 Jul 2022 13:55:02 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\"}}]}}"}}}

    Do you have another idea? 

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Arg, will find a solution sooner or later. 🙂 How are you testing the flow? Are you each time sending a new email to test the flow? Or using previous flow runs?

  • PS-13051242-0 Profile Picture
    38 on at

    Yeah i also keep trying something different, but i running out of solutions😅

    Yes i'm running a new test every time. 

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Let's try the following 🧐:

     

    1. Create a new flow using this template: https://flow.microsoft.com/en-us/galleries/public/templates/23dc1ab1bef44657803a92ed68108b0d/use-form-processing-model-to-extract-data-from-email-attachments/

     

    2. Once the flow is created, remove the form processing action:

    JoeFMSFT_0-1657756122631.png

     

    3. Replace it by the one to extract data from invoice

     

    JoeFMSFT_1-1657756204418.png

     

    4. Save and test the flow. Does the flow run successfully, or it fails also? 

    Thank you!

  • Verified answer
    PS-13051242-0 Profile Picture
    38 on at

    I think i found a way. I have made a new ai builder model  but not with the not with the structured document but unstructured document. Then i tagged only the things i really wanted to find and applied it in a new flow. I'm still testing it but it is looking good. 

    PatrickAxFlowDC_0-1657780820726.pngPatrickAxFlowDC_1-1657780884180.png

     

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Thanks for sharing @PatrickAxFlowDC! Out of curiosity, are the invoices in Dutch, English or another language? 

  • PS-13051242-0 Profile Picture
    38 on at

    The invoices were in both languages, but i made it work now. I have made an AI and used "unstructured and free form documents" and if there is a invoice it won't read correctly i apply it on the AI and next time it comes throw it works. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard