Skip to main content
Nintex Community Menu Bar

Ampersand getting encoded in SmartObject Update method

  • June 25, 2008
  • 4 replies
  • 20 views

Forum|alt.badge.img+3

I have an InfoPath form that uses a SmartObject update method, using a few text fields in the InfoPath form. One of the fields is for a URL, and when I put an ampersand (&) in the text field, e.g.


http://server/file.aspx?val1=x&val2=y


the ampersand gets replaced with the encoded value of & ---


http://server/file.aspx?val1=x&val2=y


Is there any way to prevent this from happening?  Note I am using the Dynamic SQL Service broker (not SmartBox).

4 replies

Forum|alt.badge.img+11
  • June 25, 2008
Are you sure it's not InfoPath that's doing it?  InfoPath stores all of the data you enter in an XML document.  Certain symbols like ampersands have special meaning in XML and must be esacaped before they can be inserted into the document. 

Forum|alt.badge.img+3
  • Author
  • June 25, 2008
Well, I'm only using InfoPath for the UI and calling the Update method of my SmartObject when I tab out of the text field.  I'm not actually storing any data in XML, only updating the SmartObject. It seems to me the problem lies in the web service or the SmartObject somewhere....

Forum|alt.badge.img+8
  • May 21, 2009
Have u resolved this error,,the infopath uses xml encode for special characters and that causes this problem..Please let me know if you have resolved this error

Forum|alt.badge.img+3
  • Author
  • May 21, 2009
It's been a long time, but I believe I ended up doing something different.  We didn't do much with this particular project, so I don't remember what approach we ended up taking.