Pages

Wednesday, August 21, 2013

Bug in Data Import Export Framework (DIEF) when adding entity for InventParameters

When using the wizard to generate an entity for InventParameters, the generation fails with the name DEL_InventSumDateFinancialDimensionFocus_RU being too long (more than 40 characters).
The bug seems to come from the \Classes\DMFGenerateEntityTable\modifyFields method. Code from line 142:
                            if(fieldDeleted)
                            {
                                treeNodeToDelete = treeNode;
                            }
                            else
                            {
                                treeNode.AOTRename(#Del + fieldName);
                                treeNode.AOTsave();
                                treeNodeToDelete = treeNode;
                            }

The treeNode.AOTRename method is called without checking the length for #Del + fieldName.