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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.05.2017, 08:03   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Writing to SysException Log when You Have an Outer TTS Scope in Dynamics AX
Источник: https://stoneridgesoftware.com/writi...ter-tts-scope/
==============

A customer requested to have an error logged to the SysException table in Dynamics AX when the AIF process experienced an error. The caveat was they did not want the whole AIF process to abort due to this failure and roll back all of the changes for the import, just that one record. To achieve this they needed to capture the error and commit the error message into SysException log. The code still needed to track the failure to the test so it could roll back that change and move on to the next object in the list and continue to process.

Because this code was inside an outer TTS scope, anytime they tried to write the exception to the database it rolled back the exception log due to the failure. To resolve this they needed to add an additional TTS level, but that caused to have a TTS level greater than 1.

To resolve that it was necessary to call the setConnection method and pass in the userConnection. This allowed it to create its own scope for the transaction, commit the insert into the SysException log, and still roll back the changes from the error AIF import object.





Источник: https://stoneridgesoftware.com/writi...ter-tts-scope/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: AX Performance - Analyzing key SQL Server configuration and database settings Blog bot DAX Blogs 0 28.09.2015 14:11
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 17 Blog bot Dynamics CRM: Blogs 0 10.05.2014 06:30
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 16 Blog bot Dynamics CRM: Blogs 0 23.01.2014 03:15
Platform updates overview - 3.70.B - NAV2009 R2 Blog bot Dynamics CRM: Blogs 0 07.02.2011 22:06
semanticax: Dynamics AX 2009 Installation - Application Blog bot DAX Blogs 0 22.12.2010 08:11

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

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

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