• Home
  • /
  • Jcurve Support Articles
  • /
  • Resolve Error: "Your Search Contains a Reference to Join for Which You Do Not Have a Permission" Received upon Generating an Email Payment Notification with Custom Role

Resolve Error: "Your Search Contains a Reference to Join for Which You Do Not Have a Permission" Received upon Generating an Email Payment Notification with Custom Role

Written by
Carmela Batalla
Published on
June 30, 2023 at 3:22:54 AM PDT June 30, 2023 at 3:22:54 AM PDTth, June 30, 2023 at 3:22:54 AM PDT

Scenario

User with a custom role navigates to Payments > Payment processing > Payment File Administration > views a Payment File Administration and click on Email Payment Notification button.

Then an SuiteScriptError occurs: "Your search contains a reference to join for which you do not have a permission."

Solution

Custom Role Permissions (recommended)

The recommended solution for this error is to review whether the permissions assigned to the custom role meet the requirements, as per article ID 35023 Setting Up Electronic Bank Payments.

Execute As Role on Script (alternate)

Alternate solution would be to adjust the setup of the script. Note, that this is not recommended from Product side. It can still be done if you accept the fact that you will give access to this functionality to users who don't have appropriate permissions.


1. Navigate to Customization > Scripting > Scripts
2. Click View by the Email Notification SS2.0 script
3. Click Deployments tab
4. Click EP Payment Notification Suitelet(SS2.0) deployment
5. Click Edit
6. Execute As Role: Change to Administrator
7. Click Save