Skip to main content

Portal document category management error

In this article, we explain why resuming a work step from Mosaic Portal may trigger an error: 'Cannot read properties of undefined'.

Y
Written by Yusef Abulaynain
Updated over 4 months ago

Error:

'Sorry, an unexpected error has been encountered. Please pass the following details to the system administrator:
Cannot read properties of undefined (reading 'get')'

This issue is happening because the primary activity is a restricted document type. The affected worker role doesn't have access to that document type, so they won't be able to resume the workstep.
​
First, you'll need to check the document category option. It must match the portal document setting that's configured within the mosaic portal front end. See screenshots.

To resolve the errors, a system admin needs to update the form's document type or amend the worker's roles, allowing them to resume and complete the portal work-step.
​
Check the settings within the admin tool for any restrictions. If restrictions are required, ensure you've set them up on the Mosaic front end. You can do that by following these steps:

  1. Open admin tool.

  2. Select the Reference Data tab.

  3. Check the form ID in question, if Restricted is set to Yes or No.

Did this answer your question?