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 :
Dynamics 365 Community / Blogs / That NAV Guy / Invalid Language ID Supplie...

Invalid Language ID Supplied: 0 Error

Teddy Herryanto (That NAV Guy) Profile Picture Teddy Herryanto (Th... 14,064 Super User 2025 Season 2

Another day another bug on update 15.4.41023.41345. One of our clients was having problem printing the invoice. The error said “Invalid Language ID Supplied: 0 Error”.

The issue came from the LanguageCU. It does not accept blank Language Code anymore.

CurrReport.Language := LanguageCU.GetLanguageId("Language Code");

To fix the issue, I could either remove the code completely or just add an if statement.

IF "Language Code" <> '' then
  CurrReport.Language := LanguageCU.GetLanguageId("Language Code");

This was originally posted here.

Comments

*This post is locked for comments