I have several Insight objects set up, and I’m trying to import my data into them. One is called “Environments” and another is called “Nodes”. An environment can be associated with multiple nodes, so I created a multiple select field which references nodes. I can add them manually without issue. However, when I try to import them from a CSV, it doesn’t add the node values to environments.
Here’s the CSV format:
Environment Name, Designator
Abc environment, node 1||node 2||node 3
And here’s my IQL statement:
Designator = ${Designator}
Based on another answer to a very similar sounding problem, I also tried the following:
Department IN (${Department${0}})
And that successfully imported one node for each environment, but not all of them. I tried removing the ${0} and that just brought me back to no nodes at all.
If I change the field type I’m importing this into to a simple select field (not an object reference) this import works flawlessly. But, I need it to be a reference.
For even more context, I have another object “POC” which also references my “Node” object, but it’s a 1:1 relationship. I was able to execute an import with no issues there. It seems to only be when I’m trying to import multiple object references to a single field.
For multiple references, use double pipes "||" as the concatenation character in the CSV file. Then, when you set up the import and edit the mapping, use the same double pipes in the Concatenator column.
Keep in mind, that the column "Data Source Field" is for the headers in the CSV file and it is the value referenced in the AQL along with the object attribute:
<object attribute> IN (${<data source field>})
Here is the associated csv file:
So, in essence, if you need to have multiple entries into an object that can hold more than 1 object, then make sure that the column for that single object has all the selections separated by the double pipe "||".
I'm trying something similar without success.
I'm importing multiple disk to servers.
The problem is There are hundreds of disks wih the same name (C: or /) and it imports all of this per host.
How do I tell to use the VM name to filter the disk each server has?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @John Doe . Can you send a screenshot to verify your issue? With that being said, it sounds like your identifier is using the wrong attribute. Go and check your import settings for this object by going into schema configuration > import > edit mapping > edit attributes mapping. Look for the attribute with a check box in the identifier column
In my pic example, all items with a unique 'key' attribute will be separated into a unique object (record). If I changed it to Address, then all unique addresses will be a unique object when I import the objects. Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've solved the multiple disks issue changing "Cardinality" to "Unlimited".
But now I have another issue.
I have an object type called Virtual Guest (it scans VM from ESXi hosts). As Discovery lacks to get disks information from VMWare i have to add it manually from a .CSV file.
So I've created an object type called "Disk", with all the info I need, like:
But now, I want the disks reference to the Virtual Guest so when I go to a Virtual Guest machine and i see all the information for a specific machine:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking for this answer as well. I, too, am running into the same issue where it is not adding the additional references. I only get the first one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works for me exactly with your import phrase.
But I once had the same problem: Then I forgot to change the destination attribute (the first "Department" in your case) with Cardinality type to "Unlimited" (screenshot only in German).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the tip, unfortunately I had already checked “unlimited” so that’s not it either :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.