Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Customize Error when failing to load an XML document

$
0
0
When I attempt to load an XML document such as
xmlDoc.Load('\\Server\Shared\NavData_Public\Testing\' + cuCPUtils.UserBatch() + 'BOT2.xml') sometimes it may error because the document isn't always XML friendly. I see an error like
Microsoft Dynamics NAV

This message is for C/AL programmers: A call to System.Xml.XmlDocument.Load failed with this message: Unexpected end tag. Line 2, position 3.
OK

I thought you'd be able to do something like

IF xmlDoc.Load('\\Server\Shared\NavData_Public\Testing\' + cuCPUtils.UserBatch() + 'BOT2.xml') TRUE THEN BEGIN but this is void. Is there any other way to display my own message when this occurs?

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>