Logic App - Form Recgonition - Confidence Error - Expected Integer but got Number

BOBBY 0 11 Reputation points
2020-10-05T19:43:09.6+00:00
**I just started getting this error. I'm not sure why. Everything was great on Friday. is this error because its a decimal?   Let me know if you want me to post something else.** 
***Output Error*** 

[
  {
    "message": "Invalid type. Expected Integer but got Number.",
    "lineNumber": 0,
    "linePosition": 0,
    "path": "analyzeResult.readResults[0].lines[7].words[0].confidence",
    "value": 0.958,
    "schemaId": "#/properties/analyzeResult/properties/readResults/items/properties/lines/items/properties/words/items/properties/confidence",
    "errorType": "type",
    "childErrors": []
  }
]
],
            "text": "Smith",
            "words": [
              {
                "boundingBox": [
                  1.0067,
                  0.8667,
                  1.7301,
                  0.9035,
                  1.7131,
                  1.2663,
                  0.9967,
                  1.2278
                ],
                "text": "Smith",
                "confidence": 0.958
              }
            ]



**Schema** Label

},
                                    "Company": {
                                        "type": "object",
                                        "properties": {
                                            "type": {
                                                "type": "string"
                                            },
                                            "valueString": {
                                                "type": "string"
                                            },
                                            "text": {
                                                "type": "string"
                                            },
                                            "page": {
                                                "type": "integer"
                                            },
                                            "boundingBox": {
                                                "type": "array",
                                                "items": {
                                                    "type": "number"
                                                }
                                            },
                                            "confidence": {
                                                "type": "integer"
                                            },
                                            "elements": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            }
                                        }
                                    },


Output Value - Label 

},
          "Company": {
            "type": "string",
            "valueString": "Smith",
            "text": "Smith",
            "page": 1,
            "boundingBox": [
              0.995,
              0.865,
              1.73,
              0.865,
              1.73,
              1.265,
              0.995,
              1.265
            ],
            "confidence": 1,
            "elements": [
              "#/readResults/0/lines/7/words/0"
            ]
          },

**Output Error** 

[
  {
    "message": "Invalid type. Expected Integer but got Number.",
    "lineNumber": 0,
    "linePosition": 0,
    "path": "analyzeResult.readResults[0].lines[7].words[0].confidence",
    "value": 0.958,
    "schemaId": "#/properties/analyzeResult/properties/readResults/items/properties/lines/items/properties/words/items/properties/confidence",
    "errorType": "type",
    "childErrors": []
  }
]
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,870 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,405 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. BOBBY 0 11 Reputation points
    2020-10-06T03:27:10.583+00:00

    I figured it out and removed the following from the bottom. then pasted the rest of the JSON from the HTTP request to the Parse JSON

    }],
    "errors": []

    }
    }

    1 person found this answer helpful.