← Back to Benchmark Results

Error Handling & Safety

TryFunction, ErrorInfo, SecretText, permissions, and security attributes

Report generated: February 25, 2026 at 7:49 AM

Benchmark data: Feb 18, 2026 – Feb 25, 2026

15
Models
5
Tasks
53.3%
Pass Rate

Model Rankings

Model Performance

openai/gpt-5.3-codex

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 62nd: 3Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:12,898
Cost/run:$0.10

Known Shortcomings (14)

  • query-object-syntax 2x
  • empty-or-missing-code-generation 2x
  • parse-failure 2x
  • dictionary-keys-method-signature 1x
  • al-syntax-basics 1x
+9 more View all 14
View details ›

anthropic/claude-sonnet-4-5-20250929

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 62nd: 3Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:12,351
Cost/run:$0.11

Known Shortcomings (14)

  • multiline-string-literals 1x
  • query-filter-element-syntax 1x
  • jsonobject-get-method-signature 1x
  • cross-join-dataitem-link-constraints 1x
  • reserved-keyword-as-variable-name 1x
+9 more View all 14
View details ›

anthropic/claude-opus-4-5-20251101@thinking=50000

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 9Failed: 23/5 passed
Temperature:0.1
Thinking:50,000
Tokens/run:14,184
Cost/run:$0.25

Known Shortcomings (10)

  • page-extension-with-table-extension 1x
  • reserved-keyword-as-parameter-name 1x
  • dictionary-iteration-syntax 1x
  • empty-or-malformed-code-generation 1x
  • temporary-table-parameter-handling 1x
+5 more View all 10
View details ›

openai/gpt-5.2-2025-12-11@thinking=high

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 62nd: 3Failed: 23/5 passed
Temperature:0.1
Thinking:high
Tokens/run:11,927
Cost/run:$0.10

Known Shortcomings (13)

  • interface-definition-syntax 2x
  • table-field-caption-property 2x
  • query-object-syntax 2x
  • query-crossjoin-syntax 2x
  • jsonvalue-type-checking-methods 2x
+8 more View all 13
View details ›

anthropic/claude-opus-4-6

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 9Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:13,306
Cost/run:$0.23

Known Shortcomings (8)

  • reserved-keyword-as-parameter-name 1x
  • cross-join-dataitem-link 1x
  • incomplete-procedure-body 1x
  • flowfield-calcfields-requirement 1x
  • parse-failure 1x
+3 more View all 8
View details ›

anthropic/claude-sonnet-4-6

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 9Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:13,645
Cost/run:$0.14

Known Shortcomings (5)

  • event-subscriber-event-name 1x
  • count-method-column-syntax 1x
  • code-truncation-incomplete-output 1x
  • jsonvalue-type-checking-api 1x
  • flowfield-calcsums-restriction 1x
View details ›

openrouter/z-ai/glm-5

Runs:3
pass@1:60.0%
pass@3:60.0%
Consistency:100.0%
1st: 72nd: 2Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:118,190
Cost/run:$1.71

Known Shortcomings (25)

  • query-object-syntax 2x
  • list-dictionary-of-interface-clear-method 1x
  • event-subscriber-event-name 1x
  • al-string-literal-escaping 1x
  • fluent-api-return-self-codeunit 1x
+20 more View all 25
View details ›

openrouter/moonshotai/kimi-k2.5

Runs:3
pass@1:53.3%
pass@3:60.0%
Consistency:80.0%
1st: 42nd: 4Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:31,012
Cost/run:$0.38

Known Shortcomings (11)

  • query-object-syntax 2x
  • event-subscriber-parameter-syntax 1x
  • page-extension-cardpageid-override 1x
  • parse-failure 1x
  • multiline-string-literals 1x
+6 more View all 11
View details ›

gemini/gemini-3.1-pro-preview

Runs:3
pass@1:46.7%
pass@3:60.0%
Consistency:80.0%
1st: 62nd: 1Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:62,369
Cost/run:$0.04

Known Shortcomings (16)

  • empty-or-missing-code-generation 2x
  • empty-or-missing-code-generation 2x
  • empty-or-missing-code-generation 1x
  • table-extension-with-page-extension 1x
  • al-syntax-structure 1x
+11 more View all 16
View details ›

openrouter/x-ai/grok-code-fast-1

Runs:3
pass@1:46.7%
pass@3:60.0%
Consistency:80.0%
1st: 22nd: 5Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:22,368
Cost/run:$0.23

Known Shortcomings (22)

  • query-object-syntax 2x
  • jsonobject-selecttoken-vs-get 2x
  • httpclient-getheaders-usage 2x
  • multiline-string-literals 1x
  • page-extension-cardpageid-override 1x
+17 more View all 22
View details ›

gemini/gemini-3-pro-preview

Runs:3
pass@1:33.3%
pass@3:60.0%
Consistency:60.0%
1st: 42nd: 1Failed: 23/5 passed
Temperature:0.1
Thinking:-
Tokens/run:80,459
Cost/run:$0.10

Known Shortcomings (23)

  • codeunit-syntax-structure 3x
  • multiline-string-literals 1x
  • inherent-permissions-syntax 1x
  • query-crossjoin-column-datasource 1x
  • complete-codeunit-generation 1x
+18 more View all 23
View details ›

openrouter/deepseek/deepseek-v3.2

Runs:3
pass@1:40.0%
pass@3:40.0%
Consistency:100.0%
1st: 32nd: 3Failed: 32/5 passed
Temperature:0.1
Thinking:-
Tokens/run:15,660
Cost/run:$0.16

Known Shortcomings (29)

  • interface-definition-syntax 3x
  • application-area-in-page-extension-field 2x
  • reserved-keyword-as-variable-name 2x
  • query-cross-join-syntax 2x
  • jsonobject-get-vs-selecttoken 2x
+24 more View all 29
View details ›

openrouter/qwen/qwen3-max-thinking

Runs:3
pass@1:40.0%
pass@3:40.0%
Consistency:100.0%
1st: 32nd: 3Failed: 32/5 passed
Temperature:0.1
Thinking:-
Tokens/run:12,313
Cost/run:$0.11

Known Shortcomings (27)

  • option-field-optionmembers-required 2x
  • variant-type-argument-and-interface-definition 2x
  • query-object-syntax 2x
  • enum-frominteger-syntax 1x
  • list-iteration-pattern 1x
+22 more View all 27
View details ›

openrouter/qwen/qwen3-coder-next

Runs:3
pass@1:33.3%
pass@3:40.0%
Consistency:80.0%
2nd: 5Failed: 32/5 passed
Temperature:0.1
Thinking:-
Tokens/run:13,933
Cost/run:$0.11

Known Shortcomings (35)

  • codeunit-generation-empty-output 5x
  • interface-definition-syntax 4x
  • query-object-syntax 2x
  • reserved-keyword-as-parameter-name 2x
  • initvalue-vs-defaultvalue 1x
+30 more View all 35
View details ›

openrouter/minimax/minimax-m2.5

Runs:3
pass@1:20.0%
pass@3:20.0%
Consistency:100.0%
1st: 12nd: 2Failed: 41/5 passed
Temperature:0.1
Thinking:-
Tokens/run:19,811
Cost/run:$0.21

Known Shortcomings (32)

  • json-object-key-iteration 3x
  • interface-definition-syntax 2x
  • multiline-string-literals 2x
  • text-char-conversion-copystr 1x
  • page-object-definition 1x
+27 more View all 32
View details ›

Task Results Matrix

N/M = passed N of M runs (hover for details)

TaskDescriptionGPT-5.3 CodexClaude Sonnet 4.5Claude Opus 4.5 (50K)GPT-5.2Claude Opus 4.6Claude Sonnet 4 6Glm 5Kimi K2.5Gemini 3.1 Pro PreviewGrok Code Fast 1Gemini 3 ProDeepseek V3.2Qwen3 Max ThinkingQwen3 Coder NextMinimax M2.5
CG-AL-H007Create a codeunit that demonstrates modern AL error handling with ErrorInfo.3/33/33/33/33/33/33/32/31/33/31/30/30/30/30/3
CG-AL-H008Create a codeunit demonstrating TryFunction pattern for safe execution.3/33/33/33/33/33/33/33/33/33/33/33/33/32/33/3
CG-AL-H016Create an AL codeunit named "CG Secure Storage" with ID 70016 that demonstrates SecretText handling:0/30/30/30/30/30/30/30/30/30/30/30/30/30/30/3
CG-AL-H019Create an AL codeunit named "CG Internal Service" with ID 70019 demonstrating security attributes:3/33/33/33/33/33/33/33/33/31/31/33/33/33/30/3
CG-AL-M005Create an integration codeunit called "External Payment Service" with ID 70002 that handles external API communication. The codeunit should implement the following procedures:0/30/30/30/30/30/30/30/30/30/30/30/30/30/30/3