This project has moved and is read-only. For the latest updates, please go here.

DeployR utility can not open connection

Nov 20, 2013 at 8:54 AM
Edited Nov 20, 2013 at 10:15 AM
Hi,
I have installed RIntegration pack which added RScript function as "Data Mining Function in Metrics editor

When I am opening C:\Program Files (x86)\R Integration Pack\RScripts\SeasonalForecasting.R file from DeplyR utility and trying to save, I am getting following connection error, can you please tell me why this error or do I just need to copy the script instead of save it:

"The script was not able to be saved due to the following error:
cannot open the connection"

After that as a test from page no 26 of user guide doucment, I copied following expression in clipboard and pasting in metrics editor expression.

RScript<_RScriptFile="C:\Program Files (x86)\R Integration Pack\RScripts\SeasonalForecasting.R", _InputNames="target, trend, season", StringParam9="SeasonalForecast">(target, trend, season)

When running the report i am not getting any data and in the DSSError.log file i can see following error -

2013-11-20 14:49:37.309+05:30 [HOST:KDC1-D-BQW3ZR1][PID:7000][THR:8164][DMX][Info] CDmxPmmlrPKG::RemoveModel(1297): Unloading model #1335375437 from memory.
2013-11-20 14:49:37.792+05:30 [HOST:KDC1-D-BQW3ZR1][PID:4376][THR:1120][Analytical Services][Error][0x80042425] Analytical Engine Error. Apply function failed. Internal error.
2013-11-20 14:49:37.824+05:30 [HOST:KDC1-D-BQW3ZR1][PID:4376][THR:1120][Analytical Services][Error][0x80002434] Analytical Engine plug-in function error: [CRFPCommonNNGEN::ExRScript: R script execution failed: cannot open the connection]

Can you please help me to resolve both the problem.
Nov 20, 2013 at 4:17 PM
It could be that you do not have the proper access to this folder/file. You can check that your user on that system has the proper permissions for C:\Program Files (x86)\R Integration Pack\RScripts and the SeasonalForecasting.R file.

Also, if you're on Windows, try launching your R Console and MicroStrategy Desktop using "Run as Administrator" to ensure you have access.

Alternatively, you can try using another folder that you do have access to and copy your R script there, but you will need to specify that path in the _RScriptFile parameter of the metric expression.

Hope this helps,

Rick
Nov 21, 2013 at 4:20 AM
Edited Nov 21, 2013 at 4:20 AM
Thanks for your reply, it has been resolved. I think it would be helpful if you could incorporate above point in the user guide document also.

Thanks-
Shibobrota
Nov 22, 2013 at 2:21 AM
Thank you for that suggestion. We will. :-)