简体   繁体   English

System.Exception:太多记录类型描述:101

[英]System.Exception: Too many record type describes: 101

I am getting a exception 我有一个例外

System.Exception: Too many record type describes: 101

I understand this is a governor limit exception. 我了解这是一个调速器极限异常。

There are couple of places where i am checking for record types in a If statement in the trigger. 我在几个地方检查触发器的If语句中的记录类型。

for(Opportunity o : Trigger.new)
{
   if ( ( o.TotalOpportunityQuantity != Trigger.OldMap.get(o.Id).TotalOpportunityQuantity) && o.RecordTypeId == varRectype) 
     {
                 // do something
     }

     // i am also checking in another if statement for o.RecordTypeId == varRectype with a combination of other fields.

 }

Has anybody else got this error. 还有其他人遇到此错误。 Any pointers on what is causing this would be of great help 任何导致这种情况的指针都会有很大帮助

You should open the Developer Console, and repeat the action that caused this exception. 您应该打开开发者控制台,然后重复导致此异常的操作。 Then look at the debug log, to see at which point this Exception is firing. 然后查看调试日志,以查看在何时触发该异常。 The code you listed above should not be triggering this governor limit, as it has nothing to do with "describe". 您上面列出的代码不应触发此调控器限制,因为它与“描述”无关。

Also, do you have any managed packages installed? 另外,您是否安装了任何托管软件包? The code in those could be triggering this governor limit. 这些代码中的代码可能会触发此调控器限制。 Debug log would tell you more. 调试日志会告诉您更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM