Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Updating Custom Field DateTime in Answer - There was an error generating XML document (1 Comment)

$
0
0

Topic by Anna K

Content

I have to update a Custom Field with date on Answer using SOAP. Setting the date seems to be an issiue here.

The error that I have is

-        $exception    {"There was an error in serializing body of message UpdateRequest: 'There was an error generating the XML document.'.  Please see InnerException for more details."}    System.Exception {System.ServiceModel.CommunicationException}

and innerException is

-        base    {"Invalid or missing value of the choice identifier 'ItemsElementName' of type 'AnswerVersionRibbonDeploy.ver_AddIn.RNT_SOAP.ItemsChoiceType[]'."}    System.Exception {System.InvalidOperationException}

The code is below. I have also some integer Custom Fields, which are set before the DateTime and they are working fine. Is there any specific way I have to set the DateTime Field?

 

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles