| | 73 | |
| | 74 | |
| | 75 | |
| | 76 | == faq 4. Automatisch SMS versturen werkt niet sinds 2.016 == |
| | 77 | [=#faq4] |
| | 78 | |
| | 79 | '''Probleemstelling:''' Sinds upgrade naar 2.016 werkt het commando Python27\python.exe script.py verstuur_herinneringen --no-email niet meer. Wij voeren dit uit via een task scheduler |
| | 80 | |
| | 81 | |
| | 82 | |
| | 83 | '''Foutmelding''': |
| | 84 | - In de logfile staat aan het eind. {{{ "include.console.Error: U dient een AGB-locatie te selecteren }}} |
| | 85 | - In de logfile staat eventueel {{{ logica.connect("admin", password, headless = True) }}} |
| | 86 | - Fragment van de logfile: |
| | 87 | |
| | 88 | {{{ |
| | 89 | |
| | 90 | C:\Program Files (x86)\OpenAC_ACE>Python27\python.exe script.py verstuur_herinne |
| | 91 | ringen --no-email |
| | 92 | [2017-11-23 13:25:37]:ERROR:openac.configuratie:Configuratiebestand 'C:\Users\ad |
| | 93 | m-rosen\AppData?\Roaming\OpenAC\config.tsv' is niet leesbaar |
| | 94 | [2017-11-23 13:25:37]:ERROR:openac.logica:TSV-bestand 'C:\Program Files (x86)\Op |
| | 95 | enAC_ACE\adaptaties\standaard\codetabellen\agb_locatie.tsv' kan niet worden geop |
| | 96 | end. |
| | 97 | [2017-11-23 13:25:37]:ERROR:openac.logica:C:\Program Files (x86)\OpenAC_ACE\adap |
| | 98 | taties\standaard\codetabellen\agb_locatie.tsv bestaat niet. |
| | 99 | Traceback (most recent call last): |
| | 100 | File "script.py", line 124, in <module> |
| | 101 | start_script(script_naam, argumenten, adaptatie) |
| | 102 | File "script.py", line 70, in start_script |
| | 103 | logica.connect("admin", password, headless = True) |
| | 104 | File "C:\Program Files (x86)\OpenAC_ACE\logica\init.py", line 516, in conn |
| | 105 | ect |
| | 106 | raise console.Error("U dient een AGB-locatie te selecteren.", trace = False) |
| | 107 | include.console.Error: U dient een AGB-locatie te selecteren. |
| | 108 | |
| | 109 | }}} |
| | 110 | |
| | 111 | '''Diagnose''' |
| | 112 | - stap 1) Kijk of path Python27\python.exe in je path staat |
| | 113 | - stap 2) Staat in de logfile dat een bestand niet beschikbaar is echter dit tsv bestand bestaat wel degelijk en in de logfile staat {{{ logica.connect("admin", password, headless = True) }}} dan betekend het script problemen heeft met het inloggen en selecteren van een AGB locatie context. |
| | 114 | |
| | 115 | |
| | 116 | '''Oplossing''' |
| | 117 | - stap 1) Indien de constatering van stap 2) van toepassing is, dan is de oplossing om OpenAC minimaal 1 keer op te starten en als een gebruiker in te loggen. Doet dit eerst. |
| | 118 | - stap 2) Voer daarna het script uit via command line of de taskscheduler. |
| | 119 | - stap 3) Als bovenstaande niet lukt, neem dan contact op met de supportdesk van Fenac. |