microsoft / microsoft/vscode-powerquery-sdk

Error Detail Null Fields Ignored

Open
#328 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
92
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Preflight Checklist
Power Query SDK

v0.4.0

Regression From

No response

Platform

Windows

Architecture

x64

OS Version

No response

VSCode version

No response

PQSdkTool Path

No response

Bug Description

Null fields in an error's details are ignored when the error is reported.

Steps to Reproduce
  1. Create a new connector project.
  2. Replace the contents of the .test.pq with the following:
    error [Detail = [a = 123, b = null, c = 456]]
    
  3. Evaluate the current file.
Actual Experience

Output contains the following:

"Error": {
            "Message": "Exception of type 'Microsoft.Data.Mashup.MashupValueException' was thrown.",
            "Details": {
                "Reason": "Expression.Error",
                "a": 123,
                "c": 456
            }
        }
Expected Experience

Details should also include field b.

Additional Context

No response

Contributor guide

No contributing guide indexed for this repository

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 reported .test.pq reproduction and evaluate the current file to observe how the error details are rendered. Trace the error-reporting path that handles the Detail record, then verify that the output includes field b with a null value alongside fields a and c.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.