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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.02.2012, 01:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
workflowax: Workflow history error – Stopped (error): Could not find user
Источник: http://workflowax.wordpress.com/2012...not-find-user/
==============

If you have ever coded with the WorkflowParticipant provider class you may have come across the following stop error in workflow history “Stopped (error): Could not find user”. After spending a couple of hours tracing through code I eventually located the cause of the error.

In my case the participant provider class is supposed to retrieve an employeeId from a form and translate it to a userID which it  then returns in the WorkflowUserList. However in my case no user relation had been setup between the employee and the user thus the class ended up adding an empty user to the list causing the SysWorkflowProviderService::resolveDueDateAsUser  method to fail as there it couldnt find the blank user. Thus:

Resolution:
1. Always check the user id’s that you are adding to WorkflowUserList that your provider returns, to ensure that they are not empty.

E.G: Wrong:

userList.add(SysCompanyUserInfo::emplId2UserId(resp);Right:

respUser = SysCompanyUserInfo::emplId2UserId(resp); if (respUser == '') { throw error(strfmt("No user relationship defined for employee %1",resp));}userList.add(respUser);


Источник: http://workflowax.wordpress.com/2012...not-find-user/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
workflowax: ‘Go to Origin’ Button for Workflow History Form Blog bot DAX Blogs 0 18.11.2011 16:11
workflowax: Security Keys for Workflow History Blog bot DAX Blogs 0 22.12.2010 12:11
workflowax: Why is my yellow workflow bar not displaying Blog bot DAX Blogs 0 20.09.2010 12:05
workflowax: What is a workflow owner used for? Blog bot DAX Blogs 0 01.06.2010 15:05
Ошибка бизнес-процесса Tarasov E Dynamics CRM: Разработка 9 18.02.2010 14:02

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

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

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