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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Field Service - Generate Agreement Booking Dates failing

(1) ShareShare
ReportReport
Posted on by 2,909

Hi All,

Have a Field Service Org that has been running for a couple of years and this month Work Orders from Service Agreements are failing 98% on 500 agreements on this system job "Field Service - Generate Agreement Booking Dates". If I start a new system job it's working as expected however will wait and see what support achieve over the next 24 hours as per below.

MS support are stating known bug and trying to fix.

Error:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Invalid dataDetail:
  <ActivityId>e63f5399-8d77-4576-897c-e60d3dce248d</ActivityId>
  <ErrorCode>-2147220989</ErrorCode>
  <HelpLink>http%3a%2f%2fgo.microsoft.com%2ffwlink%2f%3fLinkID%3d398563%26lcid%3d1033%26error%3dMicrosoft.Crm.CrmException%26client%3dplatform%26sv%3d9.0.43.464%26de%3dLive%26opsys%3dMicrosoft+Windows+NT+6.2.9200.0%26errorCode%3d-2147220989</HelpLink>
  <Message>Invalid data</Message>
  <Timestamp>2019-10-30T03:02:02.9735623Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>e63f5399-8d77-4576-897c-e60d3dce248d</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <HelpLink i:nil="true" />
    <Message>System.ArgumentException: Invalid data</Message>
    <Timestamp>2019-10-30T03:02:02.9735623Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>
I have the same question (0)
  • Inksrm Profile Picture
    721 on at

    Hi antc, have Microsoft provided any updates on this?

    I've just noticed that we are getting the same error on the 'Field Service - Generate Agreement Invoice Dates' system job. 

    If I view the system job it says Invalid Argument. These Agreements were previously working fine. 

    pastedimage1575256321618v1.png

  • ba365guy Profile Picture
    2,950 on at

    Can you check if the system resources are maxed out?

    Happened to me once. Especially for agreement dates generation.

  • Inksrm Profile Picture
    721 on at

    Thanks ba365guy. How do you confirm if system resources are maxed out in Dynamics 365 online? I've checked System Jobs and they seem to be running fine. I did notice that the log storage capacity is over the limit but would that affect system resources? Below is a screenshot of our storage capacity summary. 

    pastedimage1575328047518v1.png

  • ba365guy Profile Picture
    2,950 on at

    Hi Inksrm

    Can you share the message displayed in "Details" tab ?

  • Inksrm Profile Picture
    721 on at

    Hi ba365guy, below are screenshots of the capacity of our 3 environments and the database capacity for the production instance. The AsyncOperationBase is currently at 1603.26MB. 

    Is that what you were referring to regarding the details tab?

    pastedimage1575420020656v1.png

    pastedimage1575420189551v2.png

  • ba365guy Profile Picture
    2,950 on at

    Hi Inksrm

    I was referring to the screenshot of the failed job. There you find details tab. Failure error log might help.

  • Inksrm Profile Picture
    721 on at

    Facepalm.

    Here you go ba365guy

    It says Invalid data, but these processes were previously working fine. 

    Unhandled exception:
    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
    Message: Invalid dataDetail:
    <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
    <ActivityId>c7b9a68f-88f2-4d67-95ba-384112a6171f</ActivityId>
    <ErrorCode>-2147220989</ErrorCode>
    <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
    <HelpLink>http%3a%2f%2fgo.microsoft.com%2ffwlink%2f%3fLinkID%3d398563%26lcid%3d1033%26error%3dMicrosoft.Crm.CrmException%26client%3dplatform%26sv%3d9.0.43.464%26de%3dLive%26opsys%3dMicrosoft+Windows+NT+6.2.9200.0%26errorCode%3d-2147220989</HelpLink>
    <Message>Invalid data</Message>
    <Timestamp>2019-10-30T00:00:13.0287881Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
    <ActivityId>c7b9a68f-88f2-4d67-95ba-384112a6171f</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
    <HelpLink i:nil="true" />
    <Message>System.ArgumentException: Invalid data</Message>
    <Timestamp>2019-10-30T00:00:13.0287881Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
    </InnerFault>
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
    </OrganizationServiceFault>

  • Daniel Bergsten Profile Picture
    110 on at

    We are having a similar error, the same system job has started to fail with error:

    Length cannot be less than zero.
    Parameter name: length

    Did you find a solution to your case?

    Plugin Trace:

    [Microsoft.Crm.Workflow: Microsoft.Crm.Workflow.Activities.InvokeSdkMessageActivity]
    [InvokeSdkMessageStep4: Step 1]


    [Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin]
    [40bc2856-67dd-4328-9de8-126d369a4b05: Field Service: msdyn_FieldServiceSystemAction (post-operation) for none]
    Starting sync workflow 'Field Service - System Action', Id: 2e9aa2c0-7edf-e911-a848-000d3a29a761
    Sync workflow 'Field Service - System Action' completed successfully


    Error Message:

    Unhandled exception:
    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
    Message: Length cannot be less than zero.
    Parameter name: lengthDetail:
    <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
    <ActivityId>20b01aba-5e79-44a1-b420-66d021682ff3</ActivityId>
    <ErrorCode>-2147220956</ErrorCode>
    <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionSourceKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Dynamics.FieldService.FieldServicePlugin</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: Length cannot be less than zero.
    Parameter name: length ---&gt; System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
    at System.String.Substring(Int32 startIndex, Int32 length)
    at Microsoft.Dynamics.FieldService.FieldServiceEventSource.Error(Exception error, IPluginExecutionContext context)
    at Microsoft.Dynamics.FieldService.FieldServicePlugin.Execute(IServiceProvider serviceProvider)
    at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    --- End of inner exception stack trace ---
    at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass3_0.&lt;RunStep&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiStepKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">schemas.microsoft.com/.../" i:type="d4p1:guid">40bc2856-67dd-4328-9de8-126d369a4b05</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiDepthKey</d2p1:key>
    <d2p1:value xmlns:d4p1="
    ">www.w3.org/.../XMLSchema" i:type="d4p1:int">4</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiActivityIdKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">schemas.microsoft.com/.../" i:type="d4p1:guid">20b01aba-5e79-44a1-b420-66d021682ff3</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
    <d2p1:value xmlns:d4p1="
    ">www.w3.org/.../XMLSchema" i:type="d4p1:string">msdyn_FieldService_patch_9</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">msdyn_FieldService_patch_9</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionCategory</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">ClientError</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionMesageName</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">IsvUnExpected</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">400</d2p1:value>
    </KeyValuePairOfstringanyType>
    </ErrorDetails>
    <HelpLink>go.microsoft.com/.../
    <Message>Length cannot be less than zero.
    Parameter name: length</Message>
    <Timestamp>2020-01-28T15:35:16.7081789Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
    <ActivityId>20b01aba-5e79-44a1-b420-66d021682ff3</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
    <HelpLink i:nil="true" />
    <Message>System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length</Message>
    <Timestamp>2020-01-28T15:35:16.7081789Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
    </InnerFault>
    <OriginalException i:nil="true" />
    <TraceText>[Microsoft.Crm.Workflow: Microsoft.Crm.Workflow.Activities.InvokeSdkMessageActivity]
    [InvokeSdkMessageStep4: Step 1]


    [Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin]
    [40bc2856-67dd-4328-9de8-126d369a4b05: Field Service: msdyn_FieldServiceSystemAction (post-operation) for none]
    Starting sync workflow 'Field Service - System Action', Id: 2e9aa2c0-7edf-e911-a848-000d3a29a761
    Sync workflow 'Field Service - System Action' completed successfully
    </TraceText>
    </OrganizationServiceFault>

  • Suggested answer
    antc Profile Picture
    2,909 on at

    Sorry should have replied to this a while back.

    MS support found some issue after escalation  Regarding your concern, it's supposed this is a known issue and the backend team has planed to deploy the fix today and in the weekend.  

    I then ran a batch process using a fetch for all booking date that were due which initiated the "'Field Service - Generate Agreement Booking Dates' " again.

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 75 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans