DBSS doesnt run at runtime but ok in Step Into

Post Reply
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

DBSS doesnt run at runtime but ok in Step Into

Post by telula »

Hello,
I have a DBSS that is called from a VB procedure. However,during run time, it doesnt seem to send the values through. However, when I debug the code and do a Step Into, it sends the data to the cube.Has anyone faced that problem?
Alan Kirk
Site Admin
Posts: 6644
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: DBSS doesnt run at runtime but ok in Step Into

Post by Alan Kirk »

telula wrote:Hello,
I have a DBSS that is called from a VB procedure. However,during run time, it doesnt seem to send the values through. However, when I debug the code and do a Step Into, it sends the data to the cube.Has anyone faced that problem?
You haven't indicated whether you have a DBSS in a sheet which you're recalculating by (say) Application.Run "TM1RECALC1", or whether you're directly running a DBSS formula itself via Application.Run.

I shan't ask.

In either case, try using a DBSW instead of a DBSS. Yes, a DBSW will work with strings as well.

Quite often a DBSS, when run by VBA, will send the value through. However it won't change the values of any corresponding DBRWs which are reading the value until you recalculate them. The DBRW will appear to be unchanged.

If you use DBSW instead, all values will be updated.

You haven't indicated whether "it doesnt seem to send the values through" based on DBRW formulas, or on the log file.

I shan't ask.

In any case, DBSW is probably the solution that you need.

You're welcome.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
nhavis
Posts: 62
Joined: Mon Jan 05, 2009 12:47 am

Re: DBSS doesnt run at runtime but ok in Step Into

Post by nhavis »

I commonly come across errors/bugs in VBA code that suddenly seem to disappear once I use breakpoints and step through the code.
Post Reply