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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / List rows, Filter Rows...
Power Apps
Answered

List rows, Filter Rows fails with NULL value

(0) ShareShare
ReportReport
Posted on by 67

In a Cloud Flow I make use of the Dataverse Action: List rows . I want to select the GUID of a reference/parent table from a child table using the foreign key value in the child table. 

PietPoelsma_0-1665390623219.png

 

When this foreign key value is filled there is no issue, however the relationship between the parent & child table is optional and I get a run time error when this field is not filled.

PietPoelsma_1-1665390789086.png

 

How can I solve this issue?

 

Kind regards,

Piet

 

 

I have the same question (0)
  • Verified answer
    João Santos Profile Picture
    323 on at

    Hi,

    I would say you might just need to put this action within a condition. If KPI_TAG_MERK is not null then do your list rows action, otherwise terminate flow

    That will avoid any errors

  • PietPoelsma Profile Picture
    67 on at

    Thanks @joaodsantos ,

     

    I guess that would work and thought of that myself. I was kind of hoping to apply some kind of OData command to avoid 'clicking' a lot of power automate actions. It's approximately 20 columns in several scenario

     

    Regards

    Piet

     

  • Gowri Halan Profile Picture
    262 on at

    @PietPoelsma You might try one more option. Add a variable step in flow keep some default value in it (say 0 or 0000-0000 (empty guid)) and set child record id to it. and use variable in your condition. So you may not end up in error instead Dataverse will try to find record with 0 and might return nothing.

     

    I havent tried this approach. But give it a try

  • João Santos Profile Picture
    323 on at

    Yup, was going to suggest something similar to what @gowrihalan04 posted, but directly on the List Rows action.

    Set the filter rows to an expression that checks if there's a value on the lookup, if there is use it otherwise use a all zeros guid, something like this:

    if(equals(empty(triggerOutputs()?['body/_parentcustomerid_value']),null),'00000000-0000-0000-0000-000000000000',triggerOutputs()?['body/_parentcustomerid_value'])

    Haven't tried it either but some version of this should work I think. Just replace the triggerOutputs()?['body/_parentcustomerid_value'] on the formula which I used as an example for you own field.

    Hope this helps

  • PietPoelsma Profile Picture
    67 on at

    Thx @gowrihalan04 for your suggestion. In the mean time I implemented the solution as suggested by  @joaodsantos . It's a bit more work, but very readable which is a good thing as well.

     

    Regards,

    Piet

  • PietPoelsma Profile Picture
    67 on at

    Thx @joaodsantos as stated above I went for your first suggestion.

     

    Regards,

    Piet

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard