Skip to content

shop example: fix the TaskQueue view entity's member names and lengths - #2761

Merged
ako merged 1 commit into
mainfrom
fix/shop-taskqueue-view
Dec 2, 2026
Merged

ako merged 1 commit into
mainfrom
fix/shop-taskqueue-view

Conversation

@ako

@ako ako commented Dec 2, 2026

Copy link
Copy Markdown
Owner

The Shop.TaskQueue view entity in mdl-examples/shop/shop.mdl could not build. The new view-entity member check found it (#2751), and MxBuild 11.16.1 confirmed it. There were two causes.

Fix

  • Member names: the query read pqt.status, pqt.created, qt.status and qt.created. The System.ProcessedQueueTask and System.QueuedTask attributes are Status and Created, and OQL member names are case-sensitive, so mx reported CE0174 "The path 'pqt.status' does not resolve to a column or association." The query now uses the correct case. The view's own attribute names are unchanged.
  • Column lengths: with the names corrected, mx reported CE6770 "View Entity is out of sync with the OQL Query." QueueId, QueueName and MicroflowName were declared unlimited over String(36), String(200) and String(200) sources, and a view column must match its source's length. They are now declared string(36), string(200) and string(200).

Evidence

  • The corrected statement, run on its own in a clean 11.16.1 project, builds clean in mx.
  • The rest of shop.mdl depends on roles from another script, so it cannot be built standalone. That is unchanged.
  • make ci-local passed.

Generated by Claude Code

The view read pqt.status / pqt.created and qt.status / qt.created, but the
System.ProcessedQueueTask and System.QueuedTask attributes are Status and
Created, and OQL member names are case-sensitive: MxBuild 11.16.1 reported
CE0174 "The path 'pqt.status' does not resolve to a column or association."
With the names corrected it reported CE6770: QueueId, QueueName and
MicroflowName were declared unlimited over String(36), String(200) and
String(200) sources, and a view column must match its source's length.
The corrected statement builds clean in MxBuild 11.16.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
@ako
ako marked this pull request as ready for review December 2, 2026 12:38
@ako
ako merged commit f43f046 into main Dec 2, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants