Highlighted
lionfish Absent Member.
Absent Member.
1637 views

How to update categories in a contact item?

I am trying to update the category field in Contact using modifyItemRequest.
and got the error like this:

Status Code:59905
Description:Bad parameter passed to a NCSP function


Following are the request and the response.

Request:
[HTML]<?xml version="1.0" encoding="utf-8"?>
<modifyItemRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<id xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">49F08F8F.TBN5DOM1.TBN5PO1.104.1626475.1.14C.1@56:49366790.TBN5DOM1.TBN5PO1.104.1626475.1.3.1@53</id>
<updates xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<delete xsi:type="Contact" xmlns="http://schemas.novell.com/2005/01/GroupWise/types" />
<update xsi:type="Contact" xmlns="http://schemas.novell.com/2005/01/GroupWise/types">
<categories primary="49F08FA3.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D3.1@12">
<category>49F08FA3.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D3.1@12</category>
<category>49F08FA4.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D4.1@12</category>
<category>49F08FA5.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D5.1@12</category>
</categories>
<fullName>
<displayName>X5K6T44GZzI3ioKosXIn3a861g2JGfAbPyvsQdNJZuwGS2N8 NIBkuQMZZppYem2qaO3KZueUICLYWtp6v8ObQjVR9Q7Kp6k6LEuTnEg2WlXzub78gwBLQl8dO90fHl7e06FotloytiqSfVf9W1YkUyUg9FIMKNwZSLbPyvvlEiCvNE3n5Mb9iYhiQ1btVShkuQh8FHq2</displayName>
<firstName>X5K6T44GZzI3ioKosXIn3a861g2JGfAbPyvsQdNJZuwGS2N8</firstName>
<lastName>NIBkuQMZZppYem2qaO3KZueUICLYWtp6v8ObQjVR9Q7Kp6k6LEuTnEg2WlXzub78gwBLQl8dO90fHl7e06FotloytiqSfVf9W1YkUyUg9FIMKNwZSLbPyvvlEiCvNE3n5Mb9iYhiQ1btVShkuQh8FHq2</lastName>
</fullName>
<emailList primary="iVvw0ta5FlLVyD6kJtufYStcqZaByb7E5vkqVbkbH9ZgU4KcnbwRoBflgoFnzP1B18ESJjf91zsvAskfeFgmTU8KQ67XrUC5@bbapps.sqm.testnet.rim.net">
<email>iVvw0ta5FlLVyD6kJtufYStcqZaByb7E5vkqVbkbH9ZgU4KcnbwRoBflgoFnzP1B18ESJjf91zsvAskfeFgmTU8KQ67XrUC5@bbapps.sqm.testnet.rim.net</email>
</emailList>
<phoneList>
<phone type="Fax">(JMl)NRX-0WVG</phone>
<phone type="Office">(uSD)rfj-aJUO</phone>
<phone type="Home">(1ee)xm7-Yjhc</phone>
<phone type="Mobile">(nEQ)hGm-ZhIk</phone>
<phone type="Pager">(JnS)GDM-fnBL</phone>
</phoneList>
<addressList>
<address type="Office">
<streetAddress>DYGtgElJTuy52fP7W84FcEkekb6tEObCInf4iI4hHpY9yQIcjrXfc9N4zORAw32VC452hvMP7M00lLTlBotDyXdSGuKF3WwY9ERXQ67J5IKCBy8ej0UHkFTHiaZxt4ZzU6Jd6d9FgczlS9gqt2MUpI7VDOp2tRLjeoBaLJlkhEuPxt33c8jxQGHcZivojxYPrKKnf56f8cRj</streetAddress>
<city>VAWB</city>
<state>BfYyEHlWtDaqD7d3BvLpvBmET5Zt9DvaH9OxTtDVWc8d1FwP3o73H1nU0Npar9Hh2moBqLV8DQoDYTb1bV1lMBnoAZKULYE9xoy3uWSIEnam6Q5H0JHBHrmyFan</state>
<postalCode>DNJEMFANXWLGCYHIK07X4CJX0UJYTWEEJ8PS</postalCode>
<country>OOq0pjKFTxN3e2o6iqLLb01jyTPRWllFF3tgyY</country>
</address>
<address type="Home">
<streetAddress>KpFHm740QqM543RcVES9VsiRkl3NXLGiJMbijJrS4c5MTRn7K4QEFzfy81RCJAlQ2PsgZGnb4kPv7AcGhDpdDR8Eh0LEciuppEvHs47A4N24A5MUzSRVOkR1R3gcD93M7aisj0tKoIvi4lCHd4YNIOaq</streetAddress>
<city>W7vozqsIxCgNLyvKoDB1t4XecntmQKVdAIUpCBeaiOQUpe3ih5FkfiuA6DhcX3eGlj3VMxb5ktVuVdgayTUR9Mbr2SCfPd9UBtuMraB6</city>
<state>TmQs6oBCngPsSgNT0dUeZYyUBYFYpNwFat9kE5PAiiAIaH5AaDemcpXwtClW8Q1jIZcoCQRoWredgQQqhBC0obtHYb6d1iXYkZLhV0TBitQJShUq9jZnz2nuL</state>
<postalCode>UD2J6HIN23EINBLB8ZWQCT</postalCode>
<country>OMNy1CBqtoEu7XxFiSa3QxTE3r9K2urOVyZ70GsBOQK53a9jqOrMaH9qFEMHXdFzYEtK4qRHQ8</country>
</address>
</addressList>
<officeInfo>
<title>MLURpifJPoohjJfmMpmuMptnIlDMsilybNiVVNWweQqEWlIcEbXoYmlPDRkmoaFSmtqIIRkeCGeQlhGGCGVroXepqYgwZTWUyAGMuUHLQgVnxQeCRbWpzKcoMSSNFsCQQuiWQIEVIkFxHuRQBHJqYEJcuYTBtIAPVHprZYkLQXwVUWdUqsxAJgPLYXZaGZMDjyCFnHryQYpkfSeULaYmiknUAdEHCemqOuMguznrifBSaCNdsHwVQWmesEdSvbCNAnZPfPJUSGAoAKPSckVRtrQXykLveeurazrTLjKbhkZanAwtaakBmzArGsscsQKYvUuIkbohruPwHecsmvqUzVEbFJYnBqDBtHXQarbkLaWhHZWAaZeEkGCQjNUyBSzrDntCaxAVQseyydxGfhuXbGwMQHFUlkTWOloxVxExulLFeVPkKiYjAvWojsLkPDYYoTsDPuDonQqgaAomeEdPByesdqGCjUkJLPYgOORCSDmBWsxNUYZstOFIaTpepDdmJAfZTpLxpsNWcnzgZArgqvFfcHZdpQzKvCxBJUqYKiIbERcBMkWyVzgAedqDlMLFwQPWiQGsrQQzkFNqLbGnQRZTPwMNgiWymzHKYTvtwKxiKecsEGJvRIHQdoaeTOlxALBUyKEszARMDAZfWzaoUYCJAmbmguouSesjTFBczXoyBAnwkucQxfhYr</title>
<website>http://www.rim.com/MKCOvh3I5mdg3JCglrNqjeLW70q7ybcElqPMvyrAnPFZC2fdq2WrwCFhGCO1cfLUzZmZiCv2afZn8HuZ5IhqgsriXDqKzng1LYbdkrcuVxGGhWHc</website>
</officeInfo>
</update>
</updates>
</modifyItemRequest>[/HTML]

[HTML]<?xml version="1.0" encoding="utf-8"?>
<modifyItemResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<status xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<code xmlns="http://schemas.novell.com/2005/01/GroupWise/types">59905</code>
<description xmlns="http://schemas.novell.com/2005/01/GroupWise/types">Bad parameter passed to a NCSP function</description>
</status>
</modifyItemResponse>[/HTML]
Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: How to update categories in a contact item?

You can only add or delete categories.
But, that is not what is causing your problem.
The code was designed to only send the changes
not the whole object.

The categories are not what is causing the error.

You will have to send the individual elements to
see what is causing the error.

Then let me know what element is causing the error
and I can see if I can do anything about the problem.

Preston

>>> On Thursday, April 23, 2009 at 2:16 PM,

lionfish<lionfish@no-mx.forums.novell.com> wrote:

> I am trying to update the category field in Contact using
> modifyItemRequest.
> and got the error like this:
>
>
> Code:
> --------------------
> Status Code:59905
> Description:Bad parameter passed to a NCSP function
> --------------------
>
>
> Following are the request and the response.
>
> REQUEST:
> <?xml version="1.0" encoding="utf-8"?>
> <modifyItemRequest
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <id
>

xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">49F08F8F.TBN5DOM
1
>

..TBN5PO1.104.1626475.1.14C.1@56:49366790.TBN5DOM1.TBN5PO1.104.1626475.1.3.1@
5
> 3</id>
> <updates
> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <delete xsi:type="Contact"
> xmlns="http://schemas.novell.com/2005/01/GroupWise/types" />
> <update xsi:type="Contact"
> xmlns="http://schemas.novell.com/2005/01/GroupWise/types">
> <categories
> primary="49F08FA3.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D3.1@12">
>
> <category>49F08FA3.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D3.1@12</category>
>
> <category>49F08FA4.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D4.1@12</category>
>
> <category>49F08FA5.TBN5DOM1.TBN5PO1.100.1626475.1.1B7D5.1@12</category>
> </categories>
> <fullName>
> <displayName>X5K6T44GZzI3ioKosXIn3a861g2JGfAbPyvsQdNJZuwGS2N8
>

NIBkuQMZZppYem2qaO3KZueUICLYWtp6v8ObQjVR9Q7Kp6k6LEuTnEg2WlXzub78gwBLQl8dO90f

>

Hl7e06FotloytiqSfVf9W1YkUyUg9FIMKNwZSLbPyvvlEiCvNE3n5Mb9iYhiQ1btVShkuQh8FHq2
</
> displayName>
>
> <firstName>X5K6T44GZzI3ioKosXIn3a861g2JGfAbPyvsQdNJZuwGS2N8</firstName>
>
>

<lastName>NIBkuQMZZppYem2qaO3KZueUICLYWtp6v8ObQjVR9Q7Kp6k6LEuTnEg2WlXzub78gw
BL
>

Ql8dO90fHl7e06FotloytiqSfVf9W1YkUyUg9FIMKNwZSLbPyvvlEiCvNE3n5Mb9iYhiQ1btVShk
u
> Qh8FHq2</lastName>
> </fullName>
> <emailList
>

primary="iVvw0ta5FlLVyD6kJtufYStcqZaByb7E5vkqVbkbH9ZgU4KcnbwRoBflgoFnzP1B18E

> SJjf91zsvAskfeFgmTU8KQ67XrUC5@bbapps.sqm.testnet.rim.net">
>
>

<email>iVvw0ta5FlLVyD6kJtufYStcqZaByb7E5vkqVbkbH9ZgU4KcnbwRoBflgoFnzP1B18ESJ
jf
> 91zsvAskfeFgmTU8KQ67XrUC5@bbapps.sqm.testnet.rim.net</email>
> </emailList>
> <phoneList>
> <phone type="Fax">(JMl)NRX-0WVG</phone>
> <phone type="Office">(uSD)rfj-aJUO</phone>
> <phone type="Home">(1ee)xm7-Yjhc</phone>
> <phone type="Mobile">(nEQ)hGm-ZhIk</phone>
> <phone type="Pager">(JnS)GDM-fnBL</phone>
> </phoneList>
> <addressList>
> <address type="Office">
>
>

<streetAddress>DYGtgElJTuy52fP7W84FcEkekb6tEObCInf4iI4hHpY9yQIcjrXfc9N4zORAw
32
>

VC452hvMP7M00lLTlBotDyXdSGuKF3WwY9ERXQ67J5IKCBy8ej0UHkFTHiaZxt4ZzU6Jd6d9Fgcz
l
>

S9gqt2MUpI7VDOp2tRLjeoBaLJlkhEuPxt33c8jxQGHcZivojxYPrKKnf56f8cRj</streetAddr
es
> s>
> <city>VAWB</city>
>
>

<state>BfYyEHlWtDaqD7d3BvLpvBmET5Zt9DvaH9OxTtDVWc8d1FwP3o73H1nU0Npar9Hh2moBq
LV
> 8DQoDYTb1bV1lMBnoAZKULYE9xoy3uWSIEnam6Q5H0JHBHrmyFan</state>
>
> <postalCode>DNJEMFANXWLGCYHIK07X4CJX0UJYTWEEJ8PS</postalCode>
> <country>OOq0pjKFTxN3e2o6iqLLb01jyTPRWllFF3tgyY</country>
> </address>
> <address type="Home">
>
>

<streetAddress>KpFHm740QqM543RcVES9VsiRkl3NXLGiJMbijJrS4c5MTRn7K4QEFzfy81RCJ
Al
>

Q2PsgZGnb4kPv7AcGhDpdDR8Eh0LEciuppEvHs47A4N24A5MUzSRVOkR1R3gcD93M7aisj0tKoIv
i
> 4lCHd4YNIOaq</streetAddress>
>
>

<city>W7vozqsIxCgNLyvKoDB1t4XecntmQKVdAIUpCBeaiOQUpe3ih5FkfiuA6DhcX3eGlj3VMx
b5
> ktVuVdgayTUR9Mbr2SCfPd9UBtuMraB6</city>
>
>

<state>TmQs6oBCngPsSgNT0dUeZYyUBYFYpNwFat9kE5PAiiAIaH5AaDemcpXwtClW8Q1jIZcoC
QR
> oWredgQQqhBC0obtHYb6d1iXYkZLhV0TBitQJShUq9jZnz2nuL</state>
> <postalCode>UD2J6HIN23EINBLB8ZWQCT</postalCode>
>
>

<country>OMNy1CBqtoEu7XxFiSa3QxTE3r9K2urOVyZ70GsBOQK53a9jqOrMaH9qFEMHXdFzYEt
K4
> qRHQ8</country>
> </address>
> </addressList>
> <officeInfo>
>
>

<title>MLURpifJPoohjJfmMpmuMptnIlDMsilybNiVVNWweQqEWlIcEbXoYmlPDRkmoaFSmtqII
Rk
>

eCGeQlhGGCGVroXepqYgwZTWUyAGMuUHLQgVnxQeCRbWpzKcoMSSNFsCQQuiWQIEVIkFxHuRQBHJ
q
>

YEJcuYTBtIAPVHprZYkLQXwVUWdUqsxAJgPLYXZaGZMDjyCFnHryQYpkfSeULaYmiknUAdEHCemq
O
>

uMguznrifBSaCNdsHwVQWmesEdSvbCNAnZPfPJUSGAoAKPSckVRtrQXykLveeurazrTLjKbhkZan
A
>

wtaakBmzArGsscsQKYvUuIkbohruPwHecsmvqUzVEbFJYnBqDBtHXQarbkLaWhHZWAaZeEkGCQjN
U
>

yBSzrDntCaxAVQseyydxGfhuXbGwMQHFUlkTWOloxVxExulLFeVPkKiYjAvWojsLkPDYYoTsDPuD
o
>

nQqgaAomeEdPByesdqGCjUkJLPYgOORCSDmBWsxNUYZstOFIaTpepDdmJAfZTpLxpsNWcnzgZArg
q
>

vFfcHZdpQzKvCxBJUqYKiIbERcBMkWyVzgAedqDlMLFwQPWiQGsrQQzkFNqLbGnQRZTPwMNgiWym
z
>

HKYTvtwKxiKecsEGJvRIHQdoaeTOlxALBUyKEszARMDAZfWzaoUYCJAmbmguouSesjTFBczXoyBA
n
> wkucQxfhYr</title>
>
>

<website>http://www.rim.com/MKCOvh3I5mdg3JCglrNqjeLW70q7ybcElqPMvyrAnPFZC2fd
q2
> WrwCFhGCO1cfLUzZmZiCv2afZn8HuZ5IhqgsriXDqKzng1LYbdkrcuVxGGhWHc</website>
> </officeInfo>
> </update>
> </updates>
> </modifyItemRequest>
>
> <?xml version="1.0" encoding="utf-8"?>
> <modifyItemResponse
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <status xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <code
> xmlns="http://schemas.novell.com/2005/01/GroupWise/types">59905</code>
> <description
> xmlns="http://schemas.novell.com/2005/01/GroupWise/types">Bad parameter
> passed to a NCSP function</description>
> </status>
> </modifyItemResponse>

0 Likes
jayv21 Absent Member.
Absent Member.

Re: How to update categories in a contact item?

I am doing this same thing and it works fine. It will always return the 59905 error code and this a problem on Novell's side. It should still update the contact information, just ignore the error. I did have to put the latest hot fixes on the server for Groupwise though in order for it to work.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.