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 Automate / Two Compose Actions - ...
Power Automate
Answered

Two Compose Actions - First one succeeds but the second fails

(0) ShareShare
ReportReport
Posted on by 82

Hi All

 

I have two compose actions in my flow, one for Scheduled Date and one for Actual Release Date with the following code:

 

if(empty(items('Apply_to_each')?['Scheduled Date']),'',addDays('1899-12-30',int(items('Apply_to_each')?['Scheduled Date']),'MM/dd/yyyy'))

 

if(empty(items('Apply_to_each')?['Actual Release Date']),'',addDays('1899-12-30',int(items('Apply_to_each')?['Actual Release Date']),'MM/dd/yyyy'))

 

The first one for Scheduled date works perfectly but the secone one for Actual Release Date fails.

 

PowerAutomateComposeIssue2.PNG

 

 

 

PowerAutomateComposeIssue3.PNG

 

Output

 

PowerAutomateComposeIssue1.PNG

 

 I have come across a similar issue here, but it hasn't helped me solve my problem

 

Any suggesions?

 

Thank you.

Categories:
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    @Yoshimitsu411 

     

    Why are you not using the variables that you have set?  VarActualReleasedDate in your Compose?  You've highlighted them as output but then don't call them in the compose? 

     

    Damien

  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @Yoshimitsu411 ,

    May be this aproach will work ...

    if(empty(variables('varScheduledDate')),'',addDays('1899-12-30',int(variables('varScheduledDate')),'MM/dd/yyyy'))

     

    if(empty(variables('varActualReleaseDate')),'',addDays('1899-12-30',int(variables('varActualReleaseDate')),'MM/dd/yyyy'))

     

    On the other hand, please check if ['Actual Release Date'] column name isn't somehow misspelled.

     

    Hope it helps !

  • Yoshimitsu411 Profile Picture
    82 on at

    Thanks @gabibalaban , but it turns out I misspelled the name of the Actual Release Date column.

     

    I could have also used the variable solution pointed out by @DamoBird365 

     

    Thanks again.

     

    Yoshi

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard