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 49

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

  • nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Override the ReceiveNow's field validation on PurchEditLines Form AX 2012

    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?

  • Gelo Tabon Profile Picture
    49 on at
    RE: Override the ReceiveNow's field validation on PurchEditLines Form AX 2012

    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 :)

  • Gelo Tabon Profile Picture
    49 on at
    RE: Override the ReceiveNow's field validation on PurchEditLines Form AX 2012

    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....".

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Override the ReceiveNow's field validation on PurchEditLines Form AX 2012

    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.

  • WillWU Profile Picture
    22,352 on at
    RE: Override the ReceiveNow's field validation on PurchEditLines Form AX 2012

    Hi Gelo Tabon,

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

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,209 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans