SAP Knowledge Base Article - Public

3425198 - SAC AD : When creating serveral requests in parallel by multiple users, the application window is freezing for some users (SAC LOD-ANA-AD)

Symptom

  • When an user is alone to create a request in the application, it is completed successfully.
  • But when there are at least up to 3 users who are trying to send to create the same request in parallel from Application, some requests could be completed, but for some others, the window is freezing and the application is never back alive.
  • No error raised in Console.

Environment

SAP Analytics Cloud (Enterprise) 2023.21.16

Cause

The Custom script Catalogue.getAutoDemandeId() caused an exception : when numplus >= 1000, it will return undefined, which cause exception.

Resolution

To fix the script issue, the following line had been added to the end of the source script:
//

{ // return "Demande-" + Dropdown_2.getSelectedKey() + //PlanningModel_1.getMembers("Demande").length.toString(); //}

ListePMDemandeMember = PlanningModel_DemandeBudgetaire.getMembers("NUM_DEMANDE",{limit:10000});
var max = 0;
for(var i =0; i< ListePMDemandeMember.length; i++){
 
if(ListePMDemandeMember[i].id.substr(1,4) === AnneeBudget)

{ max = Math.max(ConvertUtils.stringToInteger(ListePMDemandeMember[i].id.substring(6)),max); }

}
 
var numplus1 = max +1;
 
if( numplus1 < 10){

{ return "B" + AnneeBudget + "-00" + numplus1.toString();; }

}
if( numplus1 < 100){

{ return "B" + AnneeBudget + "-0" + numplus1.toString();; }

}
if( numplus1 < 1000){

{ return "B" + AnneeBudget + "-" + numplus1.toString();; }

}

return "B" + AnneeBudget + "--" + numplus1.toString();

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

Request, parallel, multiple users, Analytics Designer, , KBA , LOD-ANA-DES-SMQ , SAP Analytics Cloud Story Metadata and Queries , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud all versions