Fala pessoal!
Me deparei com um erro esquisito. Fiz vários testes e identifiquei se só ocorre quando executo (grupo de eventos ou recalculo de folha) para mais 1 chapa e só cai no erro as formulas que tem a função TABFUNC.
Executando chapa por chapa, funciona normalmente. Com mais de 1, cai nesse erro.
Alguém já possou por isso?
ERRO ao executar a fórmula EVT8888 para funcionário 268619: RM.Lib.RMSApplicationException: A fórmula EVT8888 não pode ser executada! An item with the same key has already been added. ---> System.ArgumentException: An item with the same key has already been added.
at RM.Lib.Formula.Bin.UserFrmP1EVT8888.Execute()
at RM.Lib.Formula.RMSFormula.ExecuteAssembly(Assembly assembly)
--- End of inner exception stack trace ---
at RM.Lib.RMSException.Throw(String message, Exception innerException)
at RM.Lib.Formula.RMSFormula.ExecuteAssembly(Assembly assembly)
at RM.Lib.Formula.RMSFormula.DoExecute(DataRow row, Object ownerData)
at RM.Lib.Formula.RMSFormula.Execute(IDbServices dbs, Int32 coligada, String sistema, String codFormula, DataRow row, String usuario, Object ownerData, Boolean useLog, String& log, Boolean debug, Boolean isVisualBasic)
at RM.Lib.Formula.RMSFormula.Execute(IDbServices dbs, Int32 coligada, String sistema, String codFormula, DataRow row, String usuario, Object ownerData, Boolean useLog, String& log, Boolean debug)
at RM.Lib.Formula.RMSFormula.Execute(IDbServices dbs, Int32 coligada, String sistema, String codFormula, DataRow row, String usuario, Object ownerData)
at RM.Fop.CalculosBase.CalculoBase.ExecutaFormula(String codFormula, FuncionarioBase funcionario)
An item with the same key has already been added.