You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Updating Custom Field DateTime in Answer - There was an error generating XML document

Accepted answer
11
Views
4
Comments
edited Jun 8, 2022 12:00PM in General Technical Discussions 4 comments

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!