I have a problem about my case type in trial instance. I added an approval automation to my case and configured it’s view. However, I couldn’t see the view when I run the case.
I checked pega logs and tracer logs when I run the case. I found a few different errors. You can find these logs below;
ERROR pega-pega-6cc949665b-89dhn|192.168.0.5|Rest|application|v2|assignments_var12b5f58fa4512b8ca5f13d80b6d74688|ABFD6DAAE4B712B35A7E209ACB9308188A ABFD6DAAE4B712B35A7E209ACB9308188A - JSON web token is rejected during signature verification due to bad signature : Expired JWT.
;
Tracer Log:
Unable to open an instance using the given inputs: pxObjClass = “Rule-HTML-Section”, pyClassName = “MyOrg-FW-IKUCommon-Work-RenewalRegistration”, pyStreamName = “Studentasses”
Ensure the JSON web token (JWT) is valid and not expired.
Verify that the section “Studentasses” exists in the class “MyOrg-FW-IKUCommon-Work-RenewalRegistration” and is correctly referenced.
If the issue persists, review the configuration of your approval automation and ensure all necessary rules and sections are correctly defined and accessible.
Based on the errors you’ve provided, here are a few steps you can take to troubleshoot and resolve the issue:
Expired JWT Error: The JSON web token (JWT) error indicates that the token used for authentication has expired. You will need to refresh or obtain a new JWT token to ensure that the authentication is valid. This can typically be done by re-authenticating or checking the token generation process in your application.
Tracer Log Error: The tracer log error indicates that the system is unable to open an instance of the specified Rule-HTML-Section. This could be due to a missing or incorrectly referenced rule. Verify that the rule Studentasses exists in the class MyOrg-FW-IKUCommon-Work-RenewalRegistration and that it is correctly configured.
Additionally, you might find it helpful to refer to the following resources for more detailed guidance on debugging and resolving such issues:
Debugging Constellation applications: This resource provides a detailed walkthrough on how to debug applications in Pega, which might help you identify and resolve the issues in your case type configuration.
It is actually a bug which is fixed in higher versions of the platform. If you need you can raise for a hotfix.
But instead of that I have found a workaround for this issue, you can try this, if it works for you.
Step 1: In Dev Studio, Search and open the pyHasPredefinedFlowActionViewReference which is in Rule-Obj-FlowAction class and it is a when rule…save it in your own ruleset and then add one when condition as shown in the image.
Step 2: Now search and open pyApproval flow action and save it into your own ruleset and then in that, in Layout tab there is a View box.. empty the box and save it.
@MarijeSchillern thanks for your answer! I checked the error that is about a related JWT problem that was related to authentication, as you mentioned. I did reset operator to default settings, and the problem was solved.