Error on Method Rule

Hi, I am getting the error below. I’d like to know if it is possible to find which rule is causing the error, from the line mentioned in report. Where is the file that this is referring to (the 'Line 52, 94, 98 etc.)

Business Layer Exception

Exception was found for Rule Key: /o0080/m0920
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToDecimal(String value)
at Erp.Internal.Cfg._PodConfiguratorV10.TEST13._PodV10A_RuleEngine.RuleSet89_Rule1_Action174(RuleArgs args)
at Erp.Internal.PC.Configuration.RuleEngine.RuleCommands.RuleActions.ExecuteExpressionCmd.Execute(RuleArgs args) in C:_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\RuleCommands\RuleActions\ExecuteExpressionCmd.cs:line 52
at Erp.Internal.PC.Configuration.RuleEngine.PcRule1.ExecuteActions(TRuleArgs args) in C:\_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\PcRule.cs:line 94 at Erp.Internal.PC.Configuration.RuleEngine.PcRuleSet1.ExecuteRules(TRuleArgs args) in C:_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\PcRuleSet.cs:line 98
at Erp.Internal.PC.Configuration.RuleEngine.RuleEngine`2.Invoke(String ruleKey, TRuleArgs args) in C:_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\RuleEngine.cs:line 200

Exception caught in: Epicor.ServiceModel

Error Detail

Description: Exception was found for Rule Key: /o0080/m0920
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToDecimal(String value)
at Erp.Internal.Cfg._PodConfiguratorV10.TEST13._PodV10A_RuleEngine.RuleSet89_Rule1_Action174(RuleArgs args)
at Erp.Internal.PC.Configuration.RuleEngine.RuleCommands.RuleActions.ExecuteExpressionCmd.Execute(RuleArgs args) in C:_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\RuleCommands\RuleActions\ExecuteExpressionCmd.cs:line 52
at Erp.Internal.PC.Configuration.RuleEngine.PcRule1.ExecuteActions(TRuleArgs args) in C:\_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\PcRule.cs:line 94 at Erp.Internal.PC.Configuration.RuleEngine.PcRuleSet1.ExecuteRules(TRuleArgs args) in C:_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\PcRuleSet.cs:line 98
at Erp.Internal.PC.Configuration.RuleEngine.RuleEngine`2.Invoke(String ruleKey, TRuleArgs args) in C:_Releases\ERP\UD10.2.400.15\Source\Server\Internal\PC\Configuration\RuleEngine\RuleEngine.cs:line 200
Program: Erp.Internal.PC.Configuration.dll
Method: Invoke
Line Number: 200
Column Number: 25

Client Stack Trace

at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets)
at Erp.Proxy.BO.ConfigurationRuntimeImpl.ProcessKeepWhen(ConfigurationSequenceDataSet configurationSequenceDS, ConfigurationRuntimeDataSet configRuntimeDS, PcValueDataSet pcValueDS, String parAltMethod, Boolean checkNextCfg, Boolean& enableNextPage)
at Erp.Adapters.ConfigurationRuntimeAdapter.ProcessKeepWhen(PcValueDataSet pcValueDS, String parAltMetthod, Boolean checkNextCfg, Boolean& enableNextPage)

Any help would be greatly appreciated.

Mtl Seq 920, Related to Opr Seq 80, it’s found in the rule key exception below…

Exception was found for Rule Key: /o0080/m0920

2 Likes

@rbomford got it. As for the error, we have seen this error when the part number we are assigning to Context.PartNumber is longer than the accepted character limit for the field.

Thanks so much!