OmniTrader Forum - OmniTrader 2015 Technical Support
Procedure Call or Argument is not Valid

^ Top
Shortlandj

Posts: 38

Joined: 12/2/2005
Location: UK

User Profile
 
Subject : Procedure Call or Argument is not Valid
Posted : 5/2/2015 3:58 PM
Post #35357

Hi Support,

I have just installed OT 2015 and PR 2G on a new PC and I get the following error message when clicking on a symbol: "Error 5: Procedure call or argument is not valid. Occured in routine - COptionable .Save".

The error happens when 'On Demand Downloading' is checked under Data Settings and OT is attempting to load more data for the symbol.

After clicking OK on the error message the data for the symbol loads as normal.

I also get this error when trying to enter a trade using Trade Manager.

Any idea what the problem is?

I have attached a couple of logs.

Thanks

James
Attached file : OT_150502_215029.log (5KB - 470 downloads)
Attached file : OT_150503_140332.log (90KB - 1740 downloads)

^ Top
Barry Cohen

Posts: 6335

Joined: 1/19/2004

User Profile
 
Subject : RE: Procedure Call or Argument is not Valid
Posted : 5/4/2015 10:15 AM
Post #35361 - In reply to #35357

Looks like it has something to do with options. I would recommend contacting our support team. Otherwise can you try a new profile & see if the error continues? Have you tried an RT profile & does it get the same behavior? Is there an OptionablesV2.OTD file under ...\Program Files\Nirvana\OmniData\US?
^ Top
John J

Posts: 272

Joined: 8/3/2010
Location: Leduc, AB

User Profile
 
Subject : RE: Procedure Call or Argument is not Valid
Posted : 5/4/2015 10:04 PM
Post #35362 - In reply to #35361

Hi,

I encountered a similar problem but it went a way when I checked "Run this program as administrator" under Properties -> Compatability.

It's not sufficient to be logged in as an administrator it seems like. It took me hours to figure it out.

I also believe it's due to some recent security updates from MS...

^ Top
Barry Cohen

Posts: 6335

Joined: 1/19/2004

User Profile
 
Subject : RE: Procedure Call or Argument is not Valid
Posted : 5/5/2015 8:57 AM
Post #35363 - In reply to #35362

Thank you, Johnny. I can confirm that the error you had was exactly the same error as the one James is reporting, so maybe running as admin is all that is needed. James, please let us know if that helps.
^ Top
Shortlandj

Posts: 38

Joined: 12/2/2005
Location: UK

User Profile
 
Subject : RE: Procedure Call or Argument is not Valid
Posted : 5/5/2015 10:05 AM
Post #35364 - In reply to #35363

Barry, Johnny,

Thanks very much, that's solved it!

I can't believe the answer was so straight forward after I've been messing around with this for hours, installing and uninstalling..

So thanks for saving me from wasting any more time on this!

James
^ Top
John J

Posts: 272

Joined: 8/3/2010
Location: Leduc, AB

User Profile
 
Subject : RE: Procedure Call or Argument is not Valid
Posted : 5/5/2015 10:57 AM
Post #35365 - In reply to #35364

You're welcome James...

I think Nirvana needs to inform all current and future customers (running Win7 at least) that it is a prerequisite to have the mentioned checkbox ticked in order for OT to run properly. I have OT installed on two different computers, and I can confirm that the problem appeared on both of them. It's counterproductive having to search the forum for answers...
^ Top
SteveL

Posts: 262

Joined: 8/19/2005
Location: Boulder, CO

User Profile
 
Subject : RE: Procedure Call or Argument is not Valid
Posted : 12/22/2017 11:03 PM
Post #43929 - In reply to #35365

Barry,

This is an FYI comment on this error and John's solution.

For a while, one of my OT2018 installs was producing this same error reported by James and John. Before I went looking for this thread, I had found that this error only occurred on some symbols. In my case, it only occurred, as James reported, when "On-Demand Downloading" was selected. AND for me it only occurred on two symbols SPY and $SPX. It did not occur on $VIX or any of the S&P100 or NASDAQ100 symbols. Weird. I removed all strategies. The problem still occurred. So, it was unrelated to any indicators or strategies, and only triggered by loading one of these two symbols.

I found John's solution in this thread and enabled "Run program as administrator." That made the error go away. I then disabled "Run program as administrator" and the problem did NOT recur. I stopped OT, re-IPLed. And restarted OT withOUT "Run program as administrator." No error when loading SPY or $SPX with "On-Demand Downloading" enabled. The problem appears to be permanently fixed, and does not require running as admin. Go figure.

Thanks John. That error popup was annoying.



https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=10025&posts=7