BA cannot see the sheets in spreadsheet

Please post any questions regarding the program here.

Moderator: 2020vision

BA cannot see the sheets in spreadsheet

Postby Josy » Sat Jan 07, 2012 8:12 am

Hello,

I have problem to connect to my spreadsheet.
It happens randomly. I tried all solutions I found on the Forum but no solution yet.
If I open a new file it can see the sheets in it.
It's still working when I put in my codes but when I try it next day it doesn't work anymore. :?
I removed BA 11066x83 and installed 11066x82 but no difference.
Anybody has a clue what it depends on that BA can see sheets or not? :?:

BTW does it add any clue to the above:

System.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.GetObject(String PathName, String Class)
at Betting_Assistant.ExcelOptions.populateWorkBooks(String openWBName)
in C:\Betting Assistant Beta 1_1_0_66x68\Betfair Trading API Beta\ExcelOptions.vb:line 647
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby MarkRussell » Sat Jan 07, 2012 10:57 am

Hi,

I've had this happen to me and discovered that there was something wrong in my code.
I corrected the code and then it worked ok.

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1793
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Postby Josy » Sat Jan 07, 2012 11:47 am

Thank you Mark for your reply.
That's what I am doing right now but didn't find it yet. :oops:
Be back if found.
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby 2020vision » Sat Jan 07, 2012 12:26 pm

Josy wrote:Anybody has a clue what it depends on that BA can see sheets or not?


Try putting all sheets in and loading from the same folder?

Any good? Michael :wink:
User avatar
2020vision
Moderator
 
Posts: 605
Joined: Sun Feb 17, 2008 10:24 pm
Location: Nottingham

Postby Josy » Sun Jan 08, 2012 5:11 am

2020vision wrote:Try putting all sheets in and loading from the same folder?

Any good? Michael :wink:


Hello Michael,

I afraid there is a misunderstanding. BA can see my Workbook but couldn't see the Sheets inside it.

Anyway it looks solved but I am not satisfied as I don't know what fixed it as I gave up and made a new Workbook.
But now I have another problem.
My new Workbook can be connected to BA but when it starts recording Excel freezing completely (it takes 98-99% of CPU time).
There is only 1 file populated by BA - the BA Diagnostic.txt but I don't understand it.
If somebody can decrypt it and let me know what is the problem that would be great. Here it is:

System.Exception: Error copying Excel cells.
System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateSet(Object o, Type& objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, CallType UseCallType)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean RValueBase, CallType CallType)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments)
at Betting_Assistant.Excel.setCells(Object xlRange, Object[,] wCells, String action) in C:\Betting Assistant Beta 1_1_0_66x68\Betfair Trading API Beta\Excel.vb:line 988
at Betting_Assistant.Excel.ExcelUpdateThread() in C:\Betting Assistant Beta 1_1_0_66x68\Betfair Trading API Beta\Excel.vb:line 2244
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby Josy » Mon Jan 09, 2012 1:50 pm

Hello,

Anybody can help me with the above error message?
Thank you in advance.
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby GaryRussell » Mon Jan 09, 2012 5:35 pm

Does your workbook contain VBA code? It could be your code causing this issue.

Does this error appear in a new workbook without code?
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Josy » Mon Jan 09, 2012 9:55 pm

Hi Gary,

Thank you for your answer.
This error doesn't appear with new workbook without code.
And yes, my workbook contain codes but I can't find any errors.
The code could be a bit long but simple.
It looks working with one market but as soon as I add one more it freezes the Excel
however the code in 2nd sheet is the same as in the 1st except I use different variables and record to different sheet
(2 market recorded to 2 different sheets).
Do you know what these 988 and 2244 errors mean?
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby GaryRussell » Tue Jan 10, 2012 11:28 am

Those are line numbers in my code so yes I understand what they mean, but that just confirms BA is in some way being blocked from updating Excel because it receives RPC_E_SERVERFAULT error.

I strongly suspect your code is keeping Excel busy so that BA cannot update it. If you send a copy of the spreadsheet to admin@gruss-software.co.uk with instructions how to use it I could take a look to confirm this.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Josy » Tue Jan 10, 2012 12:17 pm

Thank you Gary.
I am on it.
Thanx.
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby GaryRussell » Wed Jan 11, 2012 9:33 am

I have received your spreadsheet and replied to your email. There was an error message displayed in Excel preventing BA from updating it.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Josy » Wed Jan 11, 2012 10:55 am

Thank you Gary so much.
I am going to check it right now.
Thank you for your time and help.
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby Josy » Wed Jan 11, 2012 1:46 pm

Thank you Gary again.
You found my mistake, it's not freezing the Excel anymore.

Now I have to face another problem as it stops recording after ~45-50 minutes...
Still looking for reason it stops.
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am

Postby Josy » Sat Jan 14, 2012 11:19 am

Couldn't find the reason it stops recording after 1st half but have an idea.
Anyway I implemented a workaround so it's now working good.
User avatar
Josy
 
Posts: 30
Joined: Wed Dec 28, 2011 8:28 am


Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 84 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.