Error:

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, rsdoc.DocumentActionTriggers: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object Trigger.rsdoc.DocumentActionTriggers: line X, column 1: []


App expert reply:

You may see this error message when running unit tests. To fix this issue, call A5 Documents onInstall method in your test setup:

rsdoc.PostInstallClass classInstanceName = new rsdoc.PostInstallClass();
classInstanceName.onInstall(null);