Mar 24, 2020
1 min read

Invalid Language ID Supplied: 0 Error

Another day another bug on update 15.4.41023.41345. One of our clients was having problem printing the invoice.
Share:

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");

Related Posts