My Oracle Support Banner

Invoking VBCS App Page Throws TypeError: Cannot Read Properties Of Undefined (reading 'roles') (Doc ID 2870376.1)

Last updated on OCTOBER 29, 2023

Applies to:

Visual Builder Studio - Version 21.04 and later
Information in this document applies to any platform.



On a VBCS Web App the following error is found in the 'Developer Tools Console' of the Javascript log: 

log.js:22 [VB (ERROR), /vb/action/action/CallModuleAction]: Action calltoCheckTranslationValuesAccess_36dfyyykd: error calling function: checkTranslationValuesAccess([object Object],[object Object]) TypeError: Cannot read properties of undefined (reading 'roles')

  at translation-values-page.js:314:47
  at Array.some ()
  at PageModule.checkTranslationValuesAccess (translation-values-page.js:312:44)
  at n.perform (callModuleFunctionAction.js:92:1)
  at action.js:36:1


The code that is causing this issue is from java script //userroles.Resources[0].roles: 


Under what circumstance would this JavaScript statement cause an error, and what activity is necessary to overcome this problem?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.