Config files priority

  • 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?

  • 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.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • 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.

  • 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.

    😎

  • 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.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply