Problem using workflow - Agent not ready
Dear all, i'm not a workflow expert. I've created a workflow that works correctly when i test it using transaction SWDD, but I have an error of "no agent ready" when i process it using fm SWE_EVENT_CREATE.
the task is defined in this way:
Agent Expression: &_WF_INITIATOR&
but I also try this:
Agent User : ACNDEV (my user)
....and also I try to leave the agent blank.
I call the workflow rasing the event "CREATED" in that way:
VA_CREATOR-OTYPE = 'US'.
VA_CREATOR-OBJID = SY-UNAME.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'ZTESTFLOW'
objkey = 'ZTESTFLOW'
event = 'CREATED'
CREATOR = VA_CREATOR
TABLES
EVENT_CONTAINER = wi_container
The workflow start but at first task it is stopped with the message "No agent ready".
I already have try in different way, but i don't find any solution.
Anybody can help me ?
Davide
Hi
The possibilities are
1. Instead of making use of the SWE_EVENT_CREATE try to make use of the SAP_WAPI_CREATE_EVENT function module.
2. Try to refresh the organizational assignment from SBWP transaction on menu SBWP-> SETTINGS--> WORKFLOW SETTINGS -
> Refresh organizational environment.
I am sure that when ever you are trying to create or raise a event then it is not mandatory that you have to make the workflow template as general task.. but yes you have to maintain the agent assignment if you want to start the workflow directly like by using SAP_WAPI_START_WORKFLOW.
Also if you are facing this issue with some standard task but not with the workflow template then it is a problem with the agent assignment. in that case make sure that the proper agent assignment settings are maintained for the respective standard task. as mentioned in the above posts.
Regards
Pavan
Similar Messages
-
Agent31 - agent not ready details - report
Dear All,
We are in the position to provide explanation to the customer about the agent31 - agent not ready details report
I herewith attached the screen shot of report, where i can see not ready duplicated two times as below
reason code as 0 and 20003, and just gone through the explanation for 20003 found as below
20003 - applicable if you are using the Cisco Agent Desktop
If the agent is not in Not Ready state, a request is made toplace the agent in Not Ready state and then a logout requestis made to log the agent out.
But customer doesn't use CAD they use web based customized cti tool.
Please update with clarification or your idea.
with Regards,
ManivannanHi,
actually, the report shows what the ICM historical database tables contain - they contain what was written into those tables - ICM writes there whatever it was instructed to.
So if your web based custom agent tool writes 20003 (or anything), then it will appear in the report.
G. -
We are using employee workflow for last 1 year and there was no problem in using workflow to send the mail
to the supervisor of the person, when the person is hired. This week we got the problem for the first time. In the employee workflow task, the agent was not found (or created), so other task of employee mail was never started. Normally it uses the rule EVALUATE_AGENT_VIA_RULE to get the agent name in the employee workflow but this time this rule
was not called and so no mail was sent to the supervisor. I'm not sure if this is SAP bug or some problem with the customization. I am attaching the successful workflow log and failed workflow log for comparision.
Successful workflow (Email was sent to the supervisor)
101182 1 Employee Workflow
E47066 Start Event Received
E47066 (Sub)workflow created
E47066 Workflow started
Workflow System AC90000002
Workflow System EVALUATE_AGENT_VIA_RULE
Workflow System AC90000002
101183 8 Employee Mail Wait
Workflow System Background work item created
Workflow System Work Item Submitted for Execution
Workflow System Execution started
Workflow System Work Item Processing Complete
108160 4 Employee Mail
Workflow System Dialog work item created
Failed workflow (No Email was sent to the supervisor)
122001 1 Employee
Workflow
C24619 Start Event Received
C24619 (Sub)workflow created
C24619 Workflow started
122002 8 Employee Mail Wait
Workflow System Background work item created
Please let me know if you have any idea about this problem.
Thanks in advance for your help.
- APThis is my message from Production:
Resolution of rule AC00000168 for task TS93000019: no agent found
Workflow WS93000005 no. 000004806372 activity 0000000004 role 'AC00000168': No agent found
Agent determination for step '0000000004' failed
Workflow 'Post with Clearing Workflow' step number 4: _work item could not be created_
This is my message from development.. I recreted the scenario and getting different message.
Workflow 'Journal Entry Approval- Approval WF' step number 36: work item could not be created
Agent determination for step '0000000036' failed
Workflow WS93000001 no. 000000986124 activity 0000000036 role 'AC93000003': No agent found
Resolution of rule AC93000003 for task TS00007914: _no agent found_
Edited by: Sergey on Nov 2, 2010 5:05 PM -
Locking datafile problem using oracle agent
Hi All
we are facing locking datafile problems when we are taking backups using oracle agent
in veritas we have selected the option not to lock files when taking backups
is there any other settng which we have missed so that it doe s not lock files
regards
kedarIf you use a version locking policy, you should use a version field, not reuse your primary key for that. If you map the version field (you don't have to), you need to map it as read only. This makes sense: you don't want the application to change this version field, only TopLink should change it. This is where your exception comes from.
If you want to use existing database fields for optimistic locking, you should use a field locking policy. It does not make sense to use the primary key for that: it never changes, so you never know when the object has been changed by another user.
So you can do two things now to fix your code:
create a version column in your database and use a version policy (preferably numeric) or use a field locking policy and use job and salary, or all fields)
There is a pretty good description of locking policies in the TopLink guide:
http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/descun008.htm#CIHCFEIB
Hope this helps,
Lonneke -
UCCX script check "which agents not ready" and turn on MWI
Hi!
Is there a way to check which agents that are "not ready" i.e gather user-id and extension?
Then i want to use this "extension information" to light up the MWI on the "not ready" agents Cisco phones maybe by using unity and ctiports
to turn on the MWI.
OR do i need DB access to the UCCX to gather realtime of the agents name + extension + status?
Somebody tried something similar before?
Thx MikaelIts new but I like it!
I would database dip back into the UCCX database (find the scheme guides online in the reporting guide) check status and gather all agent ID's / extensions they are logged into.
Then do a for loop and a place call to the MWI number with the correct CSS on the CTI ports to do so... the interesting part is going to be turning them off!
I would say you could make a UCCX thats runs more like a service with an trigger point and a service based TCL script on a router to hit that number every so often to launch it like a service.
Or if your any good at coding you could write a small service and use something like OSIP(C Library) to trigger the MWI points over a custom built SIP trunk into CUCM with the service. Tons of ways to skin a cat depending on your time and knowledge level.
Chad -
IPCC - Missed Call Agent not ready
Hello
We have three departments using our IPCC Server. One has recently complained about missing a call and their phone gets put in Not Ready State.
I found this post:
Go to the SubsystemRMCM.properties file under c:\program files\wfavvid folder. Verify the following setting. Line: agentUnavailRNA=true
If it is false you will need to change it to True and restart the engine.
Can you tell me if this is correct? If I change it to false/true will this stop the phones from switching thier state only on a missed call?
Secondly, if this is the fix, I'm assuming this change is for the entire server and not the individual Que. Can I change it just for the phones who connect to the specific Que?
Thanks
AshHello again
So we are thinking more about implementing the above solution. I do have a couple of questions/concerns if we do the implementation:
1. If there is only 1 agent logged in and available, the call will be released to the agent, the agent then misses the call, the call goes back to the Que, the Que checks for available agents and sees this agent is still ready and releases the call again. This would mean the agents phone will continuously ring until he answers it correct? The call will never remain in the Que?
2. Is there a way to set up the que so that all calls remain in the que until the agent decides to pick up the call? I found this doc:
http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_tech_note09186a00801c82ea.shtml
and was wondering about Figure 3. If I set the connect radio button to NO. Then I need to create the seperate Trigger Contact. However the "Selected" parameter is not found in IPCC 4.03 build 080. This document is for IPCC 3.
I'm not even sure if changing the Connect radio button is what I'm looking for?
Thanks
Ash -
Problem using workflow with ess leave requests
Hello, I have been experiencing some problems using wf for approval with leave request in ess.
I customized ws12300111 for request approval and it is working fine. But when we try to cancel a request in ess, there are strange things happening:
- If the request is in status sent: the workflow gets in error.
- If the request is already in db: it starts a new workflow (ws12300111).
We don't want this because we have customized ws12300111 only for new requests. I have tried to customize absences in SPRO so that onlu new requests start the WS12300111, Onlu new requests have the workflow field filled with 12300111, but even like that, the WS12300111 starts whenever that is a cancelling or modification of a request.
I have also tried using a different workflow for canceliing (WS12400007), but in this case there is an error in ess when we try to submit.
This is really annoying, I have tried everything...Hello,
"If the request is in status sent: the workflow gets in error."
Please always say what the error is.
" If the request is already in db: it starts a new workflow (ws12300111"
You first have to find out how this is done. Look in SWEL, it's probably via some sort of CHANGED event.
regards
Rick Bakker
hanabi technology -
(UCCE) CUIC - Interval Boundary & Agent Not Ready
From the db schema handbook:
NOT_READY: Number of seconds the agent was in the NotReady State with respect to the Media Routing Domain, from the last state change, in NOT_READY state with reason code change, or from the last interval boundary.
For example:
Time=12:10:00 Agent NotReady state transition
Time=12:11:00 Agent Ready state transition, AgentEventDetail.Duration=60
Time=12:25:00 Agent NotReady state transition
Time=12:30:00 Interval boundary change, AgentEventDetail.Duration=300
Time=13:00:00 Interval boundary change, AgentEventDetail.Duration=1800
Does that mean that if an agent enters the NotReady state at 1:45 and enters Ready state at 2:15, both the 2:00 and 2:30 intervals will reflect 15 mins?
thanks,
willAs for the Not Ready Value being higher than the sum of reason codes, if you have any codes defined outside of the ones in the report (0-9, 50002, 50003, 50004, 50010, 50020, 50030, 50040, 50041, 50042, 32767, 20001, 20002, 20003), they will not show in the report.
It looks like this is an issue with the way the report is built. The NotReadyTime total is coming directly Agent_Interval, not Agent_Event_Detail, so that should be accurate. From your original screenshot, I suspect that the interval calculation in the report is wrong. It looks like the 30-minute report durations are getting rolled into one interval, while the durations less than 30 minutes get rolled into another. For example, the 18:00 Interval in your first screenshot should likely have 29:21 under Lunch, while the 20:00 interval should have 0:00:37 under Lunch.
I think the culprit is the "Interval" calculation for AuxReason. Any Agent_Event_Detail.DateTime value that's exactly at an interval boundry should be counted in the previous interval. I notice in my Agent_Event_Detail table, that sometimes when Duration=1800, the DateTime is exactly on an interval, and sometimes the DateTime is 1 second before an interval boundary.
-Jameson -
Workflow Agent Not found problem
Hi ,
I have to send workflow to the initiator. In the Event Container I have defined one variable as requester.
I am getting correct value in the workflow container Requester variable. Buy How do I do the agent assignment So the Requester get the workitem. I dont want to send the workitem to every body.
Please let me know
Thanks
AmanBusiness Object ZBUS1001 (Deligate from BUS1001)
I have Created One dialog screen. After filling all the necessary data when user press the Reserver(Custom Push Button) then workflow initiated. When user press the Reserve button I am executing the following code.
objtype = 'ZBUS1001'. "PLM Material
MOVE zplm_pnr_scr-matnr TO objkey.
event = 'CreatePLMMaterial'.
REFRESH event_container.
CALL FUNCTION 'SWC_ELEMENT_SET'
EXPORTING
element = 'Attachment' Value 'X'
field = zplm_pnr_scr-attachment (Screen field)
TABLES
container = event_container
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'SWC_ELEMENT_SET'
EXPORTING
element = 'Requester'
field = sy-uname
TABLES
container = event_container
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'SWC_ELEMENT_SET'
EXPORTING
element = 'Material'
field = zplm_pnr_scr-matnr
TABLES
container = event_container
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = objtype
objkey = objkey
event = event
TABLES
event_container = event_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
COMMIT WORK.
Event has three parameters
Requester
Attachment
Material
Workflow logic
If attachment = 'X'
Send the workitem to the initiator. that What I wanted to Achieve.
Please let me know if you need some extra stuff.
Thanks
Aman -
Having a problem using Workflow to update a field based on ZIP code
I created a Workflow to update a Yes/No picklist called eligibility based on a Text (Short) field called Applicant ZIP code.
It's set to update on the Opportunity page:
Before modified record saved
And the value function is:
IIf(InStr("60601_60602",[<stApplicant_Zip_Code_ITAG>|http://forums.oracle.com/forums/]+)>0,"Yes","No")+
That was a guess of how to try it while relying on my limited MS SQL & Access knowledge.
It does work correctly using what I did. The problem I have is that I actually need to choose from over 600 ZIP codes. The function window only allows for 256 characters. (And I suspect my way is fairly inelegant for search a multi-thousand character string.)
Any suggestions?I created a Workflow to update a Yes/No picklist called eligibility based on a Text (Short) field called Applicant ZIP code.
It's set to update on the Opportunity page:
Before modified record saved
And the value function is:
IIf(InStr("60601_60602",[<stApplicant_Zip_Code_ITAG>|http://forums.oracle.com/forums/]+)>0,"Yes","No")+
That was a guess of how to try it while relying on my limited MS SQL & Access knowledge.
It does work correctly using what I did. The problem I have is that I actually need to choose from over 600 ZIP codes. The function window only allows for 256 characters. (And I suspect my way is fairly inelegant for search a multi-thousand character string.)
Any suggestions? -
Login duration (total login) is incorrect in Agent Not Ready Detail
Hi All,
We have deployed the PCCE 10, and CUIC 10, and downloaded Cisco reporting template CCE_AF_Historical template.
When we checked the report login duration show as some 0-2037:0-31:0-48 (not readable value is coming all agents).
Since we are using cisco default template we didnt change anything on the sql query. i here with attached the sql query
what i have understood from this issue is , it is not valditating the Event valuein the following area
AgentLogOutDetails(ALODSkillTargetID, ALODLoginDateTime, TotalLoginTime, ALODEvent) AS
(Select aed.SkillTargetID,
aed.LoginDateTime,
TotalLoginTime = DATEDIFF(ss,LoginDateTime, DateTime),
aed.Event
From AgentNotReadyDetails aed
WHERE Event = 2),
SELECT SkillTargetID = ANRDU.SkillTargetID,
LoginDateTime = ANRDU.LoginDateTime,
TotalLoginTime = CASE WHEN ALOD.ALODEvent = 2 THEN ALOD.TotalLoginTime ELSE DATEDIFF(ss,LoginDateTime, (CASE WHEN DATEDIFF(ss, :end_date, (Select NowTime From Controller_Time)) > 0 THEN :end_date ELSE (Select NowTime From Controller_Time) END)) END,
TotalNotReadyTime = AgentNotReadyTotal.NotReadyTime,
ReasonCode = ANRDU.ReasonCode,
textReasonCode = ISNULL(Reason_Code.ReasonText, ' ')+'['+convert(varchar, ANRDU.ReasonCode)+']',
ReasonCodeDuration = ANRDU.ReasonCodeDuration,
FullName = Person.LastName+', '+Person.FirstName,
perNotReady = CASE WHEN ISNULL(AgentNotReadyTotal.NotReadyTime,0) = 0 THEN 0*1.0 ELSE ISNULL(ANRDU.ReasonCodeDuration,0)*1.0/ISNULL(AgentNotReadyTotal.NotReadyTime,0) END,
perLogon = ANRDU.ReasonCodeDuration*1.0/(CASE WHEN ALOD.ALODEvent = 2 THEN ALOD.TotalLoginTime ELSE DATEDIFF(ss,LoginDateTime, (Select NowTime From Controller_Time)) END),
StartDate = CONVERT(DATETIME, :start_date),
EndDate = CONVERT(DATETIME, :end_date)
FROM AgentNRDuration ANRDU
LEFT JOIN Reason_Code ON ANRDU.ReasonCode=Reason_Code.ReasonCode
LEFT JOIN AgentLogOutDetails ALOD ON (ANRDU.SkillTargetID = ALOD.ALODSkillTargetID
AND ANRDU.LoginDateTime = ALOD.ALODLoginDateTime)
LEFT JOIN AgentNotReadyTotal ON ANRDU.SkillTargetID = AgentNotReadyTotal.SkillTargetID,
Person (nolock),
Agent (nolock),
Media_Routing_Domain
WHERE Agent.PersonID = Person.PersonID
AND Agent.SkillTargetID = ANRDU.SkillTargetID
AND Media_Routing_Domain.MRDomainID = ANRDU.MRDomainID
ORDER BY FullName,
Media_Routing_Domain.EnterpriseName,
LoginDateTime,
textReasonCode
Does any come across this issue please guide us how to resolve it, since it is affecting the customer performance badly.
with Regards,
ManivannanIt sounds like the query is giving you a negative time value of about -85 days. I see a few ways this could happen:
The Agent logout events in AED (Event=2) are somehow getting DateTime values that are earlier than the login times
NowTime in table Controller_Time is earlier than the agent login times. (this seems more likely)
So, I suggest looking at the Agent_Event_Detail table on the AW/HDS to ensure that the DateTime values on Event=2 lines are later than the login times... and also check the NowTime in table Controller_Time to ensure it is correct.
Here's the NowTime query:
SELECT [NowTime]
,[TimeZone]
,[TimeZoneName]
FROM [Controller_Time]
And here's the appropriate query for AED (should return 0 results if DateTime/LoginDateTimes are correct):
SELECT [DateTime]
,[SkillTargetID]
,[MRDomainID]
,[TimeZone]
,[LoginDateTime]
,[Event]
,[RecoveryKey]
,[Duration]
,[ReasonCode]
,[DbDateTime]
FROM [Agent_Event_Detail]
WHERE Event=2 AND DateTime<LoginDateTime
-Jameson -
Problem finding Workflow agent when assigning an Organization as responsibl
Hello Colleagues,
I have a doubt about responsible Agent finding for a WF Task.
I have created the following structure:
MP_ORG (organization)
_ MP_ORG_SALES (organization)
_ Manager (Position)
_ User1 (user)
_ Clerk (Position)
|_ User2 (user)
If I define MP_ORG_SALES as responsible agent, the WF works fine (User1 and User2 get the Work item). Nevertheless, if I define MP_ORG as the responsible agent, the Workflow doesn't find a responsible agent.
Any ideas???
Thanks and regards
MarceloHi all,
@Raj, nice blog but i'm afraid it didnt get me any further.
@Surjith, after the workflow runs in error i can restart it from SWPR even without maintaining the data. This is (i think) because i restart the WF with the admin account, and that has sufficient authorization to look to the other division. As I mentioned it is not an option to give all the people sufficient authorization as per company policy.
@Rick, agent determination is rule based. We created rules as follows:
Category: Agent determination: Function to be Exected
Function Module: RH_GET_STRUCTURE
Evaluation path: these are customized evaluation paths
The workflow runs in error after completing the previous step. From the workflow log you can see that rule has no result. (if you test the rule in pfac_dis with the same input it works fine though, but then you have more rights of course)
Thx so far.
Robert -
Problem using mail, communities not connect to int...
Opera mini browser I'm using properly. But I'm not using mail &communities
Hello, Shri123.
Thank you for posting and welcome to the Nokia Support Discussions.
We'd love to help you. You're not able to access the Mail and the Communities app, right? Can you tell us your phone model? Are you getting any error message? If yes, please provide. What are the fixes that you have tried so far to resolve the issue? Is your phone's software updated? Have you tried to reboot the phone?
We look forward to your response. -
Problem using the Lotus Notes Portlet with Domino DIIOP
hi! the DIIOP service always gives a memory error when the session hits 60. I've read that in R5.0.10, the ORB_LISTEN_QLEN can be set.
but I can't find that line in the notes.ini?!
kindly advise.
thxeek eek!!
I tried.... turns out, that was the download I was originally working with, and just to be sure, I redeployed the application from that download. I get the same problems. In a nutshell:
1) "My Inbox" portlet has no way to view the most RECENT email
2) When I click a link in the "Calendar" or "My Inbox", I get Error 401 - "You are not authorized to perform the operation"
3) The inbox, calendar, and contacts portlets seem to function upon first page view. Refreshing the page causes "Your session with this application has expired.."
4) The "My ToDo" portlet doesn't work at all. I get a stack dump in the vain of:
"java.lang.NullPointerException at oracle.portal.integration.lotusnotes.application.LotusProvider.showToDo(Unknown Source) at oracle.portal.integration.lotusnotes.application.LotusProvider.showPortlet(Unknown Source) at oracle.portal.integration.lotusnotes.application.LotusProvider.process(Unknown Source) at oracle.portal.integration.lotusnotes.render.ToDoShowRenderer.getURLStream(Unknown Source) at"
Feels like I'm fightin' a losing battle... anyone?
-sean- -
Problems using Doc ID Note:414062.1 - No Subject or Recipient shown
The procedure mail_files is already created as shown in the Note.
I enter SQL and drop and create the directory dir.
I then use the exec call to run the mail_files procedure.
When the e-mails arrive, there is no subject and the To: line states undisclosed-recipients - Can anyone tell me how to get both of these items to appear?The 'subject' parameter is input to the mail_files procedure, but never used.
Maybe you are looking for
-
IPod touch 4th gen won't connect to iTunes?
I need help. I have a windows 8 computer and a 4th gen itouch black. Whenever i used to connect my ipod to my computer, itunes would open, but a windows 8 little notfication used to come up and say "click here to choose what to do with this device" o
-
Third Party Sales Order not generating a PR when going on Credit Block
Hello Generous People, We are having a problem with creating 3rd Party Sales Orders and generating a PR when the customer goes on a credit block and the is subsequently released from there credit block. The system enters a loop of creating a PR and t
-
Trouble connecting iPad to Internet
I can connect fine to my wireless network with my iPad, but I can't get out to the internet. All of my other devices in the house are getting out fine (Mac, iPhones, Windows PCs, Apple TV). The problem is recent with the iPad (last two weeks). I'v
-
Map Legend changes when scrolling map vertically
With the map scrolled all the way out, when you move it vertically it, the legend changes With map in middle. 5000km:5000miles with map lying on bottom of screen 5000km:2000miles with half of map scrolled out of the screen 200km:100miles with map out
-
Thank you for answering my question