I have a BusinessObject that I need to export records and import records. I looked through your code in your XML data source example and it seems to work great for the exporting. The XML file looks perfect. My problem is with the importing, I pretty much copied the code from the example and I get an error of "Failed to convert parameter value from a String to a Guid".Dim
loDS As New DataSetloDS.ReadXml(loOpenFileDialog.FileName)
Dim loBusinessObject As New MyTypedBusinessObjectTry
loBusinessObject.CopyDataFrom(loDS.Tables(0), MicroFour.StrataFrame.Business.BusinessCloneDataType.ClearAndFillFromCompleteTable)
If loBusinessObject.MoveFirst = True ThenDoloBusinessObject.CurrentRow.SetAdded()
Loop While loBusinessObject.MoveNext()End IfloBusinessObject.Save()
When I stop before the save, the fields that have GUID types in them, have an error of "Specified cast is not valid".
Do I need to write a method to copy the data from this XML file into the Businessobject converting values to the types they need to be as they get copied in, or am I missing something in the copying?
Thanks,
Robin Giltner