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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.01.2015, 16:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
goshoom: Test Data Transfer Tool: Getting errors from log
Источник: http://dev.goshoom.net/en/2015/01/td...rors-from-log/
==============

I imported data to AX with the Test Data Transfer Tool and it told me that some errors occured. The log file is quite large, so I asked myself what’s the easiest way to find these errors. This is my approach, using a very simple Powershell script:

[xml]$dplog = Get-Content C:\Windows\System32\dplog.xml $dplog.root.item | ? Status -eq "Failed"






Note that this is for Powershell 3; you would have to change it to something like this if you still use Powershell 2:

[xml]$dplog = Get-Content C:\Windows\System32\dplog.xml $dplog.root.item | ? {$_.Status -eq "Failed"}






This is how the output looked like in my case:

status : Failed message : One or more indexes were disabled on table TableXYZ to allow the data to import. Use the following SQL to enable the indexes once you've fixed the data: ALTER INDEX ALL ON [TableXYZ] REBUILD The original index violation message is: Cannot insert duplicate key row in object 'dbo.TableXYZ' with unique index 'I_104274XYZIDX'. The duplicate key value is (5637144576, 196, , ). The statement has been terminated. direction : Import action : Overwrite database : TestAX table : TableXYZ targetTable : TableXYZ folder : C:\TestData

Источник: http://dev.goshoom.net/en/2015/01/td...rors-from-log/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
AX2012R3 Test Data Transfer Tool demoded DAX: Администрирование 1 20.07.2014 12:33
emeadaxsupport: SEPA affected objects Blog bot DAX Blogs 0 29.11.2013 13:11
atinkerersnotebook: Using PowerPivot to Analyze Dynamics AX Data Blog bot DAX Blogs 1 05.10.2013 07:23
fatihdemirci: Microsoft Dynamics AX 2012 Test Data Transfer Tool (beta) Blog bot DAX Blogs 5 16.09.2013 17:26
emeadaxsupport: Microsoft Dynamics AX 2012 Upgrade - Using the State Transfer Tool Blog bot DAX Blogs 0 28.01.2012 02:16

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

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

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