SAP Knowledge Base Article - Public

3634020 - SAC: Comments disappear after calling API addComment()

Symptom

  • Script is posting comments successfully most of the times by addComment() API, but the comments sometimes disappear automatically at the end of the whole process.
  • The issue does not happen when debugging.
  • In view mode, sometimes the 'comment not saved' error will occur.

Environment

SAP Analytics Cloud

Reproducing the Issue

The script is like the following:

......

removeAllComments();

......

addComment();

......

removeAllComments();

......

addComment();

......

Cause

Since modifying comments through API actually needs to communicate with backend service, and addComment() will rely on synchronization state with backend which changed by removeAllComments(). The state sync process sometimes might be impacted by the network latency to backend caused by this kind of interleaving calls.

Resolution

Group removeAllComments() calls together and then call addComment().

Example script logic:

......

removeAllComments();

......

removeAllComments();

......

addComment();

......

addComment();

......

Keywords

addComment API, comments disappear, SAP Analytics Cloud, moderation checking, state synchronization, network latency, removeAllComments API, debugging, comment not saved error , KBA , LOD-ANA-AD-INF , Analytics Designer Infrastructure , Problem

Product

SAP Analytics Cloud all versions