Hi,
Just in case anyone else gets stuck with this unhelpful message from Orion when triggering NCM configuration downloads with the Python SDK:
Could not cast or convert from System.String to System.Guid[] |
It's down to nodeId needing to be an array!
Some example code:
node_ids = []transfer_id = {}node_data = swis.query("SELECT NodeID FROM Cirrus.Nodes WHERE NodeCaption=@node", node=node)node_ids.append(node_data['results'][0]['NodeID'])orion_data = swis.invoke("Cirrus.ConfigArchive", "DownloadConfig", node_ids, "running")transfer_id['running'] = orion_data[0]