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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Dyanmics 365 error Cannot implicitly convert from type 'str' to type 'utcdatetime'

(0) ShareShare
ReportReport
Posted on by 20

4744.ssi.png

Severity Code Description Project File Line Suppression State
Error Cannot implicitly convert from type 'str' to type 'utcdatetime'. FinanceOperations1 (USR)

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi abrar361,

    InventDimension9 field has utcDateTime type and you need to use the same type for the default value. For this purpose you can use function DateTimeUtil::minValue().

  • abrar361 Profile Picture
    20 on at

    it gives error DateTimeUtil not a valid map

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi abrar361,

    Could you, please, share your new code?

  • abrar361 Profile Picture
    20 on at

    InventDim.DateTimeUtil::minValue();

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi abrar361,

    It doesn't work that way.

    You need to assign value that returned by minValue function to InventDim.InventDimension9 field.

    InventDim.InventDimension9 = DateTimeUtil::minValue();

  • abrar361 Profile Picture
    20 on at

    Thanks so much Sergei Minozhenko for your support

    issue resolved.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans