Hello,
We are trying to use OpenDataExporter to get participant data values. Similarly to the other post in the Developer forum on this topic, we are getting the error:
loading config from ./examples/call_detail_report/config.json
Initializing logger for api at level silly
Initializing logger for TemplateDefinitions at level silly
Initializing logger for executor at level silly
debug: [TemplateDefinitions] Loading standard module "dataOperations" from dataOperations.js
debug: [TemplateDefinitions] Loading standard module "datetimeOperations" from datetimeOperations.js
Initializing logger for main at level silly
verbose: [executor] Configuration successfully dereferenced
verbose: [executor] Executor initialized
info: [main] /runnow flag was used, commencing single execution of jobs...
debug: [executor] Executing job: CDR job at Thu Dec 02 2021 11:08:22 GMT-0600 (Central Standard Time)
Initializing logger for job:CDR job at level silly
debug: [TemplateDefinitions] Loading standard module "dataOperations" from dataOperations.js
debug: [TemplateDefinitions] Loading standard module "datetimeOperations" from datetimeOperations.js
debug: [TemplateDefinitions] Loading standard module "dataOperations" from dataOperations.js
debug: [TemplateDefinitions] Loading standard module "datetimeOperations" from datetimeOperations.js
debug: [job:CDR job] Loading module to def.cdr_module from ./examples/call_detail_report/extensions.js
verbose: [job:CDR job] Processing execution plan for CDR Configuration
debug: [job:CDR job] singlecdr_request strategy:
debug: [job:CDR job] request done
verbose: [job:CDR job] Executing transform: {{#def.cdr_module.addSegmentsToParticipant(def.data.cdr_request)}}
verbose: [job:CDR job] Executing transform: {{#def.vars.conversationIds=def.cdr_module.coalesceConversationIds(def.data.cdr_request)}}
debug: [job:CDR job] repeatcdr_conversation_details_request strategy:
verbose: [executor] getconversations complete
debug: [job:CDR job] request done
verbose: [job:CDR job] Executing transform: {{#def.cdr_module.aggregateParticipantAttributes(def.data)}}
verbose: [job:CDR job] Executing transform: {{#def.cdr_module.ensureAttributes(def.data.cdr_request)}}
verbose: [job:CDR job] Executing transform: {{#def.dataOperations.writeData(def.data, '../local/call_detail_report/data.json')}}
debug: [job:CDR job] Execution plan complete
verbose: [job:CDR job] Executing templates...
verbose: [job:CDR job] Executing template: CDR template
verbose: [executor] ./examples/call_detail_report/cdr_template.htmlLoading template from
error: [job:CDR job] TypeError: Cannot read property 'length' of undefined
at CDR.countArray (C:\SurveyToArchitect\open-data-exporter-master\src\examples\call_detail_report\extensions.js:23:13)
at eval (eval at (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:12), :3:23)
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:49
at String.replace ()
at resolveDefs (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:74:4)
at Object.doT.template (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:95:33)
at executeTemplate (C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:269:21)
at C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:206:18
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:4967:15
at baseForOwn (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:3032:24)
error: [executor] TypeError: Cannot read property 'length' of undefined
at CDR.countArray (C:\SurveyToArchitect\open-data-exporter-master\src\examples\call_detail_report\extensions.js:23:13)
at eval (eval at (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:12), :3:23)
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:49
at String.replace ()
at resolveDefs (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:74:4)
at Object.doT.template (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:95:33)
at executeTemplate (C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:269:21)
at C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:206:18
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:4967:15
at baseForOwn (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:3032:24)
error: [executor] TypeError: Cannot read property 'length' of undefined
at CDR.countArray (C:\SurveyToArchitect\open-data-exporter-master\src\examples\call_detail_report\extensions.js:23:13)
at eval (eval at (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:12), :3:23)
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:49
at String.replace ()
at resolveDefs (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:74:4)
at Object.doT.template (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:95:33)
at executeTemplate (C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:269:21)
at C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:206:18
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:4967:15
at baseForOwn (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:3032:24)
error: [main] TypeError: Cannot read property 'length' of undefined
at CDR.countArray (C:\SurveyToArchitect\open-data-exporter-master\src\examples\call_detail_report\extensions.js:23:13)
at eval (eval at (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:12), :3:23)
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:83:49
at String.replace ()
at resolveDefs (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:74:4)
at Object.doT.template (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\dot\doT.js:95:33)
at executeTemplate (C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:269:21)
at C:\SurveyToArchitect\open-data-exporter-master\src\executor.js:206:18
at C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:4967:15
at baseForOwn (C:\SurveyToArchitect\open-data-exporter-master\src\node_modules\lodash\lodash.js:3032:24)
data.json says:
{
"cdr_request": {
"totalHits": 0
}
}
despite there being calls made into the system.
In trying to troubleshoot this issue, we tried to use the API explorer to get the calls history, with this result for interval 2021-11-30/2021-12-02:
{
"entities": [],
"pageSize": 0,
"pageNumber": 1,
"total": 0,
"firstUri": "/api/v2/conversations/calls/history?pageSize=0&pageNumber=1",
"selfUri": "/api/v2/conversations/calls/history?pageSize=0&pageNumber=1",
"lastUri": "/api/v2/conversations/calls/history?pageSize=0&pageNumber=1",
"pageCount": 0
}
There is no data returned for calls history, despite a call just being made on 2021-12-02. The call made on 2021-12-02 is returned with the API call GET/api/v2/conversations/calls/453da577-0034-4eee-8556-9abaa4621fb6
Thanks for any suggestions on this topic.