When I try to send the file by email, I get the following error.
2021/03/04 12:02:13.777|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - CallFlow.CFD.SurveyComponent 'Agente' - No more questions, playing goodbye prompts and generating results
2021/03/04 12:02:13.777|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - CallFlow.CFD.SurveyComponent 'Agente' - Start writing survey results to file '/tmp/pesquisa.csv':
Headers: Data,Agente,Numero Chamador,Nota,Duvida,Solicitacao
Values: 04/03/2021 12:01:54,,116,5,2,1
2021/03/04 12:02:13.777|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - CallFlow.CFD.SurveyComponent 'Agente' - End writing survey results to file '/tmp/pesquisa.csv'
2021/03/04 12:02:13.777|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - Start executing component 'EmailSender1'
2021/03/04 12:02:13.779|24350|0013|Err|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - Error executing last component: System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/3cxpbx/04/03/2021 12:01:54,,116,5,2,1'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at CallFlow.CFD.EMailSenderHelper.SendMail(LogFormatter logFormatter, String server, Int32 port, Boolean enableSSL, String userName, String password, String from, String to, String cc, String bcc, String subject, String body, Boolean isBodyHtml, MessagePriority priority, Boolean ignoreMissingAttachments, List`1 attachments)
at CallFlow.CFD.EMailSenderComponent.ExecuteStart()
at CallFlow.CFD.EMailSenderComponent.Start(TimerManager timerManager, Dictionary`2 variableMap, TempWavFileManager tempWavFileManager, PromptQueue promptQueue)
at _250_13.Main.ProcessStart()
2021/03/04 12:02:13.779|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - Start executing error handler flow...
2021/03/04 12:02:13.779|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - Start executing component 'errorHandlerAutoAddedFinalDisconnectCall'
2021/03/04 12:02:13.779|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - PromptQueue - Start playing file: /var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/surveykenerson/agradecimento.wav
2021/03/04 12:02:13.779|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-/var/lib/3cxpbx/Instance1/Data/Ivr/Prompts/Callflows/surveykenerson/agradecimento.wav
2021/03/04 12:02:18.828|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - OnPromptPlayed for component 'errorHandlerAutoAddedFinalDisconnectCall'
2021/03/04 12:02:18.828|24350|0013|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - CallFlow.CFD.DisconnectCallComponent 'errorHandlerAutoAddedFinalDisconnectCall' - No more files to play, disconnecting call...
2021/03/04 12:02:18.829|24350|0006|Inf|ScriptRunner.ScriptRunner-CallStorageSize=1(1)
2021/03/04 12:02:18.838|24350|0006|Inf|ScriptRunner.ScriptRunner-Removed CallID mapping on terminated connection for SIP dialog WP7t9bNoWejJSmTcezBdvQ..07deb5127
2021/03/04 12:02:18.838|24350|0006|Inf|ScriptRunner.ScriptRunner-CallStorageSize=1(0)
2021/03/04 12:02:18.958|24350|0006|Inf|ScriptRunner.ScriptRunner-FireTerminate and remove mapping for existing SIP dialogue WP7t9bNoWejJSmTcezBdvQ..07deb5127
2021/03/04 12:02:18.958|24350|0006|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: Main - Switching executing mode from Active to Wrapup
2021/03/04 12:02:18.958|24350|0006|Inf|ScriptRunner.ScriptRunner-CallStorageSize=0(0)
2021/03/04 12:02:18.959|24350|0011|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - OnCallTerminated for component 'errorHandlerAutoAddedFinalDisconnectCall'
2021/03/04 12:02:18.959|24350|0011|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - CallFlow.CFD.DisconnectCallComponent 'errorHandlerAutoAddedFinalDisconnectCall' - Processing OnCallTerminated
2021/03/04 12:02:18.959|24350|0011|Trc|CallPair._250_13.Main.6362.[C:2273.2]-From script: SurveyKenerson - CallID 00000177FDC26DFC_2273 - Callflow - Callflow finished, disconnecting call...
2021/03/04 12:02:18.959|24350|0011|?6?|CallPair._250_13.Main.6362.[C:2273.2]-Failed to process ICall.Terminate - connection does not exist