This post is machine-translated. The original post in german language can be found here.

Error "Argument to method getFieldValue out of range" during import using a data entity

When importing data via a self-created data entity that also contains financial dimensions for a self-created table, I recently had the problem that the import always failed with the following error:

Argument to method getFieldValue out of range

During debugging it turned out that a field name could not be determined in the method DimensionDynamicAccountDataEntityResolver.getEnumValue(). However, the responsible method DictDataEntityField.dynamicDimensionEnumartionField() is not visible.

Debug

Cause and Solution

In the entity, a connection must be created between the dimension field with the RecId and the associated account type. This is done using the two properties Dimension Legal Entity Context Field and Dynamic Dimension Enumeration Field of the dimension field, see screenshot.

Properties of the data entity

  • LedgerDimension is extended from EDT DimensionDynamicAccount
  • LedgerAccountType is the associated account field that is extended from the EDT LedgerJournalACType.
These post applies to following version:
Dynamics 365 for Finance and Operations

Add comment
 
 

 

 
 
 
Posts of the actual month
April 2024
MoTuWeThFrSaSu
1234567
891011121314
15161718192021
22232425262728
2930 
 
© 2006-2024 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.