Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

Posted on by 880

Hi,

Normally the actual arrival time from the mobile client is set equal to start time. Suddenly around 16  march the error started happening. Before that it was working just fine. i fetched the error from the sync log in woodford.

The problem is happening when changing status from ex. in progress, on break to "Completed". Then a sync error is thrown. As far as i can see it's not everytime it's happening - making the error even more strange!

Our normal process is setting the bookignstatus to Scheduled, In progress, Completed. When set to "In Progress" we use rules in woodford to set start time equal that time (Local time when bookingstatus is changed) . When "Completed" we set end time equal that time (Local time when bookingstatus is changed) .

We haven't changed anything in our org. Neither the mobile project, plugins/workflows in CRM since 3 march. Therefore i find it very strange that this problem suddenly started.

Log:

SyncStart:2020-03-24 20:06:20+01:00

Date:2020-03-24 20:06:37+01:00
Org: XXXX
User:a83bd421-c23d-ea11-a813-000d3ab4fc19

<RemoteConflictResolution Requests='0' tim='116ms' />

<UploadSync>
<Upload entity=bookableresourcebooking>
</Upload>
<Upload entity=msdyn_bookingtimestamp>
</Upload>
<Upload entity=resco_mobileaudit>

1> Create resco_mobileaudit[msdyn_bookingtimestamp, 0ab103d8-168a-4f0c-b811-cc3eb4f6c96c]
2> Create resco_mobileaudit[msdyn_workorder, c3123eea-889b-4667-bfd0-bc4e365ec115]
3> Create resco_mobileaudit[bookableresourcebooking, 930692cb-8abf-4528-aefe-6439abbedaec]
4> Create resco_mobileaudit[synchronization, 50fb4f4c-da62-4781-8007-fb61a43bf04d]
MultiSend> 4 packets in 228ms
ClearLog 0ab103d8-168a-4f0c-b811-cc3eb4f6c96c
ClearLog c3123eea-889b-4667-bfd0-bc4e365ec115
ClearLog 930692cb-8abf-4528-aefe-6439abbedaec
ClearLog 50fb4f4c-da62-4781-8007-fb61a43bf04d
</Upload>

UploadSync_SyncEntitiesOptionalPass

<Upload entity=bookableresourcebooking>

1> Update bookableresourcebooking[Bookable resource name, c8ba4342-ccfe-4be8-b8f5-56a1efbea912]
MultiSend> 1 packets in 428ms

1> Server Error: The start time can't be later than the actual arrival time.
ActivityId=98ce0572-fedb-4142-8697-aadac64790fa| ErrorCode=-2147220891| ErrorDetails.OperationStatus=0| ErrorDetails.SubErrorCode=-2146233088| Timestamp=2020-03-24T19:06:24.8966115Z| ExceptionRetriable=false| InnerFault.InnerFault.InnerFault.ErrorCode=-2147220970| InnerFault.InnerFault.InnerFault.Message=System.Exception: The start time can't be later than the actual arrival time.
at Microsoft.Dynamics.FieldService.Operations.BookableResourceBookingOperation.BeforeCreateOrUpdate()
at FieldOne.PluginCommon.Operation`1.HandleMessage()
at FieldOne.PluginCommon.Operation`1.Execute()
at FieldOne.PluginCommon.FosPluginBase.ExecutePlugin(ITrace tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory, ISharedVariablesService sharedVariablesService)
at Microsoft.Dynamics.FieldService.FieldServicePlugin.ExecutePlugin(ITrace tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory, ISharedVariablesService sharedVariablesService)
at FieldOne.PluginCommon.FosPluginBase.Execute(IServiceProvider serviceProvider): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #822C8E4E

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    Yes it may of been a Microsoft Bug. But it was worth checking anyway :)

  • rskadk1 Profile Picture
    rskadk1 880 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    In the user / personalization settings in CRM? However neither theese where changed. So again im pointing back on Microsoft for applying a bug in the latest patch fix.

  • John Holmes Profile Picture
    John Holmes 260 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    Worth checking the time zone for the work hours too - that’s caught us out before

  • rskadk1 Profile Picture
    rskadk1 880 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    It's not possble to share a printscreen since my rules are quite complicated to they are linked inside other logic.

    I will try to check my code to see if i always copy it from start time - or i set it to "now" the same time i set Start time to "now".

    Also i thought about trying always offset the actual arrival time by 2 minutes after start time.

    However i do not know if anything of the above will be working. And also i still not understand why i suddenly experience the issue - and it's coincidentally right after Microsoft applies some patches...

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    So in your statement above:

    Our normal process is setting the bookignstatus to Scheduled, In progress, Completed. When set to "In Progress" we use rules in woodford to set start time equal that time (Local time when bookingstatus is changed) . When "Completed" we set end time equal that time (Local time when bookingstatus is changed) .

    Is it possible to share a screenshot if these rules? I know that Microsoft have their own code to do this sort of stuff already in javascript.

    When you set the start time field equal to the local time. It may be worth copying the time from the 'starttime' field to the 'actual arrival time' field to make sure that both those fields are exactly the same

  • rskadk1 Profile Picture
    rskadk1 880 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    Woodford v12.3.1.46841 and also i can see that 13/3 there is applied an patch (msdyn_FieldService_patch_11 8.8.11.19). We have the following installed:

    8.8.0.88 + 8.8.9.84 + 8.8.11.19

    According to the version history nothing was changed in regards to bookable resource booking. It's just suspecious that after this date the issues started appearing..

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    Im curious. What version of the Microsoft Woodford project are you using?

    And what version of Field Service have you got installed in CRM?

  • rskadk1 Profile Picture
    rskadk1 880 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    Yes i suspected that. It must be a Microsoft plugin triggering the error - and they must have implemented the bug around 16 march. I have no workflow on the server side setting the start time. The start time and actual arrival time is set on the mobile. And like mentioned the actual arrival time is set equal to start time. And if ex. the start time is 10:15 and actual arrival time is 10:15 there should be no error? Or at least i have newer encountered it before.

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on at
    RE: Sync error - The start time can't be later than the actual arrival time - suddenly this error is thrown from the mobile client sporadic

    If you are getting a sync error then you are getting the error from the server and not the mobile. The mobile would of prompted you already to check the start time before syncing.

    Is there a workflow setting the start time?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans