How to resolve error with exporting to OD batch XML in Confirm

Products affected: Confirm

A user receives an error when attempting to use the Export to OD Batch XML option under the Other button on the Organisation screen.

An example of the error is as follows:

Exception has been thrown by the target of an invocation. 


As a workaround a customer tried this on one of their VDI terminals which uses Window 7 OS and this worked ok. The idea with VDI is that instead of users using applications on a Terminal Server or their PC they run an RDP or ICA session that connects to a virtual machine running Vista or Windows 7 on a server in the data centre (Windows 7 in the verified case). 
UPDATED:  April 21, 2017