The error popped up when I was trying to copy (or I would like to say “update” since it already existed in the production environment but with less fields) a custom record from a sandbox environment to a production environment.
The problem was fixed by emptying the permission list. You mileage may varies but it would be great if you can get some clue from my attempts.
Since the same custom record was copied in the same direction before this and was deleted, I assumed some metadata was cached by NetSuite which potentially stopped the new copy request, so I changed the internal id and the record name in the sandbox environment to make it a bit different from the old record. Unfortunately this didn’t eliminate the error.
Attempt #2
Compared the custom record between sandbox and production environments, I found Access Type
was different – it was No Permission Required
in sandbox and Require Custom Record Entries Permission
in production. I aligned both to No Permission Required
, the most loose restriction a custom record can be. However, it didn’t work either.
Attempt #3 – WIN
I saw a pop up saying something like “you just selected no permission required but you have made some selections under permission tab, are you sure about this?”. This reminds me the error could be caused by the permission list – copy object functionality may tried to copy the permission list as well but due to reasons, like the role was absent from the target environment, it didn’t make it and fail to capture the error.
After captured the role list with a screenshot, I cleared permission list then tried again – I can see the dependency calculation went faster than the last few attempts and it quickly found the object was absent from the target environment.
Conclusion
Copy to Account was introduced as the alternative of Bundling but I can see people ran into different problems with it. From my example, I can see it was trying to pull the permission list from the origin but get lost when found the role gap between environments. You may want to align the role data rather than empty the permission list like me and I appreciate if you can share your experience, too. Cheers
Comments