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 :
Small and medium business | Business Central, N...
Suggested Answer

Not able to post purchase order after entering values in Qty to Recieve.

(0) ShareShare
ReportReport
Posted on by 980

Hi All,

While posting a released PO. I am getting the following error when I am trying to edit the Qty. To receive field and posting.

pastedimage1618952562001v1.png

Regards,

Indira

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Do the lines have a value in the “Quantity” field? Depending on your purchase & payable setup / location setup the “Qty. to Receive” will default to the “Quantity” field if you need it to.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Indira,

    This error generally comes when there is no Quantity entered for the Purchase Line. Please make sure all your PO lines have the quantity entered.

    Can you please check all the lines and make sure that Quantity and Qty to Receive are filled in all PO Lines.

    Thanks.

  • Indira88 Profile Picture
    980 on at

    Hi Josh,

    Thank you for the suggestion.

    [quote user="Indira88"]

    Hi All,

    While posting a released PO. I am getting the following error when I am trying to edit the Qty. To receive field and posting.

    pastedimage1618952562001v1.png

    Regards,

    Indira

    [/quote]

    [quote user="Indira88"]

    Hi All,

    While posting a released PO. I am getting the following error when I am trying to edit the Qty. To receive field and posting.

    pastedimage1618952562001v1.png

    Regards,

    Indira

    [/quote]

    This case where the error was coming was on CheckQuantity and it was checking Quantity Base and Quantity Base Invoice.

    The Function has a way to handle the check from a event Subscription by setting the value of a boolean to true,in this case the check could be skipped,I did the following:

    [EventSubscriber(ObjectType::CodeunitCodeunit::"Item Jnl.-Check Line", 'OnBeforeCheckEmptyQuantity''', true, true)]
        Procedure OnBeforeCheckEmptyQuantity(ItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)
        begin
            IsHandled := true;
        end;
    Regards,
    indira
  • Indira88 Profile Picture
    980 on at

    Hi Naveen,

    Thank you for the answer,Please check my fix in the above reply.

    Regards,

    Indira

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Indira,

    As per your above comment, if you make "Handled" to TRUE on OnBeforeCheckEmptyQuantity Event, then you may not face this error as you are skipping the logic of function CheckEmptyQuantity.

    This is standard business central code and it is not good idea to skip it. As it may cause other issue.

    The Handled Boolean should be used when you have handled the logic of the function by your code and you want to skip standard business central code.

    I would suggest, Please debug and found why their is no values in Quantity Base and Quantity Base Invoice rather than skipping the Standard logic.

    Thanks.

  • Indira88 Profile Picture
    980 on at

    Thanks for the impact analysis I have checked for the empty values in the event itself.

    Regards,

    Indira

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans