How to fix 400 error in logic app with form recognizer data to database

Adrian Barrera 0 Reputation points
2024-11-07T23:05:21.42+00:00

I'm trying to process blob invoices through a form recognizer and straight into a table in my database but get a 400 error stating, "A value must be provided for item".

I mapped the data correctly and it goes to the appropriate rows when i look at the log, but still get this error. I dont know where this issue could come from, any help is appreciated.

Below is a screenshot of my logic app im working in along with the For Each detail. I can provide more info if need be.

User's image

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 5,990 Reputation points Microsoft External Staff Moderator
    2024-11-11T01:25:55.06+00:00

    Hi Adrian Barrera,
    I would like to know whether the Primary Key which is InvoiceID is auto generated like using Identity Column, if it is using identity column it may not need mapping in the Logic App. However, if Primary Key column requires input from the Logic App, ensure a valid unique value is provided, or adjust the SQL table’s settings to auto-generate it if possible.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.