Notifications
Announcements
No record found.
Hi,
I have added one of the validation on validatefield method for ,but after modifying the tab I am getting the following error . Kindly help and see.
The code which I wrote -
case fieldNum(BssiPrmLeaseCharge, BssiPrmDirectCost): { if(this.BssiPRMASC842Type == BssiPRMASC842Type::OperatingLease) { if(this.BssiPRMDirectCostExpense == 0) { ret = checkFailed("Please fill the value of direct cost expense field"); //this. BssiPrmDirectCost = 0; } else if(this.BssiPRMUnamortizedDirectCost == 0) { ret = checkFailed("Please fill the value of unamortized direct cost field"); } break; } break; }
Can someone please help in this error ?
Hi Hanshal,
I don't think the error is being thrown from this block of code. Did you debug to check where the error is being thrown from?
Yeah I tried to debug, but no help from there. It was going normal the way it works for other fields.
Could you try placing a breakpoint in stop method under Box class and see if this breakpoint is hit while debugging?
Hi
I suspect some issue with the custom code, could you please remove the custom code and give a try and confirm on the behavior?
Thanks
Hi Gunjan,
Thanks for the suggestion and will try accordingly
Hi Gunjan, yes the breakpoint is hitting the stop method
Hi Muthu,
from where should i remove the custom code? from validate field?
Could you please check the Call stack and check from where the "stop" method is being called? This way we could determine if what the issue is.
In this case have you customized a standard object or have you created a custom object from scratch?
Here is the attached image of the call stack. Please have a look and check.
.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 551 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional