The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Select attribute operator doesn't list attributes
udeshika_sewwan
Member Posts: 9 Learner III
in Help
Hi team,
I have a process that has a Read MongoDB operator, JSON to Data operator and a Select Attributes operator. Read MongoDB and JSON to Data operators execute as usual. But when I try to filter attributes using the Select Attributes operator it doesn't list any attribute to select. But if I use a Retrieve data operator instead of Read MongoDB, the Select Attributes operator works as usual. What may be reasons for this issue?
Thank you.
I have a process that has a Read MongoDB operator, JSON to Data operator and a Select Attributes operator. Read MongoDB and JSON to Data operators execute as usual. But when I try to filter attributes using the Select Attributes operator it doesn't list any attribute to select. But if I use a Retrieve data operator instead of Read MongoDB, the Select Attributes operator works as usual. What may be reasons for this issue?
Thank you.
0
Best Answers
-
Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 UnicornThis is a typically a metadata propagation problem. You can try to fix it by selecting "Synchronize Metadata with Real Data" option under the Process menu. If that doesn't work, you can simply type the names of the attributes directly into the right hand panel of Select Attributes and it should work.
5 -
M_Martin RapidMiner Certified Analyst, Member Posts: 125 UnicornHi: In addition to the good suggestion from @Telcontar120 , the following steps have (often) worked for me in the situation you describe:
1. Put a breakpoint after the JSON to Data operator (right click on it, and select the "Breakpoint After" option),
2. Click on your "Select Attributes" operator to select it, and then execute your process.
3. When your process hits the breakpoint above and halts, click on "Validate Process" on the Process Menu
4. Click on your "Select Attributes" operator again - and try to select the subset of operators you want.
If the above doesn't work, follow steps 1-3 again, and then
1. Click on your "Select Attributes" operator, right click on it and select the "Breakpoint After" option
2. Set the "Attribute filter type" to All
3. Start the process again - it will halt again after the "Select Attributes" operator tries to select all of the attributes in your data set.
Have all of your attributes been selected? If so, this is a good sign. You could then try running the process again from the beginning (but keep the breakpoint that kicks in after your "JSON to Data" operator - but this time set the "Attribute filter type" property on the "Select Attributes" operator to "Subset" and hopefully all of the attributes will appear in the left side of the attribute selection dialog - and you'll be able to select only the attributes you want.
I've also (sometimes!) been able to solve this problem by exiting and then re-starting RapidMiner and then deleting the "Select Attribute" operator that wasn't working as expected and dragging a new instance of "Select Attributes" on the canvas and hooking it up to other operators in the process - with the result that the new "Select Attributes" operator works as normal.
As a last resort, you could put a "Store" operator after your "JSON to Data" operator and store the data in your repository, and then retrieve it with a "Retrieve" operator - and then use "Select Attributes" to get the attributes you want. Storing and retrieving a data set will force a metadata refresh. Hope this helps, and best wishes, Michael Martin7