The connection "" is not found. SSIS - ssis

When I open a new simple SSIS Project I created I get an error:
'Error loading HyperionFlatLoads.dtsx: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.
C:\Users...\Projects\Hyperion_Load_Actuals\Hyperion_Load_Actuals\HyperionFlatLoads.dtsx
I've looked everywhere for this reference and can't for the life of me figure out what it's missing. The package runs fine; the data moves into the SQL table - but this error persists. Anyone want to help me find out why and eliminate this?

You can view and edit dtsx file as regular XML file. So, open it and find
<DTS:ConnectionManagers>
<DTS:ConnectionManager ... DTS:ObjectName="CM name">
if you are using SSIS 2012+
or
<DTS:ConnectionManager>
...
<DTS:Property DTS:Name="ObjectName">CM name</DTS:Property>
if you are on SSIS 2008.
Remove node <DTS:ConnectionManager> and save the file.

I want to add an alternative solution that I was facing for others who may stumble across this post.
I had setup logging, but forgot to specify a connection manager. This took me forever to find because viewing the XML doesn't make it obvious where "" is.

Related

There was an error while loading the package SSIS

I have created one SSIS package for data flow and its perfectly working fine for me (with my credentials). However, when its opened by another person with another login ID (credentials) its showing error:
Please see the below screenshot.Looks like its an access error. How can I give access so that anyone can open it.
The error I'm getting is :
the operation failed because the databse manager failed to access either the databse manager configuration file or the database configuration file.
There ware errors while loading the package. See the error list for details.
Error loading Package.dtsx. Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified satte. You may not be
authorized to access this information. This occurs when there is a cryptographic error. Verify that the correct key is available.
Upon searching on net. I think I can set "DontSaveSensitive". However,unable to find out how to do this? Whats are the steps I need to follow?
Link : https://learn.microsoft.com/en-us/sql/integration-services/security/access-control-for-sensitive-data-in-packages
How to resolve this?
Kudos for pinpointing issue. To solve it:
Open project solution from working credentials.
Right click on project.
Go to properties
Change the security level to DontSaveSensitive.
I've answered your question about unable to find out how to do this
Hope this works. Else come back here and we might suggest different approach.

Unusual Message Source Name in SSIS standard Report

Usually, in a dtsx Standard Report, there is a column "Message Source Name" that indicates which dtsx threw the error or raised the event.
Now i get "Transact-SQL stored procedure" and of course I don't have such a dtsx.
So, question #1 is: Where should I go to check the error?
Besides, the error is: An error occurred while setting the value of a property "InitialCatalog". The error returned is 0x80020009. The connection string components cannot contain unquoted semicolons....
My dtsx were doing fine and I was publishing dtsx on a regular basis with no problems. Then, I changed the name of a ConnectionManager and took care of changing this name wherever it appeared.
After this fateful move, I cannot manage to restore the previous situation. Even rollbacking all changes through TFS and going back to the previous names doesn't solve the matter.
I checked also the environment I am using and the configuration of the job that launches the dtsx, to no avail.
If I execute the dtsx on my development machine, from visual studio, it works fine. The problem arises in production enviroment when I use the job configured with the environment. In the project configuration and in the environment configuration I don't see what an "unquoted semicolumn" could be.
The value of the connection string that is indicated as having an error looks like:
Data Source=11.1.1.11,1111;Initial Catalog=MyDB;Provider=SQLNCLI11.1; Integrated Security=SSPI ;Auto Translate=False;
Question #2 is: Where could this connection string with unquoted semicolon be?
Thx.
With much effort I managed to find an answer to Question #2:
I am using parametrized connection managers, so I have a project parameter (let's call it PP1) in my dtsx with the connString.
During configuration of the SSIS project I need to give a value ONLY for the parameter PP1, and NOT for the connection string.
What I did wrong was to give the Environment Variable with the connString to the Property "Initial Catalog". Therefore, SSIS was lamenting of the presence of ";" (the ones in the connString) in the InitialCatalog.

SSIS: Data Conversion Package failed

I was trying to load a table from Excel Source to SQL Server Destination with a data conversion transformation task using SSIS Package. but when I ran the package, it failed with the following error messages
===================================
Failure saving package. (Microsoft Visual Studio)
------------------------------
Program Location:
at Microsoft.DataTransformationServices.Design.Serialization.DtrDesignerSerializer.SerializePackage(IDesignerSerializationManager manager, Package package, TextWriter textWriter)
at Microsoft.DataTransformationServices.Design.Serialization.DtrDesignerSerializer.SerializeComponent(IDesignerSerializationManager manager, IComponent component, Object serializationStream)
at Microsoft.DataWarehouse.Serialization.DesignerComponentSerializer.Serialize(IDesignerSerializationManager manager, Object value)
at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.DataWarehouseDesignerLoader.Serialize()
at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.BaseDesignerLoader.Flush(Boolean forceful)
at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.BaseDesignerLoader.Flush()
at Microsoft.DataWarehouse.VsIntegration.Designer.Serialization.DataWarehouseContainerManager.OnBeforeSave(UInt32 docCookie)
===================================
An invalid character was found in text content.
(msxml6.dll)
------------------------------
Program Location:
at Microsoft.SqlServer.Dts.Runtime.Package.SaveToXML(String& packageXml, IDTSEvents events)
at Microsoft.DataTransformationServices.Design.Serialization.DtrDesignerSerializer.SerializePackage(IDesignerSerializationManager manager, Package package, TextWriter textWriter)
===================================
An invalid character was found in text content.
(msxml6.dll)
------------------------------
Program Location:
at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackagePersist100.SavePackageToXML(Object& pvDestination, Boolean vbReturnDOM, IDTSEvents100 pEvents)
at Microsoft.SqlServer.Dts.Runtime.Package.SaveToXML(String& packageXml, IDTSEvents events)
I had the same issue, and found that the file I was attempting to import had a non-printing character at the end of the second header. Removing this fixed the issue.
Since you're looking to resolve this "urgently", I'll make both a short-term and long-term suggestion:
1) For the short-term, a practical approach:
Does it work, in your situation, to load the spreadsheet in sections?
Will it hurt anything, for you to re-try/re-do the load multiple times, to find the problem?
Or, can you try this load in a test environment?
If so, then try loading the first-half, or the first-1/4, or first 10 rows, etc., until you find the row that's causing the problem. At the very least, you can then load everything but that row... at best, maybe the problem will be easy to find, at that point.
2) For the long-term... do you (or somebody there) have access to modifying the SSIS package?
If so, then I recommend coding error row redirection, within the Data Flow Task: rows with problems go to another destination (red arrow), while rows without problems go to the usual destination (green arrow).
For more on error row redirection, see these links:
A) Intro: Handling Errors in Data
B) Some issues others have run into:
Programmatically configuring error and truncation dispositions for row redirection
Hope that helps...

VS2012 Model First EF: CSDL, MSL, SSDL. System cannot find the file specified MYSQL

I get errors on build stating 'The System cannot find the file specified' for each of the 3 metadata files 'CSDL, MSDL, SSDL'
Able to generate model from DB fine, connection string fine. Reinstalled the correct connector just fine and MYSQL as a provider appears fine in VS2012.
The 'Metadata Artifact Processing' propery on the model is set to 'Embed in Output Assembly' as instructed.
Out of ideas and hours to keep hunting, would really appreciate a fix here.
This was happening as I had a build script that deleted these metadata files as a result.
Sorry, my bad.

nonfatal error in SSIS package from deleted Script Task

I am working in BIDS for 2008 R2
I have an annoying issue that I have not found the solution to yet. The error message is below. The line of code the error message refers to was from a Script Task that I deleted yesterday. My SSIS package executes fine and I am getting close to publishing the production version. I would like to clean up this non-fatal error first.
Would anyone have any suggestions on how to clear this up?
Thanks!
*Attempt to parse the expression "#[User::SS_Directory] +"''" + #["User::SS_InputFolderName] + "\" + #[User:SS_InputFileName]" failed and returned error code 0xC00470A6. The expression cannot be parsed. It might contain invalid elements or it might no be well-formed. There may also be an out-of-memory error.*
try
to rename the pkg and rebuild it, then rename back again.
check the connection manager
use format -> auto layout- diagram
open as text and lok for the string in the error
Mario