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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extracted table from P...
Power Automate
Unanswered

Extracted table from PDF using AI Model and creating a list item in sharepoint

(0) ShareShare
ReportReport
Posted on by 15

I have developed and trained an AI model to extract a table from a PDF document.  There are 3 columns and 1 or more rows in the table depending on the PDF.  The data is the same and is correctly extracted and tagged.  I created a PA flow to run the model when a file is dropped into the shared folder.  I have created a Parse JSON and Compose step to validate the data is accurately extracted.  Both are giving the correct output when looking at the Output.   When it runs through the Appy to each loop to extract the individual values from the table I keep getting this error:

 

ExpressionEvaluationFailed. The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['tables']?['Account_4e59b6c72f6fd0b3907a5dff07b0c5d3']?['entries']' is of type 'Null'. The result must be a valid array.

 

I checked the JSON schema and that is working ( 

{"@odata.type":"#Microsoft.Dynamics.CRM.expando","x":0.14494117568520939,"y":0.97352730144153943}]}}}]}],"tables":{"@odata.type":"#Microsoft.Dynamics.CRM.expando","Account_4e59b6c72f6fd0b3907a5dff07b0c5d3":

). I would love for some assistance on how to solve this.

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @Maxcavalli 

     

    does value under property  entries which is under property Account_4e59b6c72f6fd0b3907a5dff07b0c5d3 has any value or it is null. As json structure which you have shared does not have these values present 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Maxcavalli Profile Picture
    15 on at

    Hi Nived,  thanks for the response.  

     

    the data is there, see below. 

     

    "tables": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "Account_4e59b6c72f6fd0b3907a5dff07b0c5d3": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "displayName": "Account Information",
     "entries@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "entries": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "Account_2242971ddf4a5a50ac6cd4a4cfeb2040": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "Craig Tervit",
     "displayName": "Account Holder",
     "fieldType": "string",
     "text": "Craig Tervit",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.0822130039062577,
     "top": 0.563798064287573,
     "width": 0.0864966852953155,
     "height": 0.0134582413761205,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.0822130039062577,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.168709689201573,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.168709689201573,
     "y": 0.577256305663694
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.0822130039062577,
     "y": 0.577256305663694
     }
     ]
     }
     }
     }
     },
     "Account_a4783e73a66eeba767acfc16d93dd656": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "F13BGS1Q",
     "displayName": "Account Number",
     "fieldType": "string",
     "text": "F13BGS1Q",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.658284851800746,
     "top": 0.563798064287573,
     "width": 0.0785222531128946,
     "height": 0.0130215985519917,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.658284851800746,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.73680710491364,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.73680710491364,
     "y": 0.576819662839565
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.658284851800746,
     "y": 0.576819662839565
     }
     ]
     }
     }
     }
     },
     "Account_dce81c5bf1aafe275f2559ec37e6075d": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "TFSA",
     "displayName": "Account Type",
     "fieldType": "string",
     "text": "TFSA",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.372390764941704,
     "top": 0.563798064287573,
     "width": 0.0368106997000806,
     "height": 0.0121569265570525,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.372390764941704,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.409201464641784,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.409201464641784,
     "y": 0.575954990844625
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.372390764941704,
     "y": 0.575954990844625
     }
     ]
     }
     }
     }
     }
     },

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @Maxcavalli 

     

    Could you show me how the json content looks in body('Parse_JSON') expression, reason because something using incorrect property can create the issue of null.

     

    So need to see the json structure in full so that to see if any nesting occurred by which you are getting null ?

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Maxcavalli Profile Picture
    15 on at

    Sure,  here is the schema 

     

    },
     "schema": {
     "type": "object",
     "properties": {
     "tables": {
     "type": "object",
     "properties": {
     "Account_4e59b6c72f6fd0b3907a5dff07b0c5d3": {
     "type": "object",
     "properties": {
     "displayName": {
     "type": "string"
     },
     "entries": {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "Account_2242971ddf4a5a50ac6cd4a4cfeb2040": {
     "type": "object",
     "properties": {
     "value": {
     "type": "string"
     },
     "displayName": {
     "type": "string"
     }
     }
     },
     "Account_a4783e73a66eeba767acfc16d93dd656": {
     "type": "object",
     "properties": {
     "value": {
     "type": "string"
     },
     "displayName": {
     "type": "string"
     }
     }
     },
     "Account_dce81c5bf1aafe275f2559ec37e6075d": {
     "type": "object",
     "properties": {
     "value": {
     "type": "string"
     },
     "displayName": {
     "type": "string"
     }
     }
     }
     }
     }
     }
     }
     }
     }
     }
     }
     }
    }
     "tables": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "Account_4e59b6c72f6fd0b3907a5dff07b0c5d3": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "displayName": "Account Information",
     "entries@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "entries": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "Account_2242971ddf4a5a50ac6cd4a4cfeb2040": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "Craig Tervit",
     "displayName": "Account Holder",
     "fieldType": "string",
     "text": "Craig Tervit",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.0822130039062577,
     "top": 0.563798064287573,
     "width": 0.0864966852953155,
     "height": 0.0134582413761205,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.0822130039062577,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.168709689201573,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.168709689201573,
     "y": 0.577256305663694
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.0822130039062577,
     "y": 0.577256305663694
     }
     ]
     }
     }
     }
     },
     "Account_a4783e73a66eeba767acfc16d93dd656": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "F13BGS1Q",
     "displayName": "Account Number",
     "fieldType": "string",
     "text": "F13BGS1Q",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.658284851800746,
     "top": 0.563798064287573,
     "width": 0.0785222531128946,
     "height": 0.0130215985519917,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.658284851800746,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.73680710491364,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.73680710491364,
     "y": 0.576819662839565
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.658284851800746,
     "y": 0.576819662839565
     }
     ]
     }
     }
     }
     },
     "Account_dce81c5bf1aafe275f2559ec37e6075d": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "TFSA",
     "displayName": "Account Type",
     "fieldType": "string",
     "text": "TFSA",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.372390764941704,
     "top": 0.563798064287573,
     "width": 0.0368106997000806,
     "height": 0.0121569265570525,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.372390764941704,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.409201464641784,
     "y": 0.563798064287573
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.409201464641784,
     "y": 0.575954990844625
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.372390764941704,
     "y": 0.575954990844625
     }
     ]
     }
     }
     }
     }
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "Account_2242971ddf4a5a50ac6cd4a4cfeb2040": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "Craig Tervit",
     "displayName": "Account Holder",
     "fieldType": "string",
     "text": "Craig Tervit",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.0820798943882903,
     "top": 0.582444378456331,
     "width": 0.0867750143762607,
     "height": 0.0139205210451963,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.0820798943882903,
     "y": 0.595919724670083
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.0822130039062577,
     "y": 0.582444378456331
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.168854908764551,
     "y": 0.582898126118091
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.168709689201573,
     "y": 0.596364899501527
     }
     ]
     }
     }
     }
     },
     "Account_a4783e73a66eeba767acfc16d93dd656": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "F13BGS1T",
     "displayName": "Account Number",
     "fieldType": "string",
     "text": "F13BGS1T",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.658284851800746,
     "top": 0.582461524116964,
     "width": 0.0798291282025478,
     "height": 0.0128075635550858,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.658284851800746,
     "y": 0.582684091121185
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.738041391859765,
     "y": 0.582461524116964
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.738113980003294,
     "y": 0.595046479844827
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.658357439944274,
     "y": 0.59526908767205
     }
     ]
     }
     }
     }
     },
     "Account_dce81c5bf1aafe275f2559ec37e6075d": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "value": "RRSP",
     "displayName": "Account Type",
     "fieldType": "string",
     "text": "RRSP",
     "location": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "pageNumber": 2,
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.370430423456611,
     "top": 0.58267555911387,
     "width": 0.0395092129818067,
     "height": 0.0115062487360178,
     "polygon": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "coordinates@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "coordinates": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.370430423456611,
     "y": 0.593959200022665
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.370551451780181,
     "y": 0.58267555911387
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.409939636438417,
     "y": 0.582898126118091
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "x": 0.409818608114847,
     "y": 0.594181807849888
     }
     ]
     }
     }
     }
     }
     }
     ],
     "columns@odata.type": "#Collection(Microsoft.Dynamics.CRM.crmbaseentity)",
     "columns": [
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "name": "Account Holder"
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "name": "Account Type"
     },
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "name": "Account Number"
     }
     ]
     }
     },

     

  • Maxcavalli Profile Picture
    15 on at

    Any updates on this?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard