none
ExecuteCode is throwing 'InternalServerError' exception if the output data is huge RRS feed

  • Question

  • var code = "ReadOutputSag(OutputFilepath);";
    WorkspaceObject OutputFilepath = new WorkspaceObject("OutputFilepath", astrDataFilePath);
                ExecuteResponse response = RClient.ExecuteCode(lstrSessionId, new ExecuteRequest(code.ToString(), new List<WorkspaceObject> { OutputFilepath }, new List<string> { "OutputData", "pred" }));

    The OutputData is a Dataframe of 200 rows with 69 columns in it. 

    System is throwing "InternalServerError" exception at the mentioned line above. If I truncate the OutputData to have 200 rows with only 2 Columns then it works perfectly. 

    What is the max size that DeployRClient.ExecuteCode can return? How can I increase the size of it?


    satyaganti

    Wednesday, June 28, 2017 10:19 AM

All replies

  • Below is the exception info which we are getting for that Internal Server Error :

    1) Exception Information

    *********************************************

    Exception Type: RServerBase.Models.ErrorException

    Request: Microsoft.Rest.HttpRequestMessageWrapper

    Response: Microsoft.Rest.HttpResponseMessageWrapper

    Body: RServerBase.Models.Error

    Message: Operation returned an invalid status code 'InternalServerError'

    Data: System.Collections.ListDictionaryInternal

    TargetSite: Void MoveNext()

    HelpLink: NULL

    HResult: -2146233088

    ________________________
    Ram Ganesh K

    Wednesday, June 28, 2017 12:57 PM