GlideRecordSecure insert fails for "sn_vul_container_image_package" table using Script Include.

sunnykumar
Tera Contributor

Hi everyone,

I'm trying to insert records into "sn_vul_container_image_package" and "sn_vul_container_image_layer" using GlideRecordSecure.

Using GlideRecord, the insert works as expected. However, with GlideRecordSecure, the insert silently fails—no record is created, no exception is thrown.

Here's what I've checked:

  • Running from a server-side Script Include.
  • Application Access is fully allowed.
  • canCreate() returns true using scripts-background.
  • The Create ACL has no roles assigned.
  • Checked the application cross-scope which is already there for create.

Has anyone encountered this with these Container Vulnerability Response tables? Are there any hidden ACLs, field-level ACLs, Business Rules, or platform restrictions that could prevent GlideRecordSecure.insert() from working?
Any suggestions would be appreciated.

Thanks!

1 REPLY 1

DrewW
Mega Sage

Have you tried "getLastErrorMessage" to see if there is something there to work with?