Unable to preprocess sources


#1

Hi, working through the online training and am getting this error: C3.client.ActionError {name: “ActionError”, message: “unable to preprocess sources for DFE SmartBulbLong…d.run(Thread.java:745)↵↵srcId=SMBLB1↵srcId=SMBLB1”, error: C3.t…s.Obj, stack: “Error: unable to preprocess sources for DFE SmartB…14:20), :5:15)↵ at :1:20”}

Very new to this, so I am just not sure where to start. The data should be good, as it is provided from c3 for testing and has been used in previous modules. Any help is appreciated.


#2

There’s more to that error… can you post the rest of it?


#3

all.js?env=browser&compat:19965 POST https://lightbulb-dev26.c3-e.com/api/1/lightbulb/dev26/AnalyticsContainer?action=fireAnalytics 500 (Server Error)
C3.client.sendRequest @ all.js?env=browser&compat:19965
request @ all.js?env=browser&compat:860
call @ all.js?env=browser&compat:566
c3Call @ all.js?env=browser&compat:99
_call @ all.js?env=browser&compat:2704
(anonymous) @ VM4502:5
(anonymous) @ VM4553:1
all.js?env=browser&compat:569 Uncaught
C3.client.ActionError {name: “ActionError”, message: “Invalid type id 557 in sourceType param”, error: C3.t…s.Obj, stack: “Error: Invalid type id 557 in sourceType param↵ …14:20), :5:15)↵ at :1:20”}
error
:
C3.typesys.Obj
codes
:
[“NotClassified”, _type: {…}]
debugInfo
:
[_empty: true, _type: {…}]
id
:
“2928.14119”
key
:
“c3.engine.analytics.ACTriggerMultiSourceTask_getSourceType”
parameters
:
[“557”, _type: {…}]
template
:
“Invalid type id {} in sourceType param”
copyObj
:
(…)
deepCopyObj
:
(…)
eachField
:
(…)
eachObj
:
(…)
emptyFields
:
(…)
evalProjection
:
(…)
fieldAtPath
:
(…)
fieldValue
:
(…)
fieldsAtPath
:
(…)
fieldsMap
:
(…)
fingerprint
:
(…)
fromJson
:
(…)
fromJsonString
:
(…)
fromString
:
(…)
fromXmlString
:
(…)
instanceOf
:
(…)
isPacked
:
(…)
isSealed
:
(…)
makeObj
:
(…)
mergeObj
:
(…)
pack
:
(…)
seal
:
(…)
serialize
:
(…)
singletonArry
:
(…)
toJavaException
:
(…)
toJson
:
(…)
toJsonString
:
(…)
toXmlString
:
(…)
unpack
:
(…)
unseal
:
(…)
validateObj
:
(…)
withField
:
(…)
withFields
:
(…)
withFormattedMessage
:
(…)
withPostDefaults
:
(…)
withValueAtPath
:
(…)
proto
:
C3.typesys.Obj
message
:
“Invalid type id 557 in sourceType param”
name
:
“ActionError”
stack
:
“Error: Invalid type id 557 in sourceType param↵ at new C3.client.ActionError (https://lightbulb-dev26.c3-e.com/typesys/1/all.js?env=browser&compat:1129:13)↵ at Object.request (https://lightbulb-dev26.c3-e.com/typesys/1/all.js?env=browser&compat:881:15)↵ at Object.call (https://lightbulb-dev26.c3-e.com/typesys/1/all.js?env=browser&compat:566:27)↵ at c3Call (https://lightbulb-dev26.c3-e.com/typesys/1/all.js?env=browser&compat:99:20)↵ at Object._call (https://lightbulb-dev26.c3-e.com/typesys/1/all.js?env=browser&compat:2704:20)↵ at Object.eval (eval at get (https://lightbulb-dev26.c3-e.com/typesys/1/all.js?env=browser&compat:3114:20), :5:15)↵ at :1:20”
proto
:
Error


#4

I really want to see the ‘message’ field. Anyway, it looks like your DFE references an invalid type. Make sure that the type in the DFE and CompoundDFE parameterization is a type that really exists (e.g. go to console and do c3ShowType(WHATEVER_THE_TYPE_IS))


#5

Here is the message field. The type exists. I am going to investigate my logic with one of the simple metrics to see if that is the issue. Thanks for the help.

message
:
“unable to preprocess sources for DFE SmartBulbLongLife:↵↵C3RuntimeException: unable to load metric ‘DurationOnInHours’ for ID SMBLB1 (start 2011-01-01T00:00:00.000Z, end 2016-01-01T00:00:00.000Z):↵↵C3RuntimeException: c3.love.exceptions.C3RuntimeException: c3.love.exceptions.C3RuntimeException: MetricEngine error : c3.love.exceptions.C3RuntimeException: Error c3.love.expr.eval.EvaluationException: prorate(prorate(normalized.data.status)) => Invalid Function call at line 1, column 0 in expression prorate(prorate(normalized.data.status)). Time range [2011-01-01T00:00:00.000, 2016-01-01T00:00:00.000]↵ at c3.love.expr.eval.EvaluationException.create(EvaluationException.java:35)↵ at c3.love.expr.eval.EvaluationException.updateContext(EvaluationException.java:48)↵ at c3.love.expr.eval.EvalVisitor.evaluateExpression(EvalVisitor.java:131)↵ at c3.love.expr.eval.EvalFacade.evalExprWithBindings(EvalFacade.java:201)↵ at c3.service.metric.SimpleMetricEvaluator.evaluateExpressionBasedMetric(SimpleMetricEvaluator.java:611)↵ at c3.service.metric.SimpleMetricEvaluator.evaluateMetric(SimpleMetricEvaluator.java:562)↵ at c3.service.metric.MetricEvaluatableOld.compute(MetricEvaluatableOld.java:297)↵ at c3.service.metric.MetricEvaluatableOld.computeResultsFromHierarchies(MetricEvaluatableOld.java:161)↵ at c3.service.metric.MetricEvaluatableOld.eval(MetricEvaluatableOld.java:111)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.timeseries.impl.TimeseriesMath.eval(TimeseriesMath.java:548)↵ at c3.love.timeseries.Timeseries.eval(Timeseries.java:652)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$eval$81(TsFuncLib.java:896)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$726/1590641014.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$rolling$91(TsFuncLib.java:1074)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$731/862363494.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.expr.bytecode.CompiledExpr.lambda$doEvalTimeseries$0(CompiledExpr.java:214)↵ at c3.love.expr.bytecode.CompiledExpr$Lambda$699/2030527678.accept(Unknown Source)↵ at java.lang.Iterable.forEach(Iterable.java:75)↵ at c3.love.expr.bytecode.CompiledExpr.doEvalTimeseries(CompiledExpr.java:214)↵ at c3.love.expr.bytecode.Expr_5995238269611654354_4929898767925782883.eval(Unknown Source)↵ at c3.service.metric.CompoundMetricEvaluator.evaluateCompiledExpr(CompoundMetricEvaluator.java:866)↵ at c3.service.metric.CompoundMetricEvaluator.evaluateMetricsForSource(CompoundMetricEvaluator.java:627)↵ at c3.service.metric.CompoundMetricEvaluator.evaluateMetrics(CompoundMetricEvaluator.java:834)↵ at c3.service.metric.MetricEngine.evalMetricsBatch(MetricEngine.java:424)↵ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)↵ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:497)↵ at c3.server.engine.AnnotatedEngine.invokeMethod(AnnotatedEngine.java:421)↵ at c3.server.engine.AnnotatedEngine.execute(AnnotatedEngine.java:354)↵ at c3.server.impl.Task.doFilter(Task.java:251)↵ at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:198)↵ at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:125)↵ at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:196)↵ at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:166)↵ at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:81)↵ at c3.server.impl.Task.run(Task.java:187)↵ at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:400)↵ at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:306)↵ at c3.love.dbfacade.DbFacade.dispatch(DbFacade.java:646)↵ at c3.engine.analytics.loader.CompoundMetricDataLoader.loadData(CompoundMetricDataLoader.java:164)↵ at c3.engine.analytics.loader.CompoundMetricDataLoader.loadData(CompoundMetricDataLoader.java:44)↵ at c3.engine.analytics.loader.ACDataLoader.load(ACDataLoader.java:264)↵ at c3.engine.analytics.loader.ACDataLoader.loadOffers(ACDataLoader.java:207)↵ at c3.engine.analytics.ACTriggerBaseTask.processAndLoadOffers(ACTriggerBaseTask.java:480)↵ at c3.engine.analytics.ACTriggerBaseTask.primeCachesForWaveZero(ACTriggerBaseTask.java:474)↵ at c3.engine.analytics.ACTriggerBaseTask.triggerDFEsForInvalidationPeriod(ACTri…uncLib.lambda$eval$81(TsFuncLib.java:896)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$726/1590641014.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$rolling$91(TsFuncLib.java:1074)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$731/862363494.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.expr.bytecode.TsFuncLib.lambda$cache$129(TsFuncLib.java:1476)↵ at c3.love.expr.bytecode.TsFuncLib$Lambda$698/268368693.eval(Unknown Source)↵ at c3.love.expr.bytecode.CompiledExpr.lambda$doEvalTimeseries$0(CompiledExpr.java:214)↵ at c3.love.expr.bytecode.CompiledExpr$Lambda$699/2030527678.accept(Unknown Source)↵ at java.lang.Iterable.forEach(Iterable.java:75)↵ at c3.love.expr.bytecode.CompiledExpr.doEvalTimeseries(CompiledExpr.java:214)↵ at c3.love.expr.bytecode.Expr_5995238269611654354_4929898767925782883.eval(Unknown Source)↵ at c3.service.metric.CompoundMetricEvaluator.evaluateCompiledExpr(CompoundMetricEvaluator.java:866)↵ at c3.service.metric.CompoundMetricEvaluator.evaluateMetricsForSource(CompoundMetricEvaluator.java:627)↵ at c3.service.metric.CompoundMetricEvaluator.evaluateMetrics(CompoundMetricEvaluator.java:834)↵ at c3.service.metric.MetricEngine.evalMetricsBatch(MetricEngine.java:424)↵ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)↵ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:497)↵ at c3.server.engine.AnnotatedEngine.invokeMethod(AnnotatedEngine.java:421)↵ at c3.server.engine.AnnotatedEngine.execute(AnnotatedEngine.java:354)↵ at c3.server.impl.Task.doFilter(Task.java:251)↵ at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:198)↵ at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:125)↵ at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:196)↵ at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:166)↵ at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:81)↵ at c3.server.impl.Task.run(Task.java:187)↵ at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:400)↵ at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:306)↵ at c3.love.dbfacade.DbFacade.dispatch(DbFacade.java:646)↵ at c3.engine.analytics.loader.CompoundMetricDataLoader.loadData(CompoundMetricDataLoader.java:164)↵ at c3.engine.analytics.loader.CompoundMetricDataLoader.loadData(CompoundMetricDataLoader.java:44)↵ at c3.engine.analytics.loader.ACDataLoader.load(ACDataLoader.java:264)↵ at c3.engine.analytics.loader.ACDataLoader.loadOffers(ACDataLoader.java:207)↵ at c3.engine.analytics.ACTriggerBaseTask.processAndLoadOffers(ACTriggerBaseTask.java:480)↵ at c3.engine.analytics.ACTriggerBaseTask.primeCachesForWaveZero(ACTriggerBaseTask.java:474)↵ at c3.engine.analytics.ACTriggerBaseTask.triggerDFEsForInvalidationPeriod(ACTriggerBaseTask.java:555)↵ at c3.engine.analytics.ACTriggerBaseTask.triggerDFEs(ACTriggerBaseTask.java:533)↵ at c3.engine.analytics.ACTriggerBaseTask.triggerDFEs(ACTriggerBaseTask.java:499)↵ at c3.engine.analytics.FireAnalyticsTask.call(FireAnalyticsTask.java:112)↵ at c3.engine.analytics.AnalyticsContainer.fireAnalytics(AnalyticsContainer.java:251)↵ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)↵ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)↵ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)↵ at java.lang.reflect.Method.invoke(Method.java:497)↵ at c3.server.engine.AnnotatedEngine.invokeMethod(AnnotatedEngine.java:421)↵ at c3.server.engine.AnnotatedEngine.execute(AnnotatedEngine.java:354)↵ at c3.server.impl.Task.doFilter(Task.java:251)↵ at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:198)↵ at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:125)↵ at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:196)↵ at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:166)↵ at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:81)↵ at c3.server.impl.Task.run(Task.java:187)↵ at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)↵ at java.util.concurrent.FutureTask.run(FutureTask.java:266)↵ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)↵ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)↵ at java.lang.Thread.run(Thread.java:745)↵↵srcId=SMBLB1↵srcId=SMBLB1”
name
:
“ActionError”


#6

Yep that looks like the relevant part of the message^^

Make that evalMetric call and see what you can see.