Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Yesterday @ 8:25 AM
Points: 355, Visits: 803
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


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:44 AM
Points: 13,562, Visits: 11,372
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 LessThanDot.

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

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Yesterday @ 8:25 AM
Points: 355, Visits: 803
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
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 12:54 PM
Points: 2,419, Visits: 6,721
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


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:44 AM
Points: 13,562, Visits: 11,372
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 LessThanDot.

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

Add to briefcase

Permissions Expand / Collapse