The updateMetadata() function modifies the metadata object of a DataPackage
and so must remove and re-insert the metadata DataObject into the package after
modifying it. The replaceMember() method is used to do this, and was incorrectly
calling removeMember(), resulting in the relationships for the metadata object
to be removed.
The
updateMetadata()
function modifies the metadata object of a DataPackage and so must remove and re-insert the metadata DataObject into the package after modifying it. ThereplaceMember()
method is used to do this, and was incorrectly callingremoveMember()
, resulting in the relationships for the metadata object to be removed.