Difference between revisions of "Error Messages/40826"
AManandhar (talk | contribs) |
(→Cause) |
||
Line 10: | Line 10: | ||
You cannot call the function [[RunConsoleProcess]] by entering it into an input of a variable. | You cannot call the function [[RunConsoleProcess]] by entering it into an input of a variable. | ||
+ | |||
+ | This limitation is imposed for security reasons. You don't want users of a model to be able to run arbitrary processes on your computer (these would have to be users of Analytica Power Player). Hence, Analytica doesn't allow calls to [[RunConsoleProcess]] to be evaluated directly from a node that a Player/Power Player user can change. | ||
+ | |||
+ | If you have an external process that you want your model to run when being used by an end-user, then make sure it is in a variable that does not have an input node. | ||
+ | |||
+ | You should always be somewhat security conscious. You could design a model that allows a Power Player end user to run arbitrary processes. For example: | ||
+ | |||
+ | Variable cmd { An variable with an input } | ||
+ | Variable RunIt := [[RunConsoleProcess]](cmd,...) | ||
+ | |||
+ | This would be highly non-recommended. You should keep control over what the cmd is being executed inside your model. | ||
= Remedies = | = Remedies = |
Revision as of 23:08, 4 February 2010
Error Message Examples
You cannot evaluate a call to RunConsoleProcess directly from an input variable. Variable CallProcess has an input node associated with it, so you cannot enter a call to RunConsoleProcess directly into the input of CallProcess.
Cause
You cannot call the function RunConsoleProcess from a variable with an input node.
You cannot call the function RunConsoleProcess by entering it into an input of a variable.
This limitation is imposed for security reasons. You don't want users of a model to be able to run arbitrary processes on your computer (these would have to be users of Analytica Power Player). Hence, Analytica doesn't allow calls to RunConsoleProcess to be evaluated directly from a node that a Player/Power Player user can change.
If you have an external process that you want your model to run when being used by an end-user, then make sure it is in a variable that does not have an input node.
You should always be somewhat security conscious. You could design a model that allows a Power Player end user to run arbitrary processes. For example:
Variable cmd { An variable with an input } Variable RunIt := RunConsoleProcess(cmd,...)
This would be highly non-recommended. You should keep control over what the cmd is being executed inside your model.
Remedies
Remove the input node for the object that calls the RunConsoleProcess function.
Enable comment auto-refresher