-1
我在Dynamics CRM中有1,072,369
联系人记录。我需要检索它们然后进行操作。现在,虽然检索我遇到以下异常使用C#在Dynamics CRM中分配托管内存失败
未能分配1073741824字节的托管内存缓冲区。可用内存量可能很低。
我增加了10分钟的时间跨度,但没有运气。
我正在寻求你的友善建议/帮助解决它。以下是我的代码片段。
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);