function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PradPrad 

Dynalib.js error

I have an Scontrol that is working fine from my PC/login. It fetches data from Opportunities, displays a form, takes additional input from user and creates a custom object (called BQW) record. But, another user who tries this reports a client-side script error when the form is being sumitted. I have not been able to simulate it.
 
The error appears to occur in dynalib.js, and following is the error:
 
Line: 113  Char: 2
Error: 'this.getDefinition().filedMap' is null or not an object
Code:
PradPrad
Line: 113  Char: 2
Error: 'this.getDefinition().filedMap' is null or not an object
Code: 0
 
I traced this piece of code to dynalib.js, but I have little clue about whats going on in Salesforce .js files. I am thinking this is a Salesforce issue. Any help?
Ron HessRon Hess
Is the customer using the script from the exact same org  that you tested in?

could be that you are an admin and the user is not seeing the object because it is not deployed?

or other perms/ profile  could prevent it ( the custom object) from becoming visible to the other user.

basicaly it looks like your
var bean = new Sforce.Dynabean()

is failing and you are then passing a null bean back into another AJAX toolkit routine.
PradPrad
Turns out the object is not 'deployed' yet. I lost my admin rights, so I am waiting on the administrator. Thanks.