Solved

SSIS Error : script is not pre-compiled

Posted on 2013-06-17
1
822 Views
Last Modified: 2016-02-11
Hi There,
I've been getting this message today when I run an existing SSIS task I had set up:
"The task cannot execute in 64-bit environment because the script is not pre-compiled. Please turn on the option to pre-compile the script in the task editor. "

This seems to be because of  a recent change in the common language runtime (CLR) workstation runtime (Mscorwks.dll) for builds of the Microsoft .NET Framework 2.0 later than 2.0.50727.832. The change introduces a binary-compatibility problem for the Microsoft Visual Basic runtime engine (Vsavb7rt.dll) that VSA and SSIS use. The problem prevents assemblies from generating correctly during the macro compilation operation. This problem causes existing packages that contain compiled scripts not to execute.


So I went to the MS website for a hotfix: http://support.microsoft.com/kb/931846
And have been reading through this, but when it tells me what type of fix to install - i'm totally confused, as none of them are relevant to my setup.

The method types for installing are:
1. Install SP2 -
2. And then if you don't want to install SP2 it would suggest that I was on SP1 then and gives me options for that.

my confusion lies in that when I checked my version type
Select @@version
 my results are:
"Microsoft SQL Server 2005 - 9.00.5000.00 (X64)  
Dec 10 2010 10:38:40   Copyright (c)
1988-2005 Microsoft Corporation  Enterprise Edition
(64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2) "

So now i'm unsure what to do now. has anyone had this problem before?
Thank you ,
P
0
Comment
Question by:Putoch
1 Comment
 

Accepted Solution

by:
Putoch earned 0 total points
ID: 39254731
Ok so I just spotted this blog:
http://ssis-dtsx.blogspot.com/2010/03/cannot-execute-in-64-bit-environment.html

And one thing I hadn't checked was to open each script task and go into the actual script and close it out so it would recompile it. This worked for me. I hope it will work for someone else if they have this issue.
Thanks,
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question