The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
When I try to store a dataset on a remote server, I get the following error message. It seems that it is trying to add the attribute names into a metadata table that already contains them. How do I clear these metadata tables out?
Hi ccricha,
the Primary key in the Meta data tables contains the Attribute names which need to be unique in RapidMiner (and they definitely are in your RapidMiner object you want to store).
Nevertheless I suppose there are characters in these names which may not be correctly interpreted by your database.
Just for testing purposes, could you please try and use the Operator Rename by Generic Names to rename all attributes.
The resulting ExampleSet should look like 'att_1', 'att_2',....
Best,
Edin
You could try a Materialize Data right before you write it to the database BUT i'm not sure that's going to work 100%.
Hello,
Is it possible to attach the more verbose error from inside the log view for that process? You should be able to access it from clicking the log icon next to the completion times in your process scheduler.
This fuller log segment will give us an idea of the specific error
Sure, here is the full error from the log file.
SEVERE: Process failed: com.rapidminer.operator.UserError: Cannot store data in repository at entry '../data/model_table_test'. Reason: Cannot store example set in database as es_31: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK__es_31_me__1842C92D2CCBCF70'. Cannot insert duplicate key in object 'dbo.es_31_meta'. The duplicate key value is (STATUS)..Jul 19, 2017 12:56:02 PM <unknown> <unknown>SEVERE: Here: Process[1] (Process) subprocess 'Main Process' +- Retrieve sample_table[1] (Retrieve) +- prep table[1] (Subprocess) subprocess 'Nested Process' | +- Set Role[1] (Set Role) | +- Generate ID[1] (Generate ID) | +- Nominal to Text[1] (Nominal to Text) +- Multiply[1] (Multiply) +- Filter disk vars[1] (Select Attributes) +- Select id & desc[1] (Select Attributes) +- Token and Filter[1] (Process Documents from Data) subprocess 'Vector Creation' | +- Filter Tokens (by Content)[0] (Filter Tokens (by Content)) | +- Transform Cases[2000] (Transform Cases) | +- Remove xslt[2000] (Execute Script) | +- Tokenize[2000] (Tokenize) | +- Filter Tokens (by Length)[2000] (Filter Tokens (by Length)) | +- Filter junk out[2000] (Execute Script) +- Execute GenAttr[1] (Execute Process) +- Join[1] (Join) +- Generate Attributes[1] (Generate Attributes) +- Select Attributes[1] (Select Attributes) ==> +- store model_table[1] (Store)
It turns out that there were two attributes that contained the same name and it makes sense that these were causing a violation of the primary key constraint in the database. I have removed some unnecessary columns and it now works.
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…