Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Masahiko on May 12, 2009, 11:17:09 AM
-
Hi all,
It doesn't understand though the error went out.
RequestReadObject has succeeded.
Please teach someone.
--- ErrLog ---------------------------
20:01:56.046 Trc 24211 Object [CfgPersonUpdate], DBID [0] is to be changed by client, type [SCE], name: [default], user: [default]
20:01:56.046 Trc 24218 Transaction [35] is sent on execution
20:01:56.046 Trc 24217 Transaction [35] is rolled back
MSGCFG_ERROR
attr: IATRCFG_ERRORCODE value: 10
attr: SATRCFG_DESCRIPTION value: "No object found for the delta [CfgPersonUpdate], DBID [0]"
attr: IATRCFG_REQUESTID value: 3
20:01:56.046 Std 23500 Configuration Server Error : Error [CFGObjectNotFound], object [], property [Unknown] Description No object found for the delta [CfgPersonUpdate], DBID [0]
--- soruce code [C#]---------------------
string strDoc = "<?xml version=\"1.0\" encoding=\"utf-8\"?><ConfData><CfgPerson><DBID value=\"105\" /><tenantDBID value=\"101\" /><lastName value=\"Doe3\" /><firstName value=\"John5\" /><employeeID value=\"1223242356789\" /><userName value=\"jd3\" /><isAgent value=\"2\" /><CfgAgentInfo><placeDBID value=\"0\" /><capacityRuleDBID value=\"0\" /></CfgAgentInfo><isAdmin value=\"1\" /><state value=\"1\" /></CfgPerson></ConfData>";
doc.LoadXml(strDoc);
RequestUpdateObject req =
RequestUpdateObject.Create(
(int)ConfServerObjectType.Person,
doc
);
IMessage msg = mCfgProtocol.Request(req);
-
Do we need to provide person DBID (DBID value=\"105\" /) while creating or let config server/db assign it?
Thanks.
-
Thank you for the answer.
When explaining in detail
I want to change firstName of ID(DBID=105) that is already.
-----Information that changes ----------------
<firstName value="John" /> → <firstName value="John5" />
-----DBID=105 DATA XML-------------
<?xml version="1.0" encoding="UTF-8"?>
<ConfData>
<CfgPerson>
<DBID value="105" />
<tenantDBID value="101" />
<lastName value="Doe3" />
<firstName value="John" />
<employeeID value="1223242356789" />
<userName value="jd3" />
<isAgent value="2" />
<CfgAgentInfo>
<placeDBID value="0" />
<capacityRuleDBID value="0" />
</CfgAgentInfo>
<isAdmin value="1" />
<state value="1" />
</CfgPerson>
</ConfData>
-
I am sorry, I got it wrong (thought that was to create ???)
For updating first name try xml below-
<?xml version="1.0" encoding="UTF-8"?>
<ConfData>
<CfgDeltaPerson>
<CfgPerson>
<DBID value="105" />
<firstName value="John5" />
</CfgPerson>
</CfgDeltaPerson>
</ConfData>
Delta tag is the key.
Thanks.
-
To Mr. SisB
It succeeded.
It did not know that Delta Tag was the key.
Thank you for Mr. SisB.
-
It is a question by the addition.
This time, it doesn't go well though it tries to do the skilllevel in Updete.
What XML do you only have to throw out?
It is a tried sample as follows.
My best regards.
---XML1----------
<?xml version="1.0" encoding="UTF-8"?>
<ConfData>
<CfgDeltaAgentInfo>
<CfgPerson>
<DBID value="101" />
<changedSkillLevels>
<CfgSkillLevel>
<skillDBID value="101" />
<level value="2" />
</CfgSkillLevel>
</changedSkillLevels>
<CfgAgentInfo>
</CfgAgentInfo>
</CfgPerson>
</CfgDeltaAgentInfo>
</ConfData>
---XML2
<?xml version="1.0" encoding="UTF-16"?>
<ConfData>
<CfgDeltaPerson>
<CfgPerson>
<DBID value="101" />
<CfgDeltaAgentInfo>
<CfgAgentInfo>
<changedSkillLevels>
<CfgSkillLevel>
<skillDBID value="101" />
<level value="1" />
</CfgSkillLevel>
</changedSkillLevels>
</CfgAgentInfo>
</CfgDeltaAgentInfo>
</CfgPerson>
</CfgDeltaPerson>
</ConfData>