Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Problem with crm query data in dialog

Posted on by Microsoft Employee

hi

i have problem with crm query data in dialog

i have a dialog that i serach on order product of specific order then i show this result in option set response but i get this error

order products of this order is just one record!

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: For synchronous workflow query Results can not be very big (should be less than 1000 records).Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>For synchronous workflow query Results can not be very big (should be less than 1000 records).</Message>
  <Timestamp>2017-12-16T07:39:32.9385943Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>Plugin Trace:

[Microsoft.Crm.Workflow: Microsoft.Crm.Workflow.Activities.QueryData]
[QueryStep1: Select Order Product]



Error Message:

Unhandled Exception: Microsoft.Crm.CrmException: For synchronous workflow query Results can not be very big (should be less than 1000 records).
   at Microsoft.Crm.Workflow.Services.QueryDataActivityService.ExecuteQuery(String fetchXml, QueryData queryDataActivity, Int32 fetchCount)
   at Microsoft.Crm.Workflow.Activities.QueryData.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
</Message>
    <Timestamp>2017-12-16T07:39:32.9385943Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText i:nil="true" />
</OrganizationServiceFault>


*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Problem with crm query data in dialog

    Hi Sahar,

    Can you share the fetchxml used in your query? It seems like your query is still returning all the records.

    Hope this helps.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans