ople[XmlDoc].CopyRowset([RowSet], "", "") Ends Session
PeopleTools Version: 8.53
The following code terminates the session when it reaches the &CopyRowSet step. No error is written to the trace log - the session just "ends"
Local Rowset &installationRS = CreateRowset(Record.INSTALLATION);
&installationRS.Fill("WHERE 1 = 1");
Local XmlDoc &xmldoc = CreateXmlDoc("");
try
Local boolean &ret = &xmldoc.CopyRowset(&installationRS, "", "");
WriteMessage("Return " | &ret);
catch Exception &ex1
WriteMessage("Failure");
end-try;
The Documentation indicates that this should work:
If MessageName is not specified, this function makes the best possible XML structure given the passed rowset. Not passing the message name should only occur when using a nonrowset-based message or when using a standalone rowset.
If i instead write the rowset to an xml file, and then load that XML file as a use ParseXmlFromURL or as a string and then ParseXMLString, it works fine.