Hi @JC_D4B ,
The error message told that the template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'.
I have made a test on my side and the "body('Get_row_(V2)')?['Value']" would alwyas be null.
If your want to acheck if a record is exists in the SQL table, you couldn't achieve your requirement with the expression that you provided.
If the record is not in the SQL table, the "Get Row" action would run failed with error message "Item Not Found", so you could configure the "Insert row" action to run after the "Get Row" action has run successfully, and configure the "Update row" action to run after the "Get Row" action has run failed.


Please let me know if your problem could be solved.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.