Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
Error_402_Format_Failure_in_web_service_
Error_402_Format_Failure_in_web_service_
Error 402 Format Failure in web service call


Description:

When executing a web service call where response format is set to XML when xml parser is not able to process a character, the web service call fails

Issue:

When executing a web service call, where the call is retrieving columns having long text, if the response format in the call is set to XML then the call fails with 402 error stating "FORMAT FAILURE". If we make the exact same call with response format set to JSON then , the web service call succeeds.


Image Modified


Cause:

The data that is being retrieved in the call contains some character that is not recognized or supported by xml parser.


For example, the XML parser is not able to parse the character and the call fails, if:

  • the web service call is retrieving data from the Details field of tickets

...

  • and

...

  • in the Details field, some tickets contain the vertical tab

...

  • character

...

  • .

Resolution:

There is no possible solution for this issue since these characters are not allowed in XML. The only work around is to use JSON as your response format.
 
TechId: TEC1470291

Keywords: Web services; web service calls