Ivara.OTAssert File: Cax.cpp(4173) : Failed Assert: oCAX::getStateGroups() - This cax does not have a member - why is getStateGroups begin called

Hi

I'm trying to add comment to work request and when trying to execute the following code 

WorkRequestComment wrComment = WorkRequestComment.Allocate(workRequest);

In APM server log window getting error below

01/07/2020 11:30:51 Error [***myuser***] Ivara.OTAssert File: Cax.cpp(4173) :  Failed Assert:    oCAX::getStateGroups() - This cax does not have a member - why is getStateGroups begin called

Comments are saved and you could browse them. But every time error above pops up

Code below

WorkRequest workRequest = WorkRequest.Fetch(12345);
using (var trans = new DBTransaction(false))
{

     TransactionUpdate truWorkRequestCommentAdd = new TransactionUpdate(workRequest);

     if (workRequest.FetchLock() && truWorkRequestCommentAdd.CanContinue)

     {
          if (workRequest.GetMethodState(WorkRequest.AddWorkRequestComment_M_ID) == oCAXContainerObject.eMethodState.MethodAvailable)
          {

                WorkRequestComment wrComment = WorkRequestComment.Allocate(workRequest,null);

                wrComment.Comment = "Custom comment";
                wrComment.CreatedBy = wrCreatedBy;

                wrComment.CreatedOn = wrCreatedOn;

                wrComment.TypeOfComment = WorkRequestComment.eecWorkRequestCommentTypes.evMiscellaneousComment;

                wrComment.Updates = 0;

                workRequest.AddWorkRequestComment(wrComment);
                wrComment.Persist();

             }

     }

}