04-01-2021 05:47 AM - edited 07-09-2021 03:44 PM
If the tool throwing this error is successfully outputting data, and the exit code is not 1, this error can likely be ignored. These are return codes from the Microsoft Visual C++ runtime libraries. R considers any return code other than zero to be an error. Although Microsoft hasn't publicly published definitions for these codes, the R Core team has found that these non-zero errors do not impact outputs and should be ignored.
A true R error that indicates an issue with a line of code will have a return code of 1.
Most of the R.exe exit code (1) errors from our R -based macros come from:
Note: In the Optimization tool, the solver in R requires that all variables be on the left-hand side of any equality/inequality signs. This is to say, although [x1] + [X2] + [X3] == 1 is equivalent to [X1] + [X2] == 1 - [X3], having a variable [X3] on the right side of the equality sign (==) will cause the tool to fail with the error: R.exe exit code (3221225512) indicated an error.
If a thorough investigation of your data does not help resolve this error, please search your question on the Designer Discussion forum in the Community, then post your question there to get help from Community users.
Thanks for the post @Alteryx_KB. It's good to know why these exit code errors are occurring, but simply ignoring them is not always possible. For instance, I am trying to incorporate an R script into an analytic app. The script runs perfectly in RStudio, but I receive an erroneous exit code error message in Alteryx. I cannot deploy the app if users think there is an error occurring.
Hopefully this idea gains some traction:
https://community.alteryx.com/t5/Alteryx-Designer-Ideas/Improve-R-exe-exit-code-error-handling/idi-p...
But more generally, I'm hoping to see general error handling be taken more seriously
https://community.alteryx.com/t5/Alteryx-Designer-Ideas/Suppress-Ignore-Warning-Messages/idi-p/15864