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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.08.2012, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: AX 2012 Retail: How to enable tracing in AX 2012 Retail
Источник: http://blogs.msdn.com/b/axsupport/ar...12-retail.aspx
==============



AX 2012 Retail Tracing options





The aim of this blog is to describe the different trace options that exists in AX 2012 Retail. We have seen many request how and were to find information about errors in the retail system.



Topics


· Retail Store Connect (RSC)
  • o PreActionlog
  • o RSC messages, Scheduler log & Message tree
· Retail Transaction Services (RTS)
  • o EventViewer
  • o RetailLog
· POS trace
  • o RetailLog
· Retail Database Utility log
  • o RetailDatabaseUtility.log
· Microsoft Sync Service Trace
  • o SyncTrace.log
· Avicode trace



RSC

The RSC has several options for tracing.

Start the RSC settings from start/All program files/Dynamics AX 2012/Retail Store Connect/Retail Store Connect Settings
  • · We can save the RSC packages and analyze the content of the R and I file
  • · We can save the Exception dump happened on the Dbserver.exe
  • · We can enable different log level and write it either to file or to the EventViewer




The RSC messages that is stored in the RSC database in the tables IncomingMessages and OutGoingMessages. We can move these records to the AX HQ database by enabling the RSC upload options.





In the AX, we can then see the messages here: Retail\Inquiries\Retail Store Connect messages




Or for the specific job you can go to Retail\Periodic\Retail Scheduler\Distribution scheduler\ mark one Job , scheduler jobs and scheduler log







Notice in AX 2012 we go the new nice visual presentation with the message tree. This is useful to see were an error occurred.




PreAction log


Before we can run an A-job, we need to run a PreAction to Action function (Create actions).



The messages of this function will be stored here Retail\Periodic\Retail Scheduler\Distribution scheduler\PreAction log






RTS


The Retail Transaction services also have a trace option. The information will be stored in the EventViewer of the RTS, but most detailed information in the store database table RetailLog

C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Transaction Service\ RetailTransactionService.exe.config








































































POS Trace


You can enable the POS trace in the functionality profile, which is then replicated to the store database. The information is stored in the RetailLog table








Retail Database Utility log


The database utility is used for installing the store database and offline database. It updates the Pos.exe.config and Microsoft.Dynamics.Retail.Offline.Service.exe.config with the correct information about the databases and POS terminal information.

The trace file generated in this trace is useful for debugging installation issues.



The trace is located in the same folder as the config file.

C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Database Utility\RetailDatabaseUtility.exe.config









































































False








































Microsoft Sync Service Trace


The Microsoft sync service that handles the synchronization from the store database and the offline database can be modified, so it creates a trace file of the process.


The trace is located in the same folder as the config file.


C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail POS\RetailOffline\ Microsoft.Dynamics.Retail.Offline.Service.exe.config































00:00:10





25600





True





0001





00011






































AVICODE


This tool is a .NET monitoring tool that we can use on the POS to see which functions called an example the duration of these calls. This is very useful for performance optimization on the POS




The general idea is to use the Avicode code profiler to give us information on performance bottlenecks, etc. Here are the instructions



- Install either the avicode agent in 64-bit or 32-bit installer which you can read about here http://technet.microsoft.com/en-us/library/gg182752.aspx. it should be a part of SCOM

-

- When going through the install, you can just leave the location of the Avicode SE-viewer at localhost (see screenshot #1 below). We won’t be sending the results to an Avicode server but will be generating local files.

- After installing, there should be this directory: “C:\Program Files\AVIcode\Intercept\Agent\v5.7.491” – make a backup of the Configuration directory. Copy these files into the folder instead

See attachment
ASPNetStandardConfig.zip



- Go to Windows Services and restart the “Intercept Service” to make sure the configuration is re-read

- Under your start menu, launch “Intercept Management Console”. Click OK on the IIS7 scripts error (screenshot 2) if you don’t have IIS installed.

- Right-click on “Executable Applications” and select “Add Executable Application” to start the wizard (screenshot 3).

- Browse to POS.exe on your machine (#4) and hit next.

- Change the thresholds to 1 (we’ll report everything) and enable Time Tracking (#5). Hit next.

- Select All Exceptions and mark Collect Parameters (#6). Next and Finish.

- Click OK on the message about restarting the application.

- Monitoring should now be enabled for everything the POS.exe does. If you want to temporarily turn it off until you get to a place in the app that you’re interested in, you can do that and then just turn it on when you’re ready to start monitoring. Right click on the POS.exe entry in the tree and select properties. There is a checkbox to enable or disable monitoring (#7).

- After you’re done repro’ing the issue, turn off monitoring or just exit the POS.exe. Your log files should be in Storage\Events directory. There should be about 10 or so XML files (#8). Zip those up and send them to me!

- If you don’t have any files in that directory, look for events in Event Viewer > Applications and Services Logs > Intercept (screenshot #9) for clues.



Screenshots:



#1





#2






#3






#4



#5






#6





#7



#8






#9









Author: Kim Truelsen

Date: 7/8-2012








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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: AX for Retail 2012: Working with Custom Fields Blog bot DAX Blogs 0 07.08.2012 07:12
emeadaxsupport: How to disable the Public Sector solution when using Microsoft Dynamics AX 2012 Feature Pack Blog bot DAX Blogs 0 07.08.2012 00:13
emeadaxsupport: AX for Retail 2012: Customizing the Transaction Service Blog bot DAX Blogs 0 19.04.2012 01:14
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 10:52.