Skip to content

Commit 2f2465a

Browse files
akoclaude
andcommitted
fix #594: re-state RemoteName in Level 8.6c to avoid Studio Pro Integration pane NRE
`create or modify external entity` overwrites `RemoteEntityName` (BSON field `RemoteName`) with the empty string when the `RemoteName` property is omitted from the statement (see mxcli#594). Level 8.6c was relying on preservation of the value set by 8.6a/8.6b, but the resulting BSON ended up with `RemoteName: ""`. Studio Pro's Integration Pane visualiser then NREs in `ODataRemoteEntitySource.get_RemoteId()` with `ArgumentNullException("EntityTypeName")` because the C# property aliases the BSON `RemoteName` field. Repeat `RemoteName: 'Account'` in 8.6c. The underlying executor bug is tracked separately in #594 and will be fixed in its own PR; this commit keeps the example file usable today. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9064b4c commit 2f2465a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

mdl-examples/doctype-tests/10-odata-examples.mdl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,19 @@ from odata client OdTest.SalesforceAPI
332332
* Level 8.6c: Create external entity with AllowCreateChangeLocally flag
333333
* Enables local creation/changes for the entity, mirroring Studio Pro's
334334
* "Allow creating and changing locally" checkbox on external entities.
335+
*
336+
* RemoteName must be repeated here because `create or modify external entity`
337+
* currently overwrites omitted properties with empty strings rather than
338+
* preserving the existing value. Without `RemoteName: 'Account'`, the BSON
339+
* ends up with `"RemoteName": ""`, which Studio Pro's Integration Pane
340+
* visualiser cannot render (NRE in ODataRemoteEntitySource.RemoteId,
341+
* mxcli#594).
335342
*/
336343
create or modify external entity OdTest.RemoteAccount
337344
from odata client OdTest.SalesforceAPI
338345
(
339346
EntitySet: 'Accounts',
347+
RemoteName: 'Account',
340348
Countable: Yes,
341349
Creatable: Yes,
342350
Deletable: No,

0 commit comments

Comments
 (0)