Author Topic: Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error  (Read 21136 times)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
In this case, yes..support never help you with custom code. You have to develop it yourself as clearly as possible ;-)

Offline tbremard

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
yes , this is my own source code.

there is a problem of course in my source code, the point is that api have all requested parameters, and servers ack all message without problem.

i initiated my code by reversing the logs of servers in verbose all status.
and i give parameters which should be ok and there is problem....
my source code is useless because in the logs i give you see all the requests with all the parameters.


problem is not to review source code problem is that i set parameters as required and system doesn't work.
« Last Edit: April 30, 2013, 08:14:25 AM by tbremard »

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
I cannot agree, in case there is a lot of own integration/developing applications, which works with eServices layer succesfully ( we have develop similiar app too) and I guess, that most of developers proceed same step by step or using same doc.It is very important to know how Genesys exactly works and how to achieve your needs, without these knowledge is not possible to develop "good" application

Offline tbremard

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
I have some news from Genesys, but not the answer ...

[quote]
De : support@genesyslab.co.uk [mailto:support@genesyslab.co.uk]
Envoyé : mercredi 1 mai 2013 15:11
À : tbremard@ceritek.com
Objet : SR# 602522 - eservice sendmail with psdk

Dear Thierry,
I've made Tier 3 request on your problem.
Best Regards, 
Roman
Genesys Technical Support
http://genesyslab.com/support

[/quote]

Offline tbremard

  • Newbie
  • *
  • Posts: 14
  • Karma: 0

I obtained a correct answer from genesys which allow me to sendmail now:
[quote]
De : support@genesyslab.co.uk [mailto:support@genesyslab.co.uk]
Envoyé : mardi 21 mai 2013 13:01
À : tbremard@ceritek.com
Objet : Notification: SR# 602522 requires your update - "eservice sendmail with psdk"

Dear Thierry,

We need your help to resolve your Service Request (SR) as quickly as possible. We are waiting for information from you regarding SR# 602522. The information that we were expecting from you is as follows:

1-5CAOQP: Dear Thierry,

Update from Tier 3:

Engineering has  identified the problem, It's incorrectly created new outbound email interaction - missing Subtype Attribute with corresponding field Interaction.SubtypeID = NULL.

For the customer's case it should be I guess "OutboundNew".

So the customer should take care about this attribute/field and populate that in their application/desktop for new created  outbound email.

Developers are going to extend checking the fields on possible "NULL" in next ESJ/UCS versions.

That problem was classified as "Minor" and will not be implemented before next  GA release.
Best Regards,
Roman Kolosha
Genesys Technical Support
http://genesyslab.com/support

[/quote]

Offline tbremard

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
now this is the logs of PSDK which allow to see the requests needed with all paramters set::

[quote]

PID:14A8, TID:000A [bdo.dll 1.0.0.2] Query object type: CFGTenant
Query filters:
  Key: name, Value: Environment

PID:14A8, TID:000A [bdo.dll 1.0.0.2] next time you should call wcb_Instanciate() before !
PID:14A8, TID:000A [bdo.dll 1.0.0.2] interaction server: wcb_Instanciate(): ok
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Connect('tcp://demosrv.genesyslab.com:4420')
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: strUri: tcp://demosrv.genesyslab.com:4420
strClientName: SIP_Server_Place3
tenantId: 1
strPlaceName: Place_iWD
strPerson: demo




PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Connect(): Success
PID:14A8, TID:000C [bdo.dll 1.0.0.2] ISrvAccs.cs:  ---  proto_Opened ---
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestAgentLogin' ('135')
message attributes:
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: SubmitMail(True)
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestSubmit' ('101')
message attributes:
attr_itx_subtype [str] = "OutboundNew"
attr_media_type [str] = "email"
attr_queue [str] = "E-Mail Out"
attr_itx_type [str] = "Outbound"
attr_tenant_id [int] = 1
attr_ref_id [int] = 3

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:

PID:14A8, TID:0010 [bdo.dll 1.0.0.2]  reaction is removed
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:14A8, TID:000A [bdo.dll 1.0.0.2] StatSrv: isConnected(): True
PID:14A8, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'RequestInsertInteraction' ('17')
message attributes:
InteractionAttributes =
EntityTypeId=EmailOut
Id=03717D2HGY2G8004
MediaTypeId=email
Status=Pending
Subject=e-mail subject by Ceritek
TenantId=1
TypeId=Outbound
SubtypeId=OutboundNew

EntityAttributes =
FromAddress=account@premier.com
FromPersonal=Thierry Brémard
ReplyToAddress=account@premier.com
ToAddresses=jones@demosrv.genesyslab.com

InteractionContent =
Content=System.Byte[]
MimeType=text/html
StructuredText=<html>structured text <b>this is bold in html in StructuredText field <b><br><i>italic</i><br> dumping InteractionContent: <pre>
Content=System.Byte[]
MimeType=text/html
StructuredText=<html>structured text <b>this is bold in html in StructuredText field <b><br><i>italic</i><br> dumping InteractionContent:
StructTextMimeType=text/html
Text=This is the e-mail body.
</pre></html>
StructTextMimeType=text/html
Text=This is the e-mail body.

ReferenceId    = 1

PID:14A8, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'EventInsertInteraction' ('117')
message attributes:
InteractionId  = 03717D2HGY2G8004
ReferenceId    = 1

PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Itx_PlaceInQueue(03717D2HGY2G8004, E-Mail Out, False)
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestChangeProperties' ('103')
message attributes:
attr_itx_id [str] = "03717D2HGY2G8004"
attr_added_prop [bstr] = KVList:
'FromAddress' [str] = "account@premier.com"
'To' [str] = "jones@demosrv.genesyslab.com"
'EmailAddress' [str] = "jones@demosrv.genesyslab.com"
'Subject' [str] = "stark test"
'DispositionCode.Key' [str] = "DispositionCode"
'DispositionCode.Label' [str] = "Disposition Code"
'DispositionCodeValues.Processed' [str] = "Processed"
'DispositionCodeValues.NeedsFollowUp' [str] = "Needs Follow-Up"
'ContactId' [str] = "0001Ba5SW8PJ0027"
attr_ref_id [int] = 4

PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestPlaceInQueue' ('105')
message attributes:
attr_itx_id [str] = "03717D2HGY2G8004"
attr_queue [str] = "E-Mail Out"
attr_ref_id [int] = 5

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:

PID:14A8, TID:0010 [bdo.dll 1.0.0.2]  reaction is removed
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5

PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
[/quote]



my mail client indicates the folowing message source once received:
[quote]
Return-Path: account@premier.com
Received: from demosrv ([192.168.0.47])
by DEMOSRV
; Wed, 22 May 2013 10:06:34 +0300
Date: Wed, 22 May 2013 10:06:34 +0300 (EEST)
From: =?utf-8?Q?Thierry_Br=C3=A9mard?= <account@premier.com>
Reply-To: account@premier.com
To: jones@demosrv.genesyslab.com
Message-ID: <03717D2HGY2G8004@premier.com>
Subject: e-mail subject by Ceritek
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_31_1949006958.1369206394220"
X-Mailer: Genesys E-Mail 8.1.201.05

------=_Part_31_1949006958.1369206394220
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

This is the e-mail body.
------=_Part_31_1949006958.1369206394220
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>structured text <b>this is bold in html in StructuredText field <b><b=
r><i>italic</i><br> dumping InteractionContent: <pre>
Content=3DSystem.Byte[]
MimeType=3Dtext/html
StructuredText=3D<html>structured text <b>this is bold in html in Structure=
dText field <b><br><i>italic</i><br> dumping InteractionContent:=20
StructTextMimeType=3Dtext/html
Text=3DThis is the e-mail body.
</pre></html>
------=_Part_31_1949006958.1369206394220--

[/quote]

this is functionnal but not optimized, some part of code must be cleaned, but at least it works.

Thierry Brémard
tbremard@ceritek.com
« Last Edit: May 22, 2013, 08:18:38 AM by tbremard »

Offline tbremard

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
... my conclusion is that it takes more time to write all code to send mail than sending mail with the keyboard directly connected to smtp server !

I hope all interaction managing system has great value !