SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 69883: Batch API code fails in the "Loading project data..." step and Model Studio stops responding when opening a SAS® Visual Forecasting project

DetailsHotfixAboutRate It

When you run a SAS Visual Forecasting project using the Batch API code, the  Loading project data...  step might fail with one of the following error messages:

Loading project data...

NOTE: 502 Bad Gateway

Response status: 502
ERROR: An invalid response was received.

OR

Loading project data...

WARNING: Unable to read data from Web server, errno = 104 (The connection was reset by a peer.).
ERROR: The tcpSockRead call failed. The system error is 'The connection was reset by a peer.'.
ERROR: Connection has been closed.

When you try to open the SAS Visual Forecasting project, a window is displayed that states,  Opening project...  and Model Studio stops responding, as shown in the following image: 

Opening project...

After a few minutes, a new window is displayed that states,  An error occurred. Please contact your system administrator. Upon clicking Show details, you might encounter one of the following error messages: 

An error occurred 1

 

An error occurred 2

The problem occurs when a table in the SAS Visual Forecasting project caslib is unable to load. 

Workaround

To circumvent this issue, run the SAS Visual Forecasting project again using the Batch API code before opening the project in Model Studio. Prior to submitting the code, comment out the %ABORT statement in the  Loading project data...  step. For reference, see the highlighted line in the following sample of the code:

/******************************************************************************
** Load project data...
******************************************************************************/
%put Loading project data...;
proc http
  method="PUT"
  url="&protocol.://&host.:&port./forecastingGateway/projects/&projectId./dataState"
  out=resp;
  headers
    "Authorization"="bearer &authtoken.";
run;
%put Response status: &SYS_PROCHTTP_STATUS_CODE;
%if not (&SYS_PROCHTTP_STATUS_CODE = 204) %then %do;
  %put ERROR: An invalid response was received.;
/*   %abort; */
%end;

Click here for the full Batch API code. You need to fill out the appropriate information following the  /* Call the macro */  section at the bottom of the code.

Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Visual ForecastingLinux for x648.5Stable 2023.01ViyaViya platform
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.