I am getting the subject error related to the following segment of my code:
“Assign iAbsToday = ((Year(today) * 365.242199 + Month(today) * (365.242199 / 12) + Day(today) + 1)).
If iWeekday = 6 then do:
Assign iAbsToday = ((Year(today) * 365.242199 + Month(today) * (365.242199 / 12) + Day(today) + 3)).
End.”
Code passes validation.
Full error text is as follows:
Error Detail
============
Index and length must refer to a location within the string.
Parameter name: length
Stack Trace
===========
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Bpm.CodeGen.Progress.FourGlActionGen.generateProcSerializer(ProcedureGen target, Hashtable htTP)
at Bpm.CodeGen.Progress.FourGlActionGen.generateProcedureBody(Hashtable htTP)
at Bpm.CodeGen.Progress.FourGlCodeGen.GenerateProcedure(String sSuffix)
at Epicor.Mfg.UI.Bpm.Actions.ActionBase.CreateSourceCode(SourceCodeBlocks block, String sSuffix)
at Epicor.Mfg.UI.App.BpMethodEntry.Transactions.ActionTransaction.SaveActionState()
at Epicor.Mfg.UI.App.BpMethodEntry.Transactions.ActionTransaction.adapterUpdate()
at Epicor.Mfg.UI.FrameWork.EpiMultiViewTransaction.Update()
Help - I'm stumped but need this to work.
Thanks,
NB
“Assign iAbsToday = ((Year(today) * 365.242199 + Month(today) * (365.242199 / 12) + Day(today) + 1)).
If iWeekday = 6 then do:
Assign iAbsToday = ((Year(today) * 365.242199 + Month(today) * (365.242199 / 12) + Day(today) + 3)).
End.”
Code passes validation.
Full error text is as follows:
Error Detail
============
Index and length must refer to a location within the string.
Parameter name: length
Stack Trace
===========
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Bpm.CodeGen.Progress.FourGlActionGen.generateProcSerializer(ProcedureGen target, Hashtable htTP)
at Bpm.CodeGen.Progress.FourGlActionGen.generateProcedureBody(Hashtable htTP)
at Bpm.CodeGen.Progress.FourGlCodeGen.GenerateProcedure(String sSuffix)
at Epicor.Mfg.UI.Bpm.Actions.ActionBase.CreateSourceCode(SourceCodeBlocks block, String sSuffix)
at Epicor.Mfg.UI.App.BpMethodEntry.Transactions.ActionTransaction.SaveActionState()
at Epicor.Mfg.UI.App.BpMethodEntry.Transactions.ActionTransaction.adapterUpdate()
at Epicor.Mfg.UI.FrameWork.EpiMultiViewTransaction.Update()
Help - I'm stumped but need this to work.
Thanks,
NB