Cannot load mashup due to SECU0019 exception
Learn about unauthorized request issues that might prevent your mashup from loading successfully.
Condition
A mashup does not load and the system displays the SECU0019 issue for an unauthorized or unregistered request.
Cause
The mashup uses unregistered parameters. If you manually change a parameter in the mashup snippet, the system produces a 403 error.
Solution
- As a best practice, do not change the parameters in the mashup snippet.
- When you create a mashup, enable the passing of dynamic parameters by turning on the Allow passing dynamic parameters option. This option registers mashup parameters for you.
- Alternatively, use a script to re-register the
pzIncludeMashupScripts activity and use the
parameters that you updated after channel generation.
For example: See the following sample code: <% try{ com.pega.pegarules.priv.context.PegaThread prThread = (com.pega.pegarules.priv.context.PegaThread) tools.getThread(); java.util.Map<String, String> mashupScriptsMap = new java.util.HashMap<String , String>(); mashupScriptsMap.put("pyActivity","pzIncludeMashupScripts"); prThread.registerQueryString(mashupScriptsMap); }catch(Exception e){ oLog.error("Exception while registering the mashup requests."); } %>
Previous topic Troubleshooting issues with loading mashups Next topic Cannot load the same mashup again based on conditions