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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error In DateTime Format
Power Automate
Unanswered

Error In DateTime Format

(0) ShareShare
ReportReport
Posted on by

I'm having an error every time that I try to save my Flow

It is the simpliest flow that exist
When In Item is created Insert a Row in SQL

every field is working great, the problem comes when I'm trying to add my DateTime Values

I got this error

EC_1_0-1599246722962.png

The values in SP are stored like this 

EC_1_1-1599246752519.png

and If a manually copy and pasted in SQL it stores like this 

EC_1_2-1599246787574.png

 

The problem is only in the flow configuration
My Time Zone is set to Mexico City (in SP) and in SQL is set to Standar ( YYYY / MM /DD )

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @Anonymous Can you please try to use 

     

    convertToUtc(<Your Variable>, 'GMT Standard Time')

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS! 

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Can you try using the expression:

     

    formatDateTime(triggerOutputs()?['body/Hora_de_Limpieza'],'yyyy/MM/dd')

     

    Usually the format that is retrieved from SP lists is yyyy-MM-ddThh:mm:ssZ and to convert to the target type, you can use the above expression. Note that the time/date values from SP are returned in UTC timezone. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • galdezanni Profile Picture
    175 on at

    Hello guys ,

     

    I'm having a similar problem, taking values from SQL Server (datetime) and copying them to a SharepointList (datetime).

     

    But it also gives an error, how could I solve it?

     

    I tried using the code above, but in my case it didn't work either.

     

    Original error:

     

    galdezanni_0-1627420377580.png

    Thanks!

  • galdezanni Profile Picture
    175 on at

    Hello,

     

    The flow worked with the code:

     

    formatDateTime(items('Aplicar_a_cada_2')?['dtCirculacaoDOE'], 'u')

     

    Thanks

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard