<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[nxshell BulkImport image problems]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i'm currently working on a nxshell script to import a large number of nodes. This works fine so far, but I have a problem with set the image of the node.</p>
<pre><code>flags = NXCObjectCreationData.CF_DISABLE_NXCP
containerId = 2
name = "Node1"
ip = "0.0.0.0"
node = session.findObjectByName("Node2")

cd = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, name, containerId);
cd.setCreationFlags(flags);
cd.setPrimaryName(ip)
nodeId = session.createObject(cd)
session.setObjectManaged(nodeId, False)
print '"%s" created (IP: %s)' % (name, ip)

md = NXCObjectModificationData(nodeId)
md.setImage(node.image)
session.modifyObject(md)
</code></pre>
<pre><code>Traceback (most recent call last):
  File "&lt;stdin&gt;", line 13, in &lt;module&gt;
TypeError: setImage(): 1st arg can't be coerced to java.util.UUID
</code></pre>
<p dir="auto">The node i'm refering to has an image set and I can print the UUID.<br />
Any ideas why setting images is not working?</p>
]]></description><link>https://forum.netxms.org/topic/3887/nxshell-bulkimport-image-problems</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:36:07 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3887.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Jul 2015 14:52:09 GMT</pubDate><ttl>60</ttl></channel></rss>