none
HCW: could not converting string to DateTimeOffset RRS feed

  • Question

  • Hi,

    running thr HCW I get this error: "Could not convert string to DateTimeOffset: 0001-01-01T00:00:00. Path '[0].LastDirSyncTime' line 1, position 104"

    the log reports

    2019.09.06 08:30:56.214 *ERROR* 10430 [Client=UX, ExecuteHighlandsServiceRequest=DirSync, Thread=17]
                                          Newtonsoft.Json.JsonReaderException: Could not convert string to DateTimeOffset: 0001-01-01T00:00:00. Path '[0].LastDirSyncTime', line 1, position 104.
                                             at Newtonsoft.Json.JsonReader.ReadDateTimeOffsetString(String s)

    Any idea? :(

    thanks


    • Edited by Trapulo Friday, September 6, 2019 8:33 AM
    Friday, September 6, 2019 8:07 AM

Answers

All replies

  • Hi Trapulo,

    You should sync AAD at least one time before running HCW. Because, HCW will check the LastDirSyncTime which doesn't exist if you don't sync before. Then, this issue will occur.

    So, try to use command below to force AAD sync, wait for it complete, then try to run HCW again:

    Start-ADSyncSyncCycle -PolicyType Initial

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Monday, September 9, 2019 1:47 AM
    Moderator
  • My AdSync is working (well) from several months.

    However, after a while I solved it.

    thanks anyway

    Monday, September 9, 2019 7:18 AM
  • However, after a while I solved it.

    I'm having the same problem. It would be awesome to hear *how* you solved it.
    Monday, October 28, 2019 11:49 AM