Commit 5efd1be
docs(model-apps): troubleshoot a generative page that fails to render
`troubleshooting.md` covered a page that fails to UPLOAD and a page that does
not APPEAR in the app, but nothing for a page that deploys and lists correctly
and then fails at runtime. That gap is user-visible and lands on a cryptic
Dataverse OData message:
A binary operator with incompatible types was detected. Found operand types
'Edm.Guid' and 'Edm.String' for operator kind 'Equal'.
The maker sees "Failed to load generative page" while `pac model genpage list`
and the sitemap both look correct, so the obvious next steps (re-upload,
re-add to sitemap) are all wrong.
The entry leads with the diagnostic rather than a fix, because the dialog shows
the server's message but not the request that caused it — the failing `$filter`
is what distinguishes the three causes, and nothing else can. It then documents
the causes seen in practice: an `Edm.Guid` compared against a QUOTED literal
(OData v4 GUID literals are unquoted), a Custom API parameter whose declared
kind is missing or wrong so the host serializes it untyped, and a GUID still
carrying the braces some Dataverse surfaces return.
Documentation only — no behaviour change. This is not a fix for any specific
report: the plugin's own scripts already interpolate GUIDs unquoted (asserted
in sdk-build.test.js) and the sitemap reader requires a bare 36-char GUID, so
the guidance is for diagnosing page code and platform payloads.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 42626da2-b66f-4162-acaa-b1127ef23d891 parent 22590cc commit 5efd1be
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
66 | 94 | | |
67 | 95 | | |
68 | 96 | | |
| |||
0 commit comments