microsoft / microsoft/vscode-powerquery-sdk
Error Detail Null Fields Ignored
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 92
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Preflight Checklist
- I have installed the latest version of Power Query SDK.
- I have checked existing resources, including the common issues and the release notes.
- I have searched for similar issues.
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
- Create a new connector project.
- Replace the contents of the
.test.pqwith the following:error [Detail = [a = 123, b = null, c = 456]] - 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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