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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Vendor payment Error : Locale needs to be specified. Parameter names: _locale

(1) ShareShare
ReportReport
Posted on by 263
We have a customer that has recently been getting this error " Locale needs to be specified. Parameter names: _locale".
This error occurs when trying to navigate to 
Accounts payable > Payments > Vendor payment journal / Lines Payment proposal / Edit invoices for selected payment
I have verified the user options and both the Language and Date, time, and number format have the en-US value.
 
I debugged the code and found the exact spot where the error originates.  This is standard code and not customised
On form CustVendPaymProposalEditForm.newLedgerJournalTrans) line 2149: PreferredLocale locale = new xSession().preferredLocale();
new xSession().preferredLocale() returns with a null value.
 
to see if it will default to Language field for the Regional settings, by
 
We have tried with a number of different users.  The only user that we can get to work is the Admin user on the dev box , it returns with en_US.  As I can't debug into the code xSession().preferredLocale() I am not sure if there is a setting that might be missed.
 
Is there any other settings that might need to be checked.  How can I determine what the Language field is for the regional settings.
 
Any advice will be appreciated
 
 
Categories:
I have the same question (0)
  • Verified answer
    Diego Mancassola Profile Picture
    752 on at
    Hello, check if the user is listed on Invalid User form on System Administrator.
     
    The issue can occurs when user’s email alias is mismatch between Azure AD and Dynamics 365, check it.
    In the past a fight with an error where the dates are in US format but the settings was IT, and the problem is that misalign between Entra and FO
  • Suggested answer
    CU27011421-0 Profile Picture
    62 on at
    This error usually means the system is not resolving a valid user/session locale, even if user options look correct.
    Things to check:
    User options (important)
    Go to User options → Preferences
    Ensure Language is explicitly set (not blank)
    Also verify date/time/number format matches the language
    System administration → Users
    Check the user record has a valid Language assigned
    Try reassigning (e.g., en-us) and re-login
    Browser / session issue
    Clear cache or try InPrivate
    Sometimes locale isn’t passed correctly in session
    Batch / service account
    If this runs via batch, check the batch user’s language
    This is a common miss
    Code clue you found
    Since xSession::preferredLocale() is returning null, it confirms the session isn’t picking up a language → so it’s config/session, not business logic.
    Quick test
    Login as another working user
    Compare user options + roles
    If admin works but others don’t, it’s almost always a user-level language or session context issue, not customization.
  • Sophs@4Sight Profile Picture
    263 on at
    Hi Diego
    Thank you for your prompt response.  Following your  feedback, We ended up deleting the user and then importing them again and this solved the error.
    Thank you so much

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 573

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 573

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 396 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans