cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AngeloA
Helper III
Helper III

DateTime is less than minumum value supported by CrmDateTime

Hi, 

 

I'm getting the error:

 

"DateTime is less than minumum value supported by CrmDateTime. Actual value: 01/01/0001 00:00:00, Minimum value supported: 01/01/1753 00:00:00"
 
(Funny spelling error in the error message 😑)
 
However, the date and time are in the correct format:
 
 
 

Screenshot 2021-03-02 133055.png

 

this flow was working correctly, however I turned it off for a few days, now that it's back on I'm getting this error, any idea how I can tackle it please?

 

TIA

AG

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Microsoft
Microsoft

OK @AngeloA , we will get this...

 

formatDateTime(items('Apply_to_each')?['Timestamp'], 'yyyy-MM-ddTHH:mm:ss')

 

Damien

View solution in original post

10 REPLIES 10
DamoBird365
Microsoft
Microsoft

Hi @AngeloA 

 

Could it just be the format of the date?  Have you tried MM/dd/yyyy instead of dd/MM/yyyy?

 

Damien

HI @DamoBird365 

 

thanks for that, it actually just gets the value from a Google Sheet and plugs it into a Dynamics table (both in UK format)

 

Screenshot 2021-03-02 161205.png

and it was working a couple of days ago without any problems ... but I'm happy to give it a go, can you suggest how I can reformat it?

 

Thanks 🙂

 

 

@AngeloA ,

 

Just something to try as it is odd I agree.  You can use the expression formatdatetime

something like formatdatetime(INSERTYOURVARIABLE,'MM/dd/yyyy')

 

Damien

Thanks for that @DamoBird365 

 

I'm trying:

 

formatdatetime({items('Apply_to_each')?['Timestamp']}, 'dd/MM/yyyy HH:mm:ss' )

 

but it complains that it's not correct ... it is a time and date field ... tried a few variations ...

Hi @AngeloA 

 

Can you screenshot the history and copy the output for that action please and I will tyr and help

 

Damien

Thanks @DamoBird365, I appreciate you trying!

 

I don't get very far I'm afraid, it won't accept my expression:

 

formatDateTime(@{items('Apply_to_each')?['Timestamp']}, 'dd/MM/yyyy HH:mm:ss')

 

AngeloA_0-1615475688045.png

 

DamoBird365
Microsoft
Microsoft

@AngeloA 

 

formatDateTime(items('Apply_to_each')?['Timestamp'], 'dd/MM/yyyy HH:mm:ss')

 

you need to remove the curly bracket and @, you only use them if you are pasting an expression direct into an action and so with it being part of an expression, it will make it invalid.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien

Thanks @DamoBird365 for the explanation, I will certainly remember it! 🙂

 

However now I'm getting the message:

 

 the value provided for date time string '22/02/2021 12:48:53' was not valid. The datetime string must match ISO 8601 format

 

Maybe it's something to do how the data is stored in Google Sheets, but can't find any references to it ... 

 

 

DamoBird365
Microsoft
Microsoft

OK @AngeloA , we will get this...

 

formatDateTime(items('Apply_to_each')?['Timestamp'], 'yyyy-MM-ddTHH:mm:ss')

 

Damien

AngeloA
Helper III
Helper III

Thanks @DamoBird365 , you've been very patient, much appreciate it 😁

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (3,711)