AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 26.11.2014, 20:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Error during data import, when using multiple entities in one Processing Group that have different financial dimensions
Источник: http://blogs.msdn.com/b/axsupport/ar...imensions.aspx
==============

Consider the following scenario:

You will get an error "Unable to return DimensionAttributeValue record for xxxxxx",

when using the DIXF tool to import data and have multiple entities in one Processing Group

that have different financial dimensions.

The Problem is that, the system always takes the first source data format for the "Copy data to target" step. 

The simple scenario is:

 

1. Create a Processing Group

2. Create 2 entities in that processing group (i.e. Customer and Items)

a. It is needed to have 2 entities with different Financial dimensions

and different source data formats

3. Get the staging data

a. Your data should have the Field "DefaultDimensionStr" filled

4. Copy the Data to target

5. Now you are getting the error :

"Unable to return DimensionAttributeValue record for xxxxxx".

Workaround suggestion:

Go to \Data Dictionary\Tables\DMFDataSourceProperties\Methods and create a new method.

Overwrite the new created method with following code snippet:

public

static DMFDataSourceProperties wdxFindByExecIdDefGroupEntity(

DMFExecutionId _execId,

DMFDefinationGroupName _defGroup,

DMFEntityName _entity)

{

DMFDataSource dmfDataSource;

DMFDataSourceProperties dMFDataSourceProperties;

DMFDefinitionGroupExecution dFDefinitionGroupExecution;



if (_execId && _defGroup)

{

selectfirstOnly1 ExecutionId, DefinitionGroup from dFDefinitionGroupExecution

where dFDefinitionGroupExecution.ExecutionId == _execId

&& dFDefinitionGroupExecution.DefinitionGroup == _defGroup

&& dFDefinitionGroupExecution.Entity == _entity



join SourceName from dmfDataSource

where dmfDataSource.SourceName == dFDefinitionGroupExecution.Source

join dMFDataSourceProperties

where dMFDataSourceProperties.Source == dmfDataSource.SourceName;

}

return dMFDataSourceProperties;

}






3- Save and compile

4- Got to the \Classes\DMFEntityWriter\write method and change the code as shown below:

//Before

//dmfDataSourceProperties = DMFDataSourceProperties::findByExecIdAndDefGroup(_executionId,_definitionGroup);

//After
dmfDataSourceProperties = DMFDataSourceProperties::wdxFindByExecIdDefGroupEntity( _executionId, _definitionGroup,_entity.EntityName);





5- Save and compile

6- Do an Incremental CIL generation




Источник: http://blogs.msdn.com/b/axsupport/ar...imensions.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Importing a General Journal using Data Import/Export Framework AX 2012 Blog bot DAX Blogs 0 17.07.2014 20:12
emeadaxsupport: SEPA affected objects Blog bot DAX Blogs 0 29.11.2013 13:11
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
dynamicscpm: Creating Consolidated Financial Statements using Management Reporter – Consolidating data across one or multiple Dynamics ERPs with different chart of accounts (Part 2 of 7) Blog bot DAX Blogs 0 05.01.2012 05:11
Microsoft Dynamics CRM Team Blog: Create Sample Data for your Solution Blog bot Dynamics CRM: Blogs 0 01.12.2011 05:14
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 07:21.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.