- Joined
- May 23, 2024
- Messages
- 7
- Reaction score
- 0
hi
i have integrated my CRM over MySQL. all is working good beside the call reporting:
here the according xml scenario
in the Log 3cxSystemService i have this exception
i'm using currenlty for testing a dummy sql
3cx version 20.0 release 6
i have integrated my CRM over MySQL. all is working good beside the call reporting:
here the according xml scenario
<Scenario Id="ReportCall" Type="SQLDatabase" EntityId="" EntityOrder="">
<Query SkipIf="[ReportCallEnabled]!=True||[ReportCallSQLStatement]==""||[EntityId]==""" DatabaseType="MySQL" ConnectionString="Server=[Server];Port=[Port];Database=[Database];Uid=[Username];Pwd=[Password];charset=utf8mb4;Allow User Variables=true;" StatementPasses="2" Statement="[ReportCallSQLStatement]" />
<Variables />
<Outputs AllowEmpty="true" />
</Scenario>
in the Log 3cxSystemService i have this exception
what can be the problem?2025/04/07 13:26:07.254|0011|Debg| [Npgsql.Connection] Closed connection to 127.0.0.1:5432/database_single
2025/04/07 13:26:07.255|0067|Erro| [Integration.Crm.Engine.CrmProcessor] CRM: Exception during call reporting
System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Boolean'.
at TcxLexicalParser.LexEvaluator.Or(IValueManager valueManager, Element arg1, Element arg2)
at TcxLexicalParser.LexEvaluator.ProcessInt(FunctionElement functionElement, IValueManager valueManager)
at TcxLexicalParser.LexEvaluator.Process(Element element, IValueManager valueManager, Boolean isFunctionArgument)
at Integration.Crm.Engine.ScenarioProcessorBase.ProcessSQLDatabaseQuery(ISQLClientFactory sqlClientFactory, ScenarioQuery query, IValueManager customManager, SqlQueryParameter[] queryParameters, CancellationToken token)
at Integration.Crm.Engine.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, SqlQueryParameter[] sqlQueryParameter, CancellationToken token)
at Integration.Crm.Engine.ScenarioProcessorBase.Execute(ProtocolScenario scenario, SqlQueryParameter[] sqlQueryParameter, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.ExecuteScenarioByName(String scenarioName, IEnumerable`1 parameters, Boolean useNoAuthProvider, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.ExecuteScenarioWithRetries(String scenarioId, Dictionary`2 parameters, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.ReportCall(CallEndedEvent callEndedEvent, CancellationToken token)
i'm using currenlty for testing a dummy sql
INSERT INTO calls (id, name, date_entered, date_modified, modified_user_id, created_by, description, deleted, assigned_user_id, duration_hours, duration_minutes, date_start, date_end, parent_type, parent_id, status, direction, reminder_time, email_reminder_time, email_reminder_sent) VALUES (UUID(), '3CX Journaling Test', NOW(), NOW(), '1', '1', 'Test call log entry from 3CX template.', 0, '1', 0, 1, NOW(), NOW(), NULL, NULL, 'Held', 'Inbound', -1, -1, 0);
my Version of 3cx is 20.0 release 6
3cx version 20.0 release 6
Last edited: