Hi guys,
I've implemented the VBA approach outlined here, to put "-3", the "-5" in the Market sheet, in cell Q2
http://www.gruss-software.co.uk/forum/v ... php?t=3558The Market sheet is reliably updated by BA with Market data. However, the nightly process to populate cell Q2 fails to refresh/reload markets in BA.
I run the script on a timer at 07:00hrs, at 01:00hrs, and even tried manually typing "-3" in the Q2 cell, without success.
The various BA error logs are either 0KB, or offer no clues... except for "BA_Diagnostic-YYYY-MM-DD.log", for example:
On BA startup....
28072019 11:55:16:018: Get account details response: xxxxxxxxxxx
28072019 11:55:16:038: Connecting to Betfair order stream
28072019 11:55:16:050: Session currency:GBP
28072019 11:55:16:159: Sending authentication to order stream.
28072019 11:55:16:167: {"op":"connection","connectionId":"204-280719105514-227609"}
28072019 11:55:16:225: {"op":"status","id":1,"statusCode":"SUCCESS","connectionClosed":false}
28072019 11:55:16:225: Betfair order stream subscribed.
28072019 11:55:16:225: Betfair order stream connected
28072019 11:55:16:225: Subscribing to orders
28072019 11:55:17:486: Application version:1.3.0.43a
28072019 11:55:17:486: Adding news page
28072019 11:55:17:767: News tab page added.
28072019 11:55:18:937: Requesting Tennis scores available events.
28072019 11:55:19:093T0: addMarkets(). Market type:UK WIN
28072019 11:55:19:164T0: addMarkets(). Market type:IRE WIN
After I connect BA to Excel, following ActiveX error seen:
28072019 11:57:32:694: Searching for Excel instances using path:C:\Users\xxxxxxxxx\Gruss_Betting_Assistant\, based on path of found workbook:C:\Users\xxxxxxxxx\Gruss_Betting_Assistant\Place_Bets.xls
28072019 11:57:32:694: Excel instance found:Place_Bets.xls [Compatibility Mode] - Excel
28072019 11:57:32:698: Excel workbook found:Place_Bets.xls
28072019 11:57:32:698: Excel instance found:
28072019 11:57:32:698: Excel workbook found:
28072019 11:57:32:737: System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.GetObject(String PathName, String Class)
at Betting_Assistant.ExcelOptions.populateWorkBooks(String openWBName)
28072019 11:57:32:737: System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.VisualBasic.CompilerServices.VBBinder.InvokeMember(String name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object target, Object[] args, String[] namedParameters)
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at Betting_Assistant.ExcelOptions.populateWorkBooks(String openWBName)
28072019 11:57:35:127: Excel logging activated.
28072019 11:57:35:127: Include pre-settled in results:False
Question: Would it be possible to get BA to log the name of the component it's failing to create please?
Thanks
Nick