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

Community site session details

Session Id :
Power Automate
Unanswered

addDays error

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I have one flow that keeps throwing this error with this input      addDays(triggerOutputs()?['body/Due date'],30,'MM-dd-yyyy')

 

Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language function 'addDays' expects its first parameter to be a string that contains the time. The provided value is of type 'Null'.

 

It works on one of my other flows, with one "Compose" to add 30 days to a field within my list.  Now I wanted to use it for 30 days and for 90 days, but it never makes it past the first 30 days.  Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    12,908 Super User 2025 Season 2 on at
    Re: addDays error

    The expression needs to use the internal name of the field in the list. Internal names would not contain any spaces, so based on your expression, you are not using a valid field. You can get the internal name of the field by opening the list settings and clicking on the field. At the end of the URL it will show field= followed by the internal name. 

     

    Of course, an easier way is to choose the field from the dynamic content when you are writing the expression in the expression builder.

  • Alexandra13 Profile Picture
    8 on at
    Re: addDays error

    Thank you so much!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard