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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Location and Store Code Required

(0) ShareShare
ReportReport
Posted on by 101

Good Day Experts, 

Please help

We set up a new blank company In D365BC today and was able to create most of the setups, post opening journal  balances for AP and AR. We tried posting a sales invoice to the General Income G/L account but we were getting the following errors (Location is required and store code (dimension is required). I cannot understand why a location code is mandatory for a GL account in this new company. As regards to the store code. a user setup a store but  it has seen been deleted before any invoices were posted.  5287.Sales-invoice-error.PNG

I have the same question (0)
  • Francisco Bedolla Profile Picture
    1,125 on at

    You mentioned "Store"

    In BC standard the Store term doesn´t exists,

    did you have any extension? can you show an image of your extension administration page?

  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at

    Hi, If you mean this red star, setting the NotBlank property to true on the fields in a table does not cause a red star marking on the UI.

    More details: https://yzhums.com/4940/#toc2

    If the NotBlank property is used on other fields than primary fields, the behavior is as follows:
    ・If the field is blank, and never entered, the page can be closed.
    ・If the field has been entered, and the user tries to enter a blank value, a validation error occurs.

    Hope this helps.
    Thanks.

    ZHU

  • PETERFL Profile Picture
    101 on at

    I hope the page below is what you wanted to see. The main company that our partner created 2 years ago had customizations relating to store and locations being mandatory fields. The new company above with the shortcut dimension and location only has 120 transactions per year so we decided to implement ourselves with the blessing of our external D365 Partner

    pastedimage1658884530952v1.png

  • Suggested answer
    Ben Baxter Profile Picture
    7,115 Super User 2026 Season 1 on at

    Location Mandatory:

    This is an option on your Inventory Setup.  Go and uncheck the box if you don't use Locations.  However, if you have Locations, we strongly encourage you to keep Location Mandatory turned on.

    pastedimage1658930942232v2.png

    Dimension Requirement:

    Look at the GL Account where the entries would land when Posted.  Under Dimensions you will see a "Value Posting" field which likely has "Code Mandatory" set.  This means you are not able to post a transaction into this account if the associated Dimension does not have a Value.  There is more capability around this, but in terms of addressing your issue this is likely the setting used.

    pastedimage1658930838742v1.png

    Hope this helps resolve your issues.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    [quote user="PETERFL"]

    I hope the page below is what you wanted to see. The main company that our partner created 2 years ago had customizations relating to store and locations being mandatory fields. The new company above with the shortcut dimension and location only has 120 transactions per year so we decided to implement ourselves with the blessing of our external D365 Partner

    pastedimage1658884530952v1.png

    [/quote]

    Then you should probably evaluate together with your partner if you still needs this customization or not and analyse the consequences of possible uninstall it. 

  • PETERFL Profile Picture
    101 on at

    Good Day, the extension was for our Main operating company that needed the customization. Is seems that the extension was also incorporated into this company This company , has no location or stores , no inventory and a few inter company transactions per month. So what is needed is the out of the box software solution

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    And the main company stills needs it and is in the same database?

    If not you should be able to uninstall it. Or else you need a setup in your extension that tells you if it should be active in this company or not.

    That will probably require code changes by your partner.

  • PETERFL Profile Picture
    101 on at

    I am seeing the extension but I do not know the contents of the extension or a description of its purpose and what it affects so I may have to contact them

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    [quote user="PETERFL"]

    I am seeing the extension but I do not know the contents of the extension or a description of its purpose and what it affects so I may have to contact them

    [/quote]

    Sounds like a good idea in this case.

  • Francisco Bedolla Profile Picture
    1,125 on at

    the PTE (Per TEnant) extension works for ALL companies in the same tenant, so if in one company those fields are required, the same process would be required in the other companies.

    You can ask your partner to make a change in the extension and activate the process by company instead of tenant

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,222 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,603 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,186 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans