function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

error while using create call in API

hi all
i am trying to create contacts in sandbox using apex api.(using java code) the code works fine until it inserts 4680 contacts.
but later it throws a remote exception
the error occurs at this statement: saveResults = binding.create(sObjects)
the same java code works fine if i use another sandbox.
following is the error:

nested exception is: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character

please suggest any solution to this.
thanks in advance.


There is a range of characters that are invalid XML values, just like the message says. The acceptable characters are hex 9, 10, 13, and anything > 31. Remove all other characters.


thanks Rick... that solved my problem