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
"[SOLVED] Using Macro in ReadDatabase connection"
JEdward
RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn
Answers
yes, you can.
Regards,
Marco
I get an error when I try this. It says "Cannot find connection" and then gives the name of the connection that I passed with the Macro (this is exactly the same as the named connection on my setup). I can see the Macro has passed the right value, but for some reason it isn't enough for RapidMiner to recognise the connection name.
Using RapidMiner 5.3.
It seems that if I generate the Macro within the process using SetMacro it works, but if I pass it to the process via the context it doesn't.
Still investigating to find out why, but going to assume it's something I did with the setup.
One of the parameter lines in my XML disappeared for a Write Database operator,
but I was able to paste in: <parameter key="connection" value="%{DBConnectionName}"/> which worked fine.
It was working for Read, Write and Update Database in my process, RM version 6.0.008.
If it is still not working from the Context input you may be able to use Generate Macro and have the the value linked to the Macro in the Context.