Skip to main content

Unable to complete a visit where the worker no longer has a primary role

In this article, we explain why an error might appear when completing a visit.

Y
Written by Yusef Abulaynain
Updated over 2 months ago

Error:

'The following error has occurred. Please contact the system administrator.

Error ID: Access-BWPOJXXXXXXXXXXXXXXX_XXXXX

Error Message: An unexpected error has occurred. Please check your last transaction as it may not have completed correctly. The error has been logged against the error ID above. Please contact your support team providing the error ID and details of the action taken immediately prior to this error.'

The updated visit code assumes that the receiving worker, the worker visiting, still has an active role.
If the worker does not and another worker tries to complete the visit, this results in a NullPointerException as Mosaic attempts to get the ID of the worker's current primary organisation.

Completing visits while the worker still has a primary role will avoid the error until a fix is provided in a future release.

Did this answer your question?