Dynamic Sliding TimeProfile get error when using PSDK

Hi All,

I am developing PSDK Statserver client with ‘Dynamic Time Profile’.
But I’ getting error for only Sliding Dynamic TimeProfile.
Growing timeprofile works file.

Below is statserver log generating error.
Any ideas what’ wrong?

Thanks you all in advance.


statserver version is 8.1.200.44,
and psdk lib version is 8.5.200.03

2016-02-18 12:39:59.351> Client: Message ‘OpenStat’
‘REQ_ID’ 123
‘INSENS_PERCENTAGE’ 1
‘NOTIFICATION_MODE’ ‘ChangesBasedNotification’ (0)
‘OBJECT_ID’ ‘56268@CBPBX’
‘OBJECT’ ‘Queue’ (5)
‘TENANT_ID’ ‘Resources’
‘DistByConnID’ 0
‘INTERVAL’ ‘Sliding’ (2)
‘SUBJECT’ ‘DNAction’ (0)
‘CATEGORY’ ‘ExpectedWaitTime’ (33)
‘DYNAMIC_TIME_PROFILE’ ‘600:10’
‘DYNAMIC_FILTER’ ‘DNIS!= “”’
12:39:59.351 Std 10040 Statistics specification error (client=‘winker’, request_id=123, user_request_id=-1): ‘Incorrect ‘tmLength’ Parameter: 0’
2016-02-18 12:39:59.351> Client: Sending message to skt_winker_cpms_P(28)
2016-02-18 12:39:59.351> Client: Message ‘Error’ [stats:00000000000000000000000000000000]
‘STRING_VALUE’ ‘Incorrect ‘tmLength’ Parameter: 0’
‘LONG_VALUE’ 11
‘TM_LENGTH’ 0
‘TM_SERVER’ 1455766799
‘USER_REQ_ID’ -1
‘REQ_ID’ 123
‘MainMask’ all actions clear except for
‘CallWait’ (9)
‘CallReleased’ (50)
‘CallMissed’ (51)
‘ACWCompleted’ (52)
‘ACWMissed’ (53)
‘AgentLogin’ (54)
‘AgentActive’ (55)
‘AgentReady’ (56)
‘RelMask’ all actions clear except for
‘CallEntered’ (10)

What is a “dynamic” time profile??

From where did you get these parameters?
‘DYNAMIC_TIME_PROFILE’ ‘600:10’
‘DYNAMIC_FILTER’ ‘DNIS!= “”’

Try calling the setIntervalLength(int) method of your StatisticMetricEx object

Thanks hsujdik !

setIntervalLength function works perfect.
Below is statserver log working good.

2016-02-19 19:17:21.373> Client: Message ‘OpenStat’
‘REQ_ID’ 123
‘INSENS_PERCENTAGE’ 1
‘NOTIFICATION_MODE’ ‘ChangesBasedNotification’ (0)
‘TM_NOTIFICATION_FREQ’ 1
‘OBJECT_ID’ ‘56268@CBPBX’
‘OBJECT’ ‘Queue’ (5)
‘TENANT_ID’ ‘Resources’
‘DistByConnID’ 0
‘INTERVAL’ ‘Sliding’ (2)
‘SUBJECT’ ‘DNAction’ (0)
‘TM_LENGTH’ 600
‘CATEGORY’ ‘ExpectedWaitTime’ (33)
‘DYNAMIC_TIME_PROFILE’ ‘600:2’
‘DYNAMIC_FILTER’ ‘DNIS!= “”’
‘MainMask’ all actions clear except for
‘CallWait’ (9)
‘CallReleased’ (50)
‘CallMissed’ (51)
‘ACWCompleted’ (52)
‘ACWMissed’ (53)
‘AgentLogin’ (54)
‘AgentActive’ (55)
‘AgentReady’ (56)
‘RelMask’ all actions clear except for
‘CallEntered’ (10)

2016-02-19 19:17:21.373> Client: Sending message to cpms_P(28)
2016-02-19 19:17:21.373> Client: Message ‘StatOpened’ [stats:ba1cca5290728c4e80a4ac7a7dd7e2a7]
‘LONG_VALUE’ 0
‘TM_LENGTH’ 0
‘TM_SERVER’ 1455877041
‘USER_REQ_ID’ -1
‘REQ_ID’ 123