SEARCH THE COMMUNITY

Find an existing answer

4 results for “EDT”

CommunityWhy Map/Set lookups fail in D365FO X++ when keys use EDT/enum or wrong types (how to normalize keys)In Dynamics 365 Finance & Operations X++ (particularly `Map`/`Set`), I’m seeing lookups return “not found” even when I believe the key values match. Example: a `Map` is declared as `Map tableKey`, where `tableKey` is an EDT or enum type (or sometimes the key is built from a `contCommunityTroubleshoot D365FO Data Entity/OData field mapping errors (missing mappings, EDT/type mismatches) in X++In D365 Finance & Operations, I’m extending a Data Entity and consuming it via OData. The service sometimes fails with errors like “field mapping not found” or the payload is rejected (400) due to type/EDT mismatches. What’s the best way to debug the root cause when: 1) a Data ECommunityD365FO Data Entities SCD: how to capture field-level details when `validateWrite`/`write` fails in X++ preprocessingIn D365FO Data Entities that use SCD (extended data entities / data entities with staging + SCD mapping to EDT-backed fields), `validateWrite` or `write` can fail with an error message that doesn’t clearly identify the source field or stack. What are the practical techniques toCommunityHow do I implement a custom comparer/hash for RecordSortedList/Set/Map when keys are EDTs or enums in D365FO X++?I'm building a lookup using `Map`/`Set` (and in one place `RecordSortedList`) in X++ where the key type in the collection is an EDT (or an enum EDT). However, equality/lookup behavior is inconsistent: sometimes `map.exists(key)` returns false even though I can find a record with