I moved my extensions and themes from SCA to 2024....
# ask-stanley-ai
c
I moved my extensions and themes from SCA to 2024.1.0 but now I get an internal error in my servicecontroller when I use the nlapiSearchRecord function on a custom sublist. What could be the reason?
c
AI generated answer (using internal Slack threads):
Based on the conversations, the internal error you're experiencing when using the
nlapiSearchRecord
function on a custom sublist after moving your extensions and themes from SCA to 2024.1.0 could be due to a few reasons: 1. Insufficient Permissions: Even if you've made the search public, you might still encounter an INSUFFICIENT_PERMISSION error during
nlapiSearchRecord()
API execution. You could try changing the 'execute as role' to admin, or to some role that has permission for viewing the search record as well as all the join records in the suitelet deployment. 2. Invalid Search: You might be trying to pull up a search record that does not exist, hence the error code: “INVALID_SEARCH”. Ensure that the search exists and you have the correct internal or external ID. You could also try using
nlapiLoadSearch
instead of
nlapiSearchRecord
. 3. Client Script Issues: If you've attached a client script to a suitelet that is available externally, it could cause issues with your sublists. Ensure that your client script is set to available without login and that the folder properties are not set to private. Remember to check the permissions for the search and ensure that it works with both internal and external IDs. Also, note that client scripts use a subset of normal SuiteScript. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817547083
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815124035
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812475443
Please provide your feedback on this answer.