【发布时间】:2016-02-22 11:25:25
【问题描述】:
我在 Dynamics CRM 中有 1,072,369 联系人记录。我需要检索它们然后进行操作。现在,在检索时我遇到了以下异常
未能分配 1073741824 字节的托管内存缓冲区。可用内存量可能很低。
我将其时间跨度增加到 10 分钟,但没有运气。
我正在寻求您的建议/帮助来解决它。以下是我的代码 sn-p。
ColumnSet col = new ColumnSet();
col.AddColumns("new_name", "accountid", "contactid");
//get Related Record
QueryExpression qe = new QueryExpression
{
EntityName = entity,
ColumnSet = col,
Criteria = new FilterExpression
{
Conditions = {
new ConditionExpression("accountid",ConditionOperator.NotNull),
new ConditionExpression("statecode",ConditionOperator.Equal,0)
}
}
};
EntityCollection ec = sp.RetrieveMultiple(qe);
【问题讨论】:
标签: c# dynamics-crm-2011 contact