martedì 19 aprile 2016
TIP: Error executing code: The field with ID '0' does not exist in table 'SysExtensionSerializerExtensionMap'.
If you ever get "Error executing code: The field with ID '0' does not exist in table 'SysExtensionSerializerExtensionMap'." error in CIL, it may happen it is the table extension framework + the standard buf2buf function to blame.
Somehow, if you pass a Map instead of a table to buf2buf function, the following line fails:
_to.(fieldId) = _from.(fieldId);
However, if you replace this line with:
fieldName = fieldId2name(_from.TableId, fieldId);
_to.setFieldValue(fieldName, _from.getFieldValue(fieldName));
everything is fine both in X++ and in CIL.
P.S. I didn't dare to change the standard buf2buf method. Istead, I created another method and used it in the table extension framework logic, which failed because of the issue (\Data Dictionary\Maps\SysExtensionSerializerMap\Methods\copyExtensionTableData)
Reposted: https://community.dynamics.com/ax/b/dynamicsaxnotesonthecuffs/archive/2016/04/04/error-executing-code-the-field-with-id-39-0-39-does-not-exist-in-table-39-sysextensionserializerextensionmap-39
Iscriviti a:
Commenti sul post (Atom)
AX 2012: The request was aborted: Could not create SSL/TLS secure channel
The error you're encountering, "The request was aborted: Could not create SSL/TLS secure channel," can occur due to various re...
-
Ussally you have to save a report to an output file for example store it or send it over mail. Here an example to save a report into Excel...
-
A simple way to export a data entity, using the powerful data management framework. You need a definition group, where the entity is mapped ...
-
NumberSeq numberSeq; InventTransferTable inventTransferTable; InventTransferLine inventTransferLine; InventDim inventDim; ; ttsbegin; ...
Nessun commento:
Posta un commento