dbTalk Databases Forums  

DTSOlapProcess EXCEPTION_ACCESS_VIOLATION

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTSOlapProcess EXCEPTION_ACCESS_VIOLATION in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul Smith
 
Posts: n/a

Default DTSOlapProcess EXCEPTION_ACCESS_VIOLATION - 01-22-2004 , 01:43 PM






Hi,

Can anybody help me with this: -

I have DTS package that processes a cube, I added a Dynamic Properties task
in order to set the TreeKey property of the DTSOlapProcess. When I run the
package I get: -

Need to run the object to perform this operation
code execution exception: EXCEPTION_ACCESS_VIOLATION

I figured that maybe DTSOlapProcess is a bit flaky (remember issues under
v7) so I picked up some sample code from MSDN, namely: -

Set pkg = DTSGlobalVariables.parent
Set task = pkg.Tasks("DTSTask_DTSOlapProcess.Task_1")
Set props = task.Properties
props("ProcessOption").Value = 2
props("Datasource").Value = "FoodMart"
props("FactTable").Value = "sales_fact_1998"

I still get the same error, a bit of judicial comenting out indicates the
line causing the problem is: -
Set props = task.Properties

Does anybody have any ideas? its SP4

Thanks,
Paul



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DTSOlapProcess EXCEPTION_ACCESS_VIOLATION - 01-22-2004 , 02:26 PM






In message <upF3BAS4DHA.2612 (AT) tk2msftngp13 (DOT) phx.gbl>, Paul Smith
<nospam (AT) sagestore (DOT) com> writes
Quote:
Hi,

Can anybody help me with this: -

I have DTS package that processes a cube, I added a Dynamic Properties task
in order to set the TreeKey property of the DTSOlapProcess. When I run the
package I get: -

Need to run the object to perform this operation
code execution exception: EXCEPTION_ACCESS_VIOLATION

I figured that maybe DTSOlapProcess is a bit flaky (remember issues under
v7) so I picked up some sample code from MSDN, namely: -

Set pkg = DTSGlobalVariables.parent
Set task = pkg.Tasks("DTSTask_DTSOlapProcess.Task_1")
Set props = task.Properties
props("ProcessOption").Value = 2
props("Datasource").Value = "FoodMart"
props("FactTable").Value = "sales_fact_1998"

I still get the same error, a bit of judicial comenting out indicates the
line causing the problem is: -
Set props = task.Properties

Does anybody have any ideas? its SP4

Thanks,
Paul

Set the ActiveX Script Task to execute on the main package thread. The
OLAP task is written in VB, and due to the threading limitations of VB
it must be set to execute on the main thread, as must any other task
that "touches" it such as you ActiveX Script, or a Dynamic Properties
Task, or an Execute Package Task that calls a child package which
contains the OLAP task.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Paul Smith
 
Posts: n/a

Default Re: DTSOlapProcess EXCEPTION_ACCESS_VIOLATION - 01-24-2004 , 12:23 AM



Thanks Darren, wasn';t aware that the OLAP task was VB .....

"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
In message <upF3BAS4DHA.2612 (AT) tk2msftngp13 (DOT) phx.gbl>, Paul Smith
nospam (AT) sagestore (DOT) com> writes
Hi,

Can anybody help me with this: -

I have DTS package that processes a cube, I added a Dynamic Properties
task
in order to set the TreeKey property of the DTSOlapProcess. When I run
the
package I get: -

Need to run the object to perform this operation
code execution exception: EXCEPTION_ACCESS_VIOLATION

I figured that maybe DTSOlapProcess is a bit flaky (remember issues under
v7) so I picked up some sample code from MSDN, namely: -

Set pkg = DTSGlobalVariables.parent
Set task = pkg.Tasks("DTSTask_DTSOlapProcess.Task_1")
Set props = task.Properties
props("ProcessOption").Value = 2
props("Datasource").Value = "FoodMart"
props("FactTable").Value = "sales_fact_1998"

I still get the same error, a bit of judicial comenting out indicates the
line causing the problem is: -
Set props = task.Properties

Does anybody have any ideas? its SP4

Thanks,
Paul


Set the ActiveX Script Task to execute on the main package thread. The
OLAP task is written in VB, and due to the threading limitations of VB
it must be set to execute on the main thread, as must any other task
that "touches" it such as you ActiveX Script, or a Dynamic Properties
Task, or an Execute Package Task that calls a child package which
contains the OLAP task.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.