Error while refreshing analytics


When running an analytic I generated I get the following error:

unable to call processSource for analytic OilGasWellXXXAnalytic source OilGasWell.WELL:

C3RuntimeException: wrapped org.mozilla.javascript.EcmaError: TypeError: Cannot read property “from” from undefined (typesys.js#1929(Function)#3)

at org.mozilla.javascript.ScriptRuntime.constructError
at c3.engine.action.RhinoActionEngine.callFunk (

EcmaError: TypeError: Cannot read property “from” from undefined (typesys.js#1929(Function)#3)

This analytic runs 2 functions, both work from snippets in Chrome and as provisioned functions. The analytic then throws this error in all cases


You may see rhino errors when you use ecmascript 6 features, for instance the following instruction will work in chrome but it won’t work in a provisioned .js file.

[1, 2, 3].filter(x=> x%2==0)

Can you try to rewrite the logic of the function and avoid using such features?


The Function works when you call it through the type, i.e.


however when you run the analytic it calls the above error. My assumption therefore is that I don’t have any of the features that do not work once provisioned, is that correct?


It appears call stack is truncated in Queue errors. see in Splunk for full stack. or trigger AnalyticContainer.invalidateSource for failing source to get error stack from console.