This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I have built an r-macro to run like any of the predictive tools in the predictive suite. Only, when I pull my macro onto the canvas, it reads the file I was using to test the macro instead of the new data I'm trying to feed through. Can anyone tell if my macro input tool is wrong?
hi @jbh1128d1 the file you've attached is a yxwz - an analytic app, rather than a macro, which will have the yxmc extension. A macro requires a Macro Input interface tool to be able to read data from your workflow.
There are some great resources in Help> Sample Workflows on building macros, as well as a Live Training about building an R macro specifically.
hi @jbh1128d1 - when you run the macro as a workflow, what happens? I cannot run it, since I do not have your macro input template file. I get the error saying that cached meta data will be used instead. Do you get the same message? Try using a Text Input in its place?
hi @jbh1128d1 I noticed that in your Drop Down tools, you're using the option to list values from Fields from Connected tool (your macro input template). If you change that option to use Fields from Macro Input, it will display the values from the incoming data stream.
hi @jbh1128d1 in Action (23) you are selecting Update Value as your Action Type, with only "State_bucket" selected. If you change this to Update Select with multi-select ListBox. that will correctly populate your Select tool (like you did with Action (16) for your Spline variables).