cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amyglave
Microsoft
Microsoft

if empty returns true, when it is not empty

I have a flow that has been running successfully without intervention for about a month. It looks through our error logs, checks the bug db to see if a bug exists for the issue and if not creates a new one. It then sends an email reporting on existing bugs, new ones, and top errors.

 

Yesterday I noticed that the email is empty, no data at all.  The flow succeeded. It looks like 

if(empty(outputs('Compose')), 'No existing bugs hit today', join(outputs('Compose'), ''))
return true even though outputs('Compose') is not empty.
 
There are 3 different compose actions, and the if empty is true for all of them. Even though 2 of them have data.
 
Outputs to Compose:
ComposeOutputs.PNG
 
 
 
 
 
 
 
 
 
 
 
 
Email generation from outputs:
if empty statement.PNG
 
1 ACCEPTED SOLUTION

Accepted Solutions
amyglave
Microsoft
Microsoft

It turns out that this wasn't related to the empty condition. Instead it was that outputs Compose inside of Apply to Each steps weren't available in later steps. I fixed this up by Initializing Array variables at the top of the flow, and then appending the Compose outputs to those variables. 

View solution in original post

1 REPLY 1
amyglave
Microsoft
Microsoft

It turns out that this wasn't related to the empty condition. Instead it was that outputs Compose inside of Apply to Each steps weren't available in later steps. I fixed this up by Initializing Array variables at the top of the flow, and then appending the Compose outputs to those variables. 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (61,225)