I’ve created a User Interaction workflow that triggers after adding or editing an expense detail line. It will ask the user for an input and updates a custom field on that line. As a user, I get a client error yet the workflow is triggered successfully but as IFSAPP, I don’t. I thought it was a permission issue but my user has full access to all the projections used in the workflow.
If I’m logged into IFSAPP and add/edit an expense detail line:
- The workflow is triggered and asks for a value to update the custom field.
- The custom field gets updated.
- No error.
If I’m logged in as a user and add/edit an expense detail line:
- The workflow is triggered and asks for a value to update a custom field.
- I receive a Client error.
- I refresh the page and the custom field has been updated.
I’ve watched the workflow and captured the payload that received the Client error to use for debugging. I used that payload to troubleshoot in the workflow design but it went through successfully so I don’t see any issues in the workflow itself.
Using Developer Tools in the browser, the Client error occurs in the middle of the request
“………. /main/ifsapplications/projection/v1/WorkflowService.svc/ContinueWorkflow………...“
The actual client error message, that only comes up as a signed in user, displays:
Url (parameters included) = ……main/ifsapplications/web/page/TravelExpensesEmployee/MyExpenseDetailPage;$filter=CompanyId..................
Error stack:
Cannot read properties of null (reading 'response')
TypeError: Cannot read properties of null (reading 'response')…..
The user has full access to the TravelExpensesEmployeeHandling projection and MyExpenseDetailPage page.
Any ideas of what is causing this issue?