microsoft / microsoft/BCApps

TypeHelper.GetCultureName removed

Open
#11,282 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Team: Integrations
Dominant language
AL
Stars
683
Forks
459
Avg merge
3d 26m
Merged PRs (30d)
633

Description

Please include the following with each issue:

1. Describe the bug
TypeHelper.GetCultureName Codeunit System.Reflection."Type Helper"' does not contain a definition for 'GetCultureName'

2. To Reproduce
Steps to reproduce the behavior:

Create a procedure like this one:

local procedure userLanguageCode() returnValue: Text
var
    TypeHelper: Codeunit "Type Helper";
begin
    returnValue := TypeHelper.GetCultureName().Split('-').Get(1);
end;

3. Expected behavior
A clear and concise description of what you expected to happen.
Not error

4. Actual behavior
Compiler error:
'Codeunit System.Reflection."Type Helper"' does not contain a definition for 'GetCultureName'

5. Versions:

  • AL Language: pre-release
  • Visual Studio Code: Version: 1.136.1 (system setup)
  • Business Central: BC290

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the userLanguageCode procedure and the System.Reflection."Type Helper" codeunit in the reported Business Central BC290 environment; reproduce the compiler error and inspect the available codeunit members. Done means the procedure has a supported way to obtain the culture name and compiles without the missing-definition error.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.