Hello,
First of all, thank you for making this component available to the community.
This component is being used in one of our clients to process XML files whose contents we do not control. Sometimes, these files contain XML code which can not be correctly loaded by the XmlRecords extension and, in these cases, an error is thrown with "unable to load xml document:" followed by the XML code itself.
The issue we are facing is that the XML code contains sensitive information and should not be displayed in Service Center's error logs. Of course, we are able to control the error logging on our modules by (for example) setting the exception handler's "Log Error" property to "No". However, we are unable to control the error logging of the extension itself.
Would you be so kind as to remove the XML code from the string returned when an error is thrown? This would really make a difference for our client (and probably for many others operating in data-sensitive industries).
Thank you,
Rui
Hello Rui,
Version 1.6.15 has a ShowXMLInLogs input in the XmlToRecordList action that can be used to control the logging behaviour.
It's optional and by default the value is True, so all you have to do is set it to False and the error log will be sanitized. Let me know if it works as expected.
Sorry, I just noticed this thread. I think this feature makes sense - but as this is a very old component used in a lot of places, I'm not keen on changing its default behaviour.
I'll implement a boolean input in the component actions in order to control whether the XML input is outputted with the thrown error: I think this should suit your needs, while maintaining behaviour for others.
Thank you for your interest in the component, I'll let you know when this is available.
Hello Afonso,
Yes, that would be an excelent solution!
Thank you for your feedback,
Hi Afonso,
Thank you for your update! I will let you know as soon as I am able to test it.
Regards,