C# Application.LoadPackage with Project Level DataSource Connections

I'm trying to use the .NET C# framework to make changes to a number of SSIS 2012 packages.
I am trying to use the LoadPackage method of the Application class to open the package, update a variable, and save the package.
The issue that I'm encountering is that the package contains a reference to an project-level connection.  When I save the change, it saves the change fine, but marks all the external connections as invalid.
connectionManagerID="{B0E1693D-0BCA-4D24-AEFC-97F81E37432C}:external"
becomes
connectionManagerID="{B0E1693D-0BCA-4D24-AEFC-97F81E37432C}:invalid"
I assume this is happening because I only have the one project open and therefore the LoadPackage has no context of the project and it's project-level connections.
Is there a way to give the LoadPackage the context of the available project-level connections so that it doesn't mark all the connections as invalid?  When I save the one valid change that I made?
Here is the code for reference:
// Initialize an Application and Package object
Application app = new Application();
Package package = null;
// Load the package in package object
package = app.LoadPackage(pkgPath, null);
// Update the Variable
String value = package.Variables["TableName"].Value.ToString();
if (value.IndexOf(".") == -1){
package.Variables["TableName"].Value = "tstg." + package.Variables["TableName"].Value;
// Save the package
app.SaveToXml(pkgPath, package, null);
Thanks in advance,
Jason

As far as I know (did not try though) it is a limitation. Means you cannot do that on a single package having the connection shared. I would consider using a configuration instead, also in SSIS 2012 the value can be changed in the Catalog, no need to program
anything.
Arthur My Blog

Similar Messages

  • Hung application interfering with internet, app store connection

    i received an ipad as a gift. I attempted to upgrade the operating system, and then tried to quit the install as it gave me an estimated upload time of 16 hours. I now have an icon "waiting" that is hanging my entire operation. I can't find a way to delete it and I can't get access to internet. Any suggestions?

    Does anyone else have this problem or another idea to try?

  • I met an error when connect to oracle db with tag sql:DataSource

    When I use the jstl tag <sql:DataSource> connect to oracle db ,I met an error as :
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    My Source code as follow:
    <sql:setDataSource var="dataSource" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.1.220:1521:gzserver" scope="request" user="lnmisscall" password="lnmcadmin"/>
    <sql:query dataSource="{$dataSource}" var="data">
    I am sure the connection information are right (I can connecte to the db with them in jsp & java bean) , and I have put the oracle's jdbc driver under the tomcat/common/lib folder,
    Please help me to fit it ,thanks.

    Sabrina,
    Its all dependent on the application and whether its 32-bit or 64-bit.  For example, SSRS reporting services 2008 R2 is a 64-bit application, so load the 64-bit oracle client there for report execution.  Report builder is a 32-bit client application,
    assuming its running on a different machine, so load the 32-bit oracle client on any user computers using RB 3.0 and working with Oracle.  If the computers are one in the same, then do as the post above says, load both...

  • Unable to find top level site associated with project site

    Hello!
    SP and PS 2013. I faced the problem with one project and its site synchronization.
    When user published this project at 1st time, the site wasn’t created (there were some errors), but user didn’t notice that. So, after few days when he couldn’t open
    the site, he ask me for help.
    I did my usual operations in such cases – I open “Connected sites” and create the site myself.
    Earlier there was not any problem with that. But now this project experiences some troubles with permissions sync for
    it’s site – there is no synchronization.
    I connected this problem with November CU, which has been installed couple of weeks ago.
    I have read about the same problems after upgrade, so I want to emphasize that site was created on the root site collection (Project Web App) and it is not a subsite
    of another project site.
    If there is no solution until next update, maybe there is some way to turn off permission synchronization only for this site?
    Any help will be appriciated!!!
    Kate
    Queue error:
    GeneralQueueJobFailed
    (26000) - PreparePSProjectPermissionSynchronization.PreparePSProjectPermissionSynchronizationMessage.
    Подробные
    сведения: id='26000' name='GeneralQueueJobFailed'
    uid='231b2c2c-fc8b-e411-942d-0050569d3fac' JobUID='79031b2c-fc8b-e411-942d-0050569d3fac' ComputerName='7d8a1473-f6a8-4a8e-b7fb-1bdd868c7e20' GroupType='PreparePSProjectPermissionSynchronization' MessageType='PreparePSProjectPermissionSynchronizationMessage'
    MessageId='1' Stage='' CorrelationUID='a923d99c-8e88-c0e8-c7e2-08a980da8c96'.
    Для получения дополнительных сведений проверьте журналы ULS на компьютере
    7d8a1473-f6a8-4a8e-b7fb-1bdd868c7e20 для записей с JobUID
    79031b2c-fc8b-e411-942d-0050569d3fac
    In logs:
    12/25/2014 12:42:45.85        Microsoft.Office.Project.Server (0x07E4)        0x5E10           
    Project Server                            Sharepoint Integration           
    amed3 Exception        Unable to find top level site associated with project site Site1 System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>Нет
    веб-сайта
    с
    именем "/Site1".     at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String
    bstrUrl, Guid& pguidID, DateTime& pdtTimeCreated, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl,
    String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl,
    String& pbstrSi...   2a29d99c-9ecc-c0e8-c7e2-037970debfdf

    Hi Kate_S,
    since you are already aware that its a known issue caused Sep 2014 CU i believe, and an official fix has yet to release.
    but i would like to clarify here that this issue doesn't have anything to do with project site creation, because sync queue job while creating project site fails but does not block other queues activities. so your project site should be created in a normal
    way.
    and until official fix will arrive, 1 of the option is to change your project sites to provision under root site collection instead of PWA site collection. But be aware that this will fix sync issue only for new project sites.
    Go to Central Administratio -> PWA settings -> open site provision settings menu and made changes.
    2nd option is, since Project Owner always get access to Project site, to teach your project owners to include project team members manually to project site permission group to allow them to have access. this option can help you with both new and existing
    project sites, and i personally prefer this and did the same for my affected customers.
    Hope these 2 options will help you. 
    Khurram Jamshed - MBA, PMP, MCTS, MCITP (
    Blog, Twitter, Linkedin )
    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • Application shows - "The server refused the connection " when I click on project from ATG BCC and then layout

      Hi,
          Application shows - "The server refused the connection " when I click on project from ATG BCC and then layout. Can you please tell me the cause of the error and the log file where i need to debug. We have deployed on Weblogic Server.
    Thanks

    Hi,
    You can see ATG server log, located at ATGXXX/home/servers/yourPublishingServer/logs, and you can see your wwblogic server log.
    In WebLogic, the logs are located at domains/your_domain/server/yourPublishingServer/logs.
    Check the logs and then return with it, so we can help you.
    Hope it helps.

  • Application module with no connection to the database in jdeveloper 10.1.3

    I have a number of programmatic bc view objects and entity objects which i have implemented through the time from different projects and now that i have collected them i want to add all of them in a reusable application module. However i don't need a connection to the database for this application module. Is it possible to enforce the application module to circumvent the db connection?

    Hi user,
    Just out of curiosity, why would you use ADF BC for that - if I had a bunch of non-db data sources, I'd probably use POJOs and create POJO data controls.
    I didn't look in 10g, but in 11g, the ApplicationModule has a method called getDBConnectionRequired() that you could override to see if that solves your issue.
    John

  • Application crashes with timesten database  over  OCI connection

    Application crashes with timesten database over OCI connection
    #0 0x405e09f8 in kpudsany () from /home/oracle/TimesTen/ratingtt1121/ttoracle_home/instantclient_11_1/libclntsh.so.10.1
    #1 0x405728d0 in OCIDescribeAny () from /home/oracle/TimesTen/ratingtt1121/ttoracle_home/instantclient_11_1/libclntsh.so.10.1
    #2 0x43748a5a in GDBociDriver::StoredProcArgumentList () from /home/omni/library/libgfr_dboci.so
    #3 0x4374e865 in GDBociDriver::StoredProcCallFormat () from /home/omni/library/libgfr_dboci.so
    #4 0x4376ec9a in GDBociDriver::ExecuteStmtBind () from /home/omni/library/libgfr_dboci.so
    #5 0x4376fc69 in GDBociDriver::Execute () from /home/omni/library/libgfr_dboci.so
    #6 0x436ba240 in GDBstatement::Execute () from /home/omni/library/libgfr_dblayer.so
    #7 0x43736106 in GDBociDriver::SetModule () from /home/omni/library/libgfr_dboci.so
    #8 0x4366cb22 in GDBconnectionPool::GetConnection () from /home/omni/library/libgfr_dblayer.so
    #9 0x4367a9db in GDBdriver::LoginConnectionGet () from /home/omni/library/libgfr_dblayer.so
    #10 0x4373dbaa in GDBociDriver::Login () from /home/omni/library/libgfr_dboci.so
    #11 0x4377380f in CreateOCIDriver () from /home/omni/library/libgfr_dboci.so
    #12 0x4367bb2a in GDBdriverLoader::CreateDriver () from /home/omni/library/libgfr_dblayer.so
    #13 0x436d423d in IGDBdriverMgr::GetDriverAndLogin () from /home/omni/library/libgfr_dblayer.so
    #14 0x436d4da1 in IGDBdriverMgr::GetDriver () from /home/omni/library/libgfr_dblayer.so
    #15 0x436a5071 in GDBserverDef::InitialLogin () from /home/omni/library/libgfr_dblayer.so
    #16 0x433247cc in CcapAdbAccess::Init (this=0x9e85a88) at CcapAdbAccess.C:161
    #17 0x43331c44 in CcapMain::Run (this=0x434eeb80, sdpId=2, processName=0x9dae29c "URE61_O2") at CcapMain.C:132
    #18 0x080947d1 in ccap_thread (arg=0x0) at main.C:1588
    #19 0x080e7bd2 in ThreadManager::WrapperRoutine (ipArg=0x9e84fc0) at ThreadManager.C:176
    #20 0x0035f44a in start_thread () from /lib/libpthread.so.0
    Timesten has some limitations and it says:
    Describing objects with OCIDescribeAny() is supported only by name. Describing PL/SQL objects is not supported.
    home/omni/library/libgfr_dblayer.so
    Cloud you please tell us whit might be the reason for this

    Are you able to provide exact details of the OCIDescribeAny call being made by the application (including parameter values)?
    Chris

  • AD "Log on to" restriction causes RDP connections with network level authentication to fail

    I am running a Server 2008 R2 environment and have recently enabled network level authentication for RDP connections. Since the change, users who have their logons restricted to specific servers via AD, now get an error when logging on via RDP:
    An Authentication error has occured
    The Local security authority cannot be contacted
    After investigating this error and reading technet I found that removing the "log on to" restriction within their user object solved the problem even tho they had rights to this server. Adding the users client PC name to the "Log on
    to" list also solves this issue.
    My question is, is there another way around this? We have an environment where some users may require an RDP connection from a client PC not on the same domain (over VPN) as the server. It will not be practical to add many different client PC names
    to the log on to list and I don't understand why client PC's must be specified in the Log on to list and not just the actual server they are logging onto.
    Any pointers appreciated

    I have just come across this problem on one of my client’s domains; they have recently enforced a policy to “Allow connections only from computers running Remote Desktop with Network Level Authentication (more secure)”  and users with “Log on To” restrictions
    on their account are no longer able to RDP using their second account.
    After a lot of fiddling around I finally resolved the problem by adding the connecting computer name into “Log on To” list.  Ultimately it appears that Network Level Authentication (NLA) requires authentication to take place on both the host initiating
    the connection and the remote host.

  • Problem with "View project-level information" permission when accessing build definition in Visual Studio Online

    Hi, 
    from some time all our team members are experiancing problems when acsessing list of builds on Visual Studio Online or when trying to edit build definition in Visual Studio. Error message suggests problem with missing View project-level information permission:
    "TF50309: The following account does not have sufficient permissions to complete the operation: XXXXXXXX. The following permissions are needed to perform this operation: View project-level information."
    I've checked permissions of my User account and Group. "View project-level information" is set to Allow on both levels. We didn't make any changes in security configuration recently. Does anyone faced similar problem?
    Short term solution was to add all users, to Project Collection Administrators Group, but it is not what we would like to live with.

    It seems that the problem was fixed and Project Collection Administrators permissions are no longer required. Great :-)

  • Unable to connect on WLSE with account level 15

    Hi,
    All user configured on WLSE are configured with privilege level 0.
    When I try to connect on WLSE via Telnet I just can do a ping, traceroute,debug or a show command.
    Via Http : Admin->User Admin->Manage User
    I can just set CLI Access to none or Level 0.
    Role of my user is set to "System admin"
    Is it possible to change Level privilege to 15 or to create a new user with level privilege 15 ?
    For your information version of WLSE is WLSE-2.11FCS.
    Thanks for your comment.

    Thanks for your reply rmushtaq,
    In fact, my problem is that the user admin don't have privilege level 15. He's configured with privilege level 0.
    And when I want to create a new user, I can't set privilege level 15.
    When I try to do a telnet with the user "admin" on WLSE I can't use all CLI commands. I just can use show, ping and traceroute.

  • ADF 11.1.1.2 Application Timeout with Active DB Connection

    Hi all,
    just a query really; are we able to set a timeout for an ADF application that has an application module and an active database connection for an extended period of time, such as 10 hours?
    We have previously changed the value in the applications web.xml file to the correct value (600) but when we come to test the app after waiting about 5-6 hours, the application whirls away and throws an error:
    JBO-30019: An unavailable cookie state is detected while attempting to use a cookie from the application SJFG..., session 109imtacg62_...
    Is there another setting we have to apply to Weblogic to increase the cookie state timeout?
    Regards
    Jason

    Hi Mehabub:
    I had the same problem and solved it by checking the Secure Admin Enabled check box and writing the full computer name (domain included) in the Configuration tab of the Server Connection Properties dialog in JDeveloper.
    Hope this helps! Good luck!

  • Can I use textfield in an application with low level api?

    Hello !
    I am developing a mobile application using the low level api.
    I have to use it, because I do a lot of coloring.
    But I want to use high level textfields as well. Is there any way
    to include them in my application without using forms?
    Does any one know, why J2ME designer's have limited the access
    to the TextField's paint()-method? That's why I cannot inherit
    from TextField and overwrite the paint() as I would like to do.
    Thanks.

    Unfortunately no. You cannot mix both high and low level on the same screen. You'll probably have to draw it out yourself and capture user input, unless you're willing to use textboxes.
    Or.. i suppose you can try using customItems for all your "coloring" instead?

  • Adobe Premiere Pro CS4 crashes on load with project

    When I try to load my CS4 projects the application crashes with the error:
    "Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project."
    I have my hard drive partitioned: C drive for my OS; D drive for my data; and I also have an external hard drive which is H. I installed Adobe Premiere on my D drive and saved all the my project files and data on my external drive H. A couple weeks ago I got a virus and I wiped out my C drive. So, I reinstalled Windows XP. After reinstalling XP and getting my machine back up and running I removed Premiere Pro CS4 from my D drive and installed it on my C:drive. I connected my external drive to my computer and Windows assigned the drive letter F to my external. I launched my project file and it said it could not find my data and it crashed with the above message. I opened my project file in a text editor and I saw that file path was H:\... for all my data so I reassigned the drive back to H hoping that was the reason for the crash. Much to my chagrin it was not as I try opening the project file now and it finds all the files but it still crashes. I'm all out of ideas at this point. Is there a log file that I can look at to try to troubleshoot this any further? Has anyone seen this happen before? Should I reinstall Adobe Premiere Pro? I am under a time crunch here as I need to open this project and make some edits.
    Any help is greatly appreciated!
    Thanks.
    -Jeff

    Jeff,
    The Page File is MS Windows' "virtual memory." It gets activity, when physical RAM is not available. Especially with video editing, this happens a lot. It can be set via Control>Panel>System. Windows can either dynamically create and size the file, as is necessary, or it can be set to provide the necessary size statically - always the same, and is *usually* set to ~ 2.5x the physical RAM.
    With one physical HDD, that is partitioned, you have about 4-5 operations going on at the same time, and your I/O system is basically telling the heads of your HDD to be in different places/platters at this same time. Unfortunately, this is impossible, and one gets system hangs, sluggish performance, crashes or worse.
    There are several good threads on suggested HDD setups for NLE work on this forum. I'd step back a level, so you get all Premiere forums, and search for some of these articles. There are a lot of worthwhile suggestions for number, type, connection and configuration of HDD's.
    Good luck,
    Hunt

  • Problem with XSU and DataSources with nested cursors?

    We are having a problem with the xsu libraries (OracleXMLQuery) using nested cursor syntax. The class returns nicely nested xml document when a database connection is established in the traditional/legacy manner of "class.forName(); DriverManager.registerDriver();" .
    However, when using a DataSouce object within a J2EE container, we get an xml document back that only represents the main level of the resultset with datatypes + memory addresses for the cursor fields (instead of the expected nested xml elements).
    Any thoughts?
    BTW, we are using the iPlanet Application Server with an Oracle 9i database.
    for instance:
    SELECT a, b, CURSOR(select m, n, o
    from table2
    where table1.x = table2.y),
    d, e, f
    FROM table1
    WHERE table1.name = 'Matt'

    Somebody please answer this question?

  • Loosing datasource connection in a server thread

    Hi,
    In a backing bean I start a long term thread that uses the datasource connection taken from application module.
    Everything works fine but after a period of time between one and two hours the connection is lost and server throws a
    <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "AEE2010DS" failed with exception: "java.sql.SQLException: Connection Closed".>
    Is there any way to stop the server from closing the connection that is used in a separate thread, programmatically or using configuration?
    Any comment will be helpful,
    Thanks

    That looks like something external is killing the connection, either the DBMS or a firewall.

Maybe you are looking for

  • Initial load from ECC/R3 to MDM

    Hi, Could any one tell me the process for one time intial load from  R3 to MDM. preferably without XI. how to extract data from R3 ? what format? how to map source to MDM repository? Farah

  • Receiver channel file-name

    Hi, Scenario File -> File (using an SFTP adapter) Is there anyway I can configure my receiver determination in a way to look at a file-name which determines which comm channel is used? The mapping does not contain this info, only the filename so I ca

  • Print filled form details

    Hi I'm running Acrobat XI Pro in Windows 7 Pro. I downloaded a fillable form and filled it in and saved it. The saved form reloads with the filled data. Problem is I cannot get the form to print WITH the filled data, it always prints blank. Have trie

  • Planning Detail Report (GMPPDR) in Excel Output

    Hi All, We have a requirement to show the Planning Detail Report (GMPPDR) output in Excel format. And it need to include all the four templates (Horizontal, Vertical, Exception & Action). Can someone give me some insight on how this can be achieved ?

  • Float clearing for parent container - DW doesn't display

    When I use one of the methods of float clearing for a parent container that has other floated elements inside of it, it seems to work fine in FF and IE. But it never shows up properly in DW design view. Instead, it just continues to show the parent c