Showing results for 
Search instead for 
Did you mean: 
Not applicable

The Sting is not a valid TimeSpan value

I am trying to set the timeout period for an email with options.


I am using the standard ISO format of 'PT1D' as shown in the settings for my email action:



TimeSpan 02.png


And yet I still get an error that this is not a valid TimeSpan value, is there something I am doing wrong here?


TimeSpan 01.png

Community Support
Community Support

Hi ASolomon,


Not sure how is your flow configured. Could you show me a full screenshot of your flow configuration?

I am trying to reproduce this issue on my side.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
New Member

Did you find a solution?

New Member

Hi, I have the same issue, any solution to this ? Thx!

Not applicable

PT6H works and so does PT48H 


maybe it does not like the D for day?

Hi LadyStorm,

The problem was indeed a syntax (ISO format) issue. Based on the Hint that we get on the UI of the flow, I was misled.

The rule is P (Period) T(duration) H (Hour) M(Minute) S(Second).

Thanks for your reply 🙂

Kudo Commander
Kudo Commander

I have the same issue, i was using PT2D and encountered the same error.  

I  have replaced my PT2D to PT48H, will know if this works soon enough 🙂

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,641)