Error open data exporter "cron pattern not valid"

Hello, I am trying to make open data exporter work, and when I go to start node index.js, the error that it indicates, even installing cron, updating it, updating node etc is always the same: cron pattern not valid"

x:\xxxx\xxxx\xxxx\xxxx\xxxxxx\open-data-exporter\src>node index.js
loading config from ./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
(node:19568) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
verbose: [executor] Configuration successfully dereferenced
verbose: [executor] Executor initialized
verbose: [main] Running "" at interval ""
cron pattern not valid

Can you help me?

Thnks

Hello,

I have already fixed the error, but now how can I see the data in .html?

Thank you

The template you run for the export can export to html. For example: Example | Call Detail Report · MyPureCloud/open-data-exporter Wiki · GitHub

Hola Tim, ya tengo esto solucionado, por otro lado necesito extraer los wrapupcode, pero no consigue extraerlos, es correcto como lo estoy plantenado?
const wrapUpSegment = conversation.segments && conversation.segments.find(segment => segment.segmentType === "wrapup");
console.log("WrapUpSegment:", wrapUpSegment);
const wrapUpCode = wrapUpSegment?.wrapUpCode || '';
console.log("WrapUpCode:", wrapUpCode);

thnks

Assuming you're working with the response to POST /api/v2/analytics/conversations/details/query, I think your condition is correct, but you're looking in the wrong place. A conversation doesn't directly have segments. Segments are located on the session, so you would need to do something like conversation.participants.find(participant => participant.sessions.find(session => session.segments.find(segment => segment.segmentType === "wrapup")). (I don't think this code does exactly what you're looking for, but hopefully it conveys drilling down to find the segment.)


Suponiendo que está trabajando con la respuesta a POST /api/v2/analytics/conversations/details/query, creo que su condición es correcta, pero está buscando en el lugar equivocado. Una conversación no tiene segmentos directamente. Los segmentos se encuentran en la sesión, por lo que deberá hacer algo como conversation.participants.find(participant => participant.sessions.find(session => session.segments.find(segment => segment.segmentType === "wrapup")). (No creo que este código haga exactamente lo que está buscando, pero espero que transmita la profundización para encontrar el segmento.)

Hello, finally add the jsonpath library and I was able to map it correctly.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.