Hi Fra,
[list]
[li]URS is connected to MM_StatServer.[/li]
[li]The DN has been added to a place, the place is working, and calls get routed to the agent correctly.[/li]
[li]The Statistic IsAgentReady is not defined in MM_StatServer, it is defined in IRD, I thought that should be enough?[/li]
[li]I tried SData[varAgentTarget,'StatAgentsAvailable'], but got the same error message in the URS log as I got with the IsAgentReady statistic. I also tried the StatAgentsTotal on an Agent group which I knew there were agents in, and I got the same error..[/li]
[/list]
Renè:
Sorry, bad wording on my part.

AgentID is the same as EmployeeId.
Here is some lines from the URS log using IsAgentReady statistic:
[code]
15:30:57.553_M_I_ [10:06] STATOBJECT(02fcdeb0 10 2) tenant=Resources name=XY12345@MM_StatServer.A: statistic <IsAgentReady> asked
_I_E_014901b6c6dc2015 [10:0d] can not get sdata, 0 will be used
result of SData: FLOAT: 0
_I_I_014901b6c6dc2015 [09:04] ASSIGN: vAgentStatus(LOCAL) <- FLOAT: 0
15:30:57.553 Int 22000 0
15:30:57.553_I_I_014901b6c6dc2015 [07:07] HERE IS TARGETS
TARGETS: XY12345@MM_StatServer.A
15:30:57.553_M_I_ [17:0c] VQ 02fa1d60 created: type=0, tenant=Resources
==========================================
_M_I_ [17:06] VQ 02fa1d60 Target 02fd5d50 added: name=XY12345, location=MM_StatServer, type=A, state=##state, activity=unknown
15:30:57.553_M_I_ [10:06] STATOBJECT(02f9f3c0 18 2) tenant=Resources name=XY12345@MM_StatServer.A: statistic <##state> asked
_M_I_ [17:09] VQ 02fa1d60 Target "XY12345"(02fd5d50): connected to state Agent XY12345
[/code]
And here is URS log using StatAgentsAvailable:
[code]
_I_I_014901b6c6dc2019 [10:0d] HERE IS SDATA: XY12345@MM_StatServer - StatAgentsAvailable
15:34:22.522_M_I_ [10:06] STATOBJECT(02fc3b20 39 2) tenant=Resources name=XY12345@MM_StatServer.A: statistic <StatAgentsAvailable> asked
_I_E_014901b6c6dc2019 [10:0d] can not get sdata, 0 will be used
result of SData: FLOAT: 0
_I_I_014901b6c6dc2019 [09:04] ASSIGN: vAgentStatus(LOCAL) <- FLOAT: 0
15:34:22.522 Int 22000 0
15:34:22.522_I_I_014901b6c6dc2019 [07:07] HERE IS TARGETS
TARGETS: XY12345@MM_StatServer.A
15:34:22.522_M_I_ [17:0c] VQ 0262ddd0 created: type=0, tenant=Resources
==========================================
_M_I_ [17:06] VQ 0262ddd0 Target 02fc8730 added: name=XY12345, location=MM_StatServer, type=A, state=##state, activity=unknown
15:34:22.522_M_I_ [10:06] STATOBJECT(02f9f3c0 18 2) tenant=Resources name=XY12345@MM_StatServer.A: statistic <##state> asked
_M_I_ [17:09] VQ 0262ddd0 Target "XY12345"(02fc8730): connected to state Agent XY12345
[/code]
Here is the Selection part when the call gets routed:
[code]
_M_I_014901b6c6dc2019 [10:0c] tenant Resources Agent XY12345: dn XXXXX(ready since 1249047225) is OK
_M_I_014901b6c6dc2019 [17:0b] VQ 0262ddd0 Target "XY12345"(02fc8730) Component #1 XY12345: statvalue: 0, 0(N) the best
_M_I_014901b6c6dc2019 [17:0b] VQ 0262ddd0 Target "XY12345"(02fc8730): Component XY12345 was SELECTED
_M_I_014901b6c6dc2019 [17:0e] VQ 0262ddd0 Target "XY12345"(02fc8730): statvalue: 0, 9.18881801813e-007(N) the best
.
.
.
========== DN Information ===========
DN Number XXXXX(edited out)
DN Access XXXXX(edited out)
Agent Name XY12345
Place Name XXXXX(edited out)
Agent Login XXXXX(edited out)
Switch Name XXXXX(edited out)
DN Type 1
=====================================
====================== Target Information =====================
Target Name < XY12345>
Target Location < MM_StatServer >
Target Type < A >
STATE MAPPING INFO - STATISTIC < ##state >:
Stat Server DN info available
Modelling Statistic : NOT available
==============================================================
[/code]
Anders