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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Override the ReceiveNow's field validation on PurchEditLines Form AX 2012

(1) ShareShare
ReportReport
Posted on by 53

Good Day!

Please help me to find this error message from PurchEditLines form.

Where I can find this error message?

pastedimage1606897631163v1.png

I tried to find this on InventOnhandQty and InventOnhand Classes, but still I cannot find it.

The reason why I trying to find this error message is to override it and put there my own validation code.

Thank you in advance

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi Gelo Tabon,

    You could try to send the Callstack to the Infolog in AX to find the class.

    Refer to: www.daxrunbase.com/.../

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    But a breakpoint in Classes\Info\add, debug the process and you can see where any infolog message comes from.

    By the way, remember to be careful if you change such validations. And test thoroughly. It's also possible that your code can't be upgraded to D365FO into extensions - this is good to keep in mind as we're approaching the end of support for AX2012.

  • Gelo Tabon Profile Picture
    53 on at

    Hi Wil Wu,

    Thank you for your response,

    These are the result of Infolog message:

    (C)\Classes\Info\add 62

    (C)\Classes\Global\error 3

    (C)\Classes\FormLetterServiceController\afterOperation 14

    (C)\Classes\SysOperationServiceController\run 70

    (C)\Classes\FormLetterServiceController\run 3

    (C)\Classes\PurchFormLetter\run 45

    (C)\Classes\PurchFormLetter\main 76

    (C)\Classes\FormFunctionButtonControl\Clicked 0

    But still I cannot find the error message "0.00 cannot be picked because....".

  • Gelo Tabon Profile Picture
    53 on at

    Hi Nikolaos,

    Thank you for reminding me.

    Is there other way to override this error message  "0.00 cannot be picked because....".?

    I hope you can help me.

    Thank you :)

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi Gelo,

    seems that you were able to debug it. Now you know the call stack. While in the debugger, click through the call stack and you should find the validation.

    By the way, now you wrote that you want to override the validation message. Earlier you wrote that you want to put your own validation code there. So do you want to change the validation logic or just the message?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans