gemini/gemini-3-pro-preview
All Known Shortcomings
Sorted by occurrence count (most frequent first)
| # | Concept | AL Concept | Count | Affected Tasks |
|---|---|---|---|---|
| 1 | event-subscriber-syntax | event-subscription | 1 | CG-AL-E010 |
|
Description: The model generated code that subscribes to 'OnAfterInsert' event, but the correct event name in Business Central for the Item table is 'OnAfterInsertEvent'. The AL compiler error AL0280 indicates the event name is not found because BC table events follow the pattern 'OnAfter<Action>Event' (e.g., OnAfterInsertEvent, OnAfterModifyEvent, OnAfterDeleteEvent), not 'OnAfter<Action>'.
Correct Pattern:
Incorrect Pattern:
Error Codes: AL0280 |
||||
| 2 | json-value-extraction-methods | json-handling | 1 | CG-AL-H014 |
|
Description: The model failed to generate any code (empty generated code), and when it did attempt compilation, it incorrectly used JsonValue.AsText() with a boolean parameter instead of the correct pattern. The task requires using typed JSON getter methods like GetText(), GetInteger(), GetBoolean() on JsonObject, but the model doesn't understand the correct AL JSON API patterns. The error 'cannot convert from Text to Boolean' at line 63:33 suggests the model tried to pass a Text value where a Boolean was expected, likely confusing the JsonValue extraction methods.
Correct Pattern:
Incorrect Pattern:
Error Codes: AL0133 |
||||
| 3 | empty-or-malformed-output | code-generation-basics | 1 | CG-AL-H020 |
|
Description: The model failed to generate any valid AL code. The generated code shows 'Generated code not found' and the compilation errors indicate the file contains markdown formatting characters (backticks) and no valid AL object declaration. The model either returned empty output, wrapped the code in markdown code blocks that weren't properly stripped, or completely failed to understand the task. Error AL0198 'Expected one of the application object keywords' at position 1:1 indicates the file doesn't start with a valid AL object type, and the multiple AL0183 'Unexpected character backtick' errors suggest markdown formatting was included in the output.
Correct Pattern:
Incorrect Pattern:
Error Codes: AL0198 |
||||
| 4 | variant-type-conversion | variant-handling | 1 | CG-AL-H023 |
|
Description: The model incorrectly tried to call AsInteger(), AsDecimal(), and AsBoolean() methods directly on a Variant type. In AL, Variant is a 'Joker' type that doesn't have these conversion methods. To extract typed values from a Variant, you need to assign the Variant to a variable of the target type, or use Format() to get a text representation and then evaluate it.
Correct Pattern:
Incorrect Pattern:
Error Codes: AL0132 |
||||
| 5 | purchase-header-event-names | event-subscriber-binding | 1 | CG-AL-M008 |
|
Description: The model attempted to subscribe to events 'OnBeforeRelease' and 'OnAfterReopen' on the Purchase Header table, but these events do not exist on that table. In Business Central, release and reopen operations for Purchase Header are handled through the 'Release Purchase Document' codeunit (Codeunit 415), not directly on the table. The correct events would be found in that codeunit, such as 'OnBeforeReleasePurchaseDoc' and 'OnAfterReopenPurchaseDoc', or the model should use different event patterns available on the Purchase Header table itself.
Correct Pattern:
Incorrect Pattern:
Error Codes: AL0280 |
||||
| 6 | yaml-parsing-implementation | text-parsing-algorithms | 1 | CG-AL-M021 |
|
Description: The model failed to generate valid AL code for a YAML handler codeunit. The compilation errors indicate syntax issues at line 140 with missing 'end', ';', and '}' tokens, suggesting the model produced incomplete or malformed AL code. The task requires implementing custom YAML parsing logic (since AL doesn't have native YAML support), which involves complex string manipulation, line-by-line parsing, and conversion between YAML and JSON formats. The model likely struggled with the complexity of implementing a proper YAML parser in AL and produced syntactically invalid code with unclosed blocks or malformed procedure definitions.
Correct Pattern:
Incorrect Pattern:
Error Codes: AL0104 |
||||