Adventures in Troubleshooting - Hilary Stoupa

InfoPath Dev

Hilary Stoupa

Adventures in Troubleshooting

This is going to be short and sweet. The other day I ran into an issue that made me aware of a little ... inconsistency .... in Visual Studio that I'd like to make sure everyone else is aware of to.

I have a table that looks like this:

I have a form template with a data connection to that table. 

I have a bit of code that looks like this:
Code snippet

What you can't see is that I have a trailing space in my Orders table for PO Number def-456. And if you look in the XML visualizer for the data source, you won't see it there, either....
Xml Visualizer

Opening the Text visualizer for the OuterXml for the nav variable tells a different story:
Text visualizer

So, if you are troubleshooting some code, trying to figure out why you aren't getting back a node that you are just sure should be in your data source... take a minute to look at both visualizers. It may save you some time and at least a bit of your sanity.


No Comments

About Hilary Stoupa

I wandered into development after working as a business process analyst for a global manufacturing company. I create InfoPath solutions for our clients as well as work as a developer on company tools that extend InfoPath. I've also been instrumental in creating the InfoPath Master Class training provided by Qdabra.

Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.