Forum Discussion

unknown917's avatar
unknown917
Helper IV
1 year ago

Automate Flow adding rows to table trigger failed

I have a flow set up to add rows to a table.  I received an error for null values when adding rows.  I attempted adding the following expression to account for nulls:

 

if(empty(triggerOutputs()?['ColumnName']),'',triggerOutputs()?['ColumnName'])
 
but I now get this error when triggering the flow:
 

The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Required properties are missing from object: entity.'.

 

Any insight as to the error and if my expression is incorrect?

11 Replies

  • Expiscornovus's avatar
    Expiscornovus
    Most Valuable Professional

    Hi unknown917,

     

    Which trigger action are you using? Can you share a screenshot of your flow setup?

     

    If this an action in the middle of flow you would normally use the item() function (in an apply to each loop) instead of a reference to the trigger action.

     

    So, it might be the case that you want to use that function instead:

     

    if(empty(item()?['ColumnName']),'',item()?['ColumnName'])

     

     

    • unknown917's avatar
      unknown917
      Helper IV

      It is a manual trigger.  I tried your suggestion, still get the same error.

       

       

      • Expiscornovus's avatar
        Expiscornovus
        Most Valuable Professional

        Hi unknown917,

         

        Are you using the below in the Select an output from previous steps field of the Apply to each action?

         

        triggerBody()?['entity']?['Power BI values']

         

         

        Can you also inspect the outputs of the On Power BI button clicked trigger action of your flow run to see what the structure is and if it contains any data at all?

         

        Just want to see what the names of your columns are and it it actually contains the data.

         

    • unknown917's avatar
      unknown917
      Helper IV

      I am finding now that the function results in omitting the entire row from being added to the table.  Even if there is nothing in the column, I still need the row to populate with data from the other columns

  •  

    Allow me to better explain the situation.  The columns I'm exporting inevitably will have null values at the row level.  They are text columns, so I don't want to have a zero replacing the null or empty cell.  I made the assumption that the flow failed because of this.  
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi unknown917 ,

     

    For this error message "The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Required properties are missing from object: entity.", I would recommend removing and re-adding the trigger to help determine if the issue persists.

     

    Best Regards,

    Bof