web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Some of the information that you entered is not valid. You must enter valid information before you can continue. - ax error

(0) ShareShare
ReportReport
Posted on by

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;
            

                    
        }

2744.MicrosoftTeams_2D00_image.png

I have the same question (0)
  • Community Member Profile Picture
    on at

    Can someone please help in this error ?

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    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?

  • Community Member Profile Picture
    on at

    Yeah  I tried to debug, but no help from there. It was going normal the way it works for other fields.

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Could you try placing a breakpoint in stop method under Box class and see if this breakpoint is hit while debugging?

  • Community Member Profile Picture
    on at

    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

  • Community Member Profile Picture
    on at

    Hi Gunjan, 

    Thanks for the suggestion and will try accordingly

  • Community Member Profile Picture
    on at

    Hi Gunjan, yes the breakpoint is hitting the stop method

  • Community Member Profile Picture
    on at

    Hi  Muthu,

    from where should i remove the custom code? from validate field?

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Hanshal,

    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?

  • Community Member Profile Picture
    on at

    Hi Gunjan,

    Here is the attached image of the call stack.  Please have a look and check.

    .804708.capture.PNG

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans