Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Config files priority Expand / Collapse
Author
Message
Posted Monday, May 5, 2014 12:07 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, August 15, 2016 10:43 AM
Points: 445, Visits: 1,027
I have a package that checked the enable configurations box to enable config files but I don't have a config listed in the package. The ssis pkg is deployed to the server and is called from a SQL Agent Job. The Job has the config set in the configurations tab. I renamed the actual file that the job will try to set the configuration to to try to get an error to ensure Im usiong the correct file. I'm getting an error stating that select permission is denied. Shouldn't I be getting an error saying that the config file couldn't be found?
Post #1567661
Posted Monday, May 5, 2014 12:21 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Wednesday, August 24, 2016 1:36 AM
Points: 15,289, Visits: 13,074
What's the actual error?

SSIS packages don't error out if a configuration is not found. They just give a warning and move on with the values specified during design time.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1567667
Posted Monday, May 5, 2014 12:23 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, August 15, 2016 10:43 AM
Points: 445, Visits: 1,027
Message
Executed as user: HNETNT\sqlwebdev. Microsoft (R) SQL Server Execute Package Utility Version 10.50.4000.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 1:55:16 PM Error: 2014-05-05 13:55:16.69 Code: 0xC002F210 Source: Create Tables Execute SQL Task Description: Executing the query " -- DROP BACKUP TABLES IF THEY EXIST /****** Obje..." failed with the following error: "The SELECT permission was denied on the object 'objects', database 'mssqlsystemresource', schema 'sys'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 1:55:16 PM Finished: 1:55:16 PM Elapsed: 0.578 seconds. The package execution failed. The step failed.
Post #1567668
Posted Monday, May 5, 2014 3:08 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Friday, August 26, 2016 1:41 AM
Points: 5,841, Visits: 15,629
Further on what Koen said, you will have to test explicitly for the existence of the config file, common method is to have a variable with lets say 0 value in the design environment and another value in the config. There are smarter ways but this is simple and works.
Post #1567718
Posted Monday, May 5, 2014 3:10 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Wednesday, August 24, 2016 1:36 AM
Points: 15,289, Visits: 13,074
Eirikur Eiriksson (5/5/2014)
Further on what Koen said, you will have to test explicitly for the existence of the config file, common method is to have a variable with lets say 0 value in the design environment and another value in the config. There are smarter ways but this is simple and works.


Exactly. I use _notValid for string variables. If you encounter an error somewhere with _notValid in the error message, you know the configuration has failed.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1567719
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse