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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Error for Location in PO Line

(0) ShareShare
ReportReport
Posted on by

Hello Experts,

I am facing with an error when selecting Location code in Purchase Order Line, see the below screen shot for the error details. "Location" is mandatory as per my inventory setup. 

PO-Loc_2E00_.jpg

Thanks & Regards,

Ranjith 

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Error for Location in PO Line

    Do you have any customization app in your environment?

    uninstall it and try once.

    Or a developer need to debug the issue.

  • Suggested answer
    Ahmed Mohamed Rafik Profile Picture
    3,049 User Group Leader on at
    RE: Error for Location in PO Line

    This error message usually occurs when you try to create a purchase line in Microsoft Dynamics 365 Business Central and the Location Code is not set correctly.

    The error can be resolved by setting the Location Code to a valid value.

    If you find this information helpful, Click Yes to verify the answer to share with other community members.

  • Community Member Profile Picture
    on at
    RE: Error for Location in PO Line

    This is the way it is working, if the location code is selected in  "Shipping and Payment, portion in the PO header" the same Location code can be selected in the PO line also. The system will then not generate any errors. See the below screen shot for the same.

    PO-Loc_2E00__2E00_.jpg

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,043 Moderator on at
    RE: Error for Location in PO Line

    What you are describing is not standard behavior of the system. So it looks like you have some customization done to your solution.

    Those customizations are likely to cause your issues. You should talk to your partner / developer and describe the issue for them.

  • Suggested answer
    DAnny3211 Profile Picture
    11,376 on at
    RE: Error for Location in PO Line

    hi

    look this

    community.dynamics.com/.../location-and-store-code-required

    DAniele

  • Suggested answer
    YUN ZHU Profile Picture
    92,764 Super User 2025 Season 2 on at
    RE: Error for Location in PO Line

    Hi, is it related to the settings below?

    https://yzhums.com/33037/

    Hope this helps as well.

    Thanks

    ZHU

  • Community Member Profile Picture
    on at
    RE: Error for Location in PO Line

    Hi ZHU,

    Yes, this is the set up I did and it was working already. The Location Mandatory and BIN Mandatory. But now when I am select the location in PO Line, system throwing an error as "Location code must be equal to " in Purchase Line" 

    Regards,

    Ranjith 

  • Suggested answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: Error for Location in PO Line

    Can you paste the call stack from latest error page?

  • Community Member Profile Picture
    on at
    RE: Error for Location in PO Line

    Hi Inge M. Bruvik,

    Yes, earlier it was able to select the Location code in PO Line even if the Location code is not selected in the PO Header. See the screen shot for the couple of time back in the same instance. But now getting error when selecting Location code in PO Line if the Location Code is not selected in the PO Header. Recently my instance is updated and current version is Version: IN Business Central 21.4 (Platform 21.0.52534.53527 + Application 21.4.52563.52602), is it an updated functionality in 21.4?

    LOC-.jpg

  • Suggested answer
    Nitin Verma Profile Picture
    21,684 Moderator on at
    RE: Error for Location in PO Line

    Hi,

    Can you check this?

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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,330

#2
Sumit Singh Profile Picture

Sumit Singh 2,738

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,546

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans