Article ID: 129766, created on Oct 31, 2016, last review on Oct 31, 2016

  • Applies to:
  • Business Automation

Symptoms

An API request is sent, one of the parameter values passed has an ampersand symbol (&). API result is unexpected - the system considers the values as empty, e.g.:

parser error : xmlParseEntityRef: no name (for AccountAdd_API)
"Password cannot be empty" (for UserForVendorValidate_API)

Cause

Ampersand must be encoded when passed to xml, that is mentioned in the documentation.

Resolution

Use & instead of &.

Note, the other symbols, e.g. <, >,'," also must be encoded.

Search Words

ampersand

AccountAdd_API

&

UserForVendorValidate_API using &

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF