Service Portal ticket page error after Record Producer submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 07:29 AM
I've encountered a rare, intermittent issue on a production instance that I can't reproduce.
After a PSDS case was submitted by a constituent via a record producer, the ticket summary page showed them the error message: Sorry, either the data doesn't exist or you don't have access.
I copied that URL, impersonated the constituent who submitted the case, and verified the ticket summary page appeared showing case details instead of the error. They can also view all of the other cases they've created.
My only guess is that the task portal page was somehow being redirected to before the Case's Consumer field was updated. This has to do with the query rule Case - Consumer is me requiring the Consumer field being set to the constituent for them to have the access to view it.
Has anybody else experienced this before?
Here are some additional notes:
- The constituent consumer and user records and their sn_gsm.constituent role was created a half hour before the form was submitted.
- The consumer value and producer.portal_redirect are set in a custom script include based off of sn_gsm.GovernmentServicesUtil().populateServiceRequestDetails(), which is called in the record producer's Script field.
- I was unable to reproduce the bug after attempting the low-speed throttling of ticket submission using 64 kbps download/upload and 100 ms latency.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 07:34 AM
Yeah that's a tough one. Could be a session/cookie issue too. I'd recommend getting the user to hit F12 and take a screenshot of the console tab when that happens so you can see if the error is a browser issue.