Hi, I have set up several scripts for Connect, using JDBC to SQL etc., and all working ok, except there is a new requirement to alert someone if anything fails. They want to use a windows scheduler, but has anyone been able to write any scripts to send an email automatically when connect encountrers an error? Many Thanks
Solved! Go to Solution.
Using C:\Projects\SalesTally\Tools\anaplan-connect\src\anaplan-connect-1-3-3-3.jar Anaplan Connect 1.3.3-3 Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)/25.101-b13 (1.8.0_101) Windows 7 (amd64)/6.1 Oct 18, 2016 11:18:24 AM com.anaplan.client.Service getTransportProvider INFO: UA: com.anaplan.client.Service/1.3.3-3 (ApacheHttpProvider; GsonHandler; Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)/25.101-b13 (1.8.0_101); Windows 7 (amd64)/6.1) Oct 18, 2016 11:18:24 AM com.anaplan.client.transport.ApacheHttpProvider get INFO: GET /1/3/workspaces/ HTTP/1.1 Oct 18, 2016 11:18:24 AM com.anaplan.client.transport.ApacheHttpProvider$2 determineRoute INFO: {tls}->http://10.16.3.231:80->https://api.anaplan.com:443 () Oct 18, 2016 11:18:25 AM com.anaplan.client.transport.ApacheHttpProvider checkResponse INFO: HTTP/1.1 200 OK Oct 18, 2016 11:18:25 AM com.anaplan.client.transport.ApacheHttpProvider get INFO: GET /1/3/workspaces/8a81b09455d1444c0155efb51e372144/models HTTP/1.1 Oct 18, 2016 11:18:26 AM com.anaplan.client.transport.ApacheHttpProvider checkResponse INFO: HTTP/1.1 200 OK Oct 18, 2016 11:18:26 AM com.anaplan.client.transport.ApacheHttpProvider get INFO: GET /1/3/workspaces/8a81b09455d1444c0155efb51e372144/models/C84FDDB7D8014E8FA9C707D633254D55/files HTTP/1.1 Oct 18, 2016 11:18:27 AM com.anaplan.client.transport.ApacheHttpProvider checkResponse INFO: HTTP/1.1 200 OK Oct 18, 2016 11:18:27 AM com.anaplan.client.transport.ApacheHttpProvider post INFO: POST /1/3/workspaces/8a81b09455d1444c0155efb51e372144/models/C84FDDB7D8014E8FA9C707D633254D55/files/SS_JDBC_Test1 HTTP/1.1 Oct 18, 2016 11:18:28 AM com.anaplan.client.transport.ApacheHttpProvider checkResponse INFO: HTTP/1.1 200 OKBelow is my Operation parameters in the batch file:
set Operation=-debug -v "xxx" -file "JDBC_Test1" -jdbcurl "jdbc:sqlserver://localhost" -jdbcuser "xxx:xxx" -jdbcfetchsize 10 -jdbcquery "SELECT TOP 20 * FROM AdventureWorksDW2012.dbo.DimEmployee" -output "C:\Projects\SalesTally\Tools\anaplan-connect\src\logs\SS_JDBC_Test1_Errors.log"