Excel Source cannot find sheet when using Foreach Loop Container

I have SQL Server 2012 SSIS. I need help with Foreach Loop container.
1) I have C:\\Excel\ folder and multiple Excel.xlsx files are stored there to be imported
2) I have Foreach Loop Container
-Foreach File Enumerator is selected
-Expressions are empty
-Folder is set as  C:\\Excel\
-Files is *.*
-Variable is created. User::Filename, 0
2) I have created variable FileName, String,0
3) I have Excel Connection Manager
-ExcelFilePath = @[User::FileName]
4) I have data flow task with Excel Source and OLE DB Destination
Error occured with Execute:
[Excel Source [2]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
[Excel Source [2]] Error: Opening a rowset for "SheetName$" failed. Check that the object exists in the database.
Kenny_I

Hi Kenny_I,
The issue occurs because you have not specified a valid value for the variable @FileName. The error persists even if we set the “DelayValidation” property of the Excel Connection Manager to True. After you assign a value like “C:\Excel\Test1.xlsx” (without
quotes) to the variable, the package should work fine.
Reference:
http://www.bidn.com/blogs/mikedavis/ssis/625/loop-through-excel-file-in-ssis
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support

Similar Messages

  • SSIS Package to load multiple excel sheets using foreach loop container

    I am creating a SSIS package which is accessing an excel file and then using a Foreach loop container to load each tab to sql server. However when I try to configure the Excel source, I get the following message
    "The argument system_comobject cannot be converted into parameter type. Additional Information - Object must implement iconvertible (mscorlib)"
    Any help to resolve would be much appreciated.
    thanks
    Scott

    If the title is only using column D and the rest of the columns are empty on sheet1/row1
    AND
    if only sheet1 as headers,
    THEN you can try something like the following
    do NOT select row 1 as header or anything.
    In your foreachloop > dataflow, you will start with EXCEL connection then Conditional Split inside which you will define one case for which expression should be like If column D has value like "Title expression" && Column A == "Column A Header
    name" THEN yay or nay. You might want to look into
    FINDSTRING function to assist with this (if you choose to use FINDSTRING, you are looking for !isNull for this case..If it finds the string you are looking for, it will pass an int value (title + header) if it doesn't find the string, it will pass
    NULL (data)) or you can say If Column A, B, C,E,F,G...is NULL and D is NOT NULL && Column A = Column A Header string, then Case 1 else default.
    The default output would be the real data.
    So when sheet 1 is processing, you will have Case 1 output with 2 rows (title + header) and Default output with the rest of the rows (real data).
    For other sheets, you will have Case 1 output with 0 rows (no title + header) and Default output with the data rows.
    The above sln assumes that the data in each sheet is similar in datatypes and length perspective, you have defined input/output datatypes properly, and etc.

  • Using foreach loop container with file system task to rename and move files

    the foreach loop container will not rename and move files for me
    sukai

    duplicate of
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/8f2899f1-43b0-47e0-8bd0-e082989cdcb8/file-system-task-and-foreach-loop-container?forum=sqlintegrationservices
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Strange issue with rights of account, used by SSIS (Foreach Loop Container does not return file names without Admin rights on server)

    Hello everyone.
    Faced very strange issue with account, which is used to run SSIS package.
    The specific package uses Foreach Loop Container to retrieve file names within the specified folder, and put them into Import file task.
    The package is set up to run under specific service account. This service account is given all permissions (Full control) to the folder where source files reside.
    So the issue is: SSIS package fails to execute this task (Foreach Loop Container and then Import), and shows that no files are found in the directory (although files ARE there).
    Once we're adding the service account into local Administrators group on the SQL Server, it works! Removing - does not work again. We cannot leave the service account as SQL server's admin as it's prohibited by our IT policies, and is just a bad practice.
    Any ideas, please? 
    MCP

    Here's the real log output:
    Date 16.04.2014 12:47:09
    Log Job History (RU-BW: Update)
    Step ID 1
    Server Server
    Job Name RU-BW: Update
    Step Name bw_import_cust_master_data
    Duration 00:00:02
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: service_account Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4286.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  12:47:09  Error: 2014-04-16 12:47:11.45
        Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End Error  Error:
    2014-04-16 12:47:11.47     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End
    Error  Error: 2014-04-16 12:47:11.48     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid
    characters.  End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC020207E     Source: Import file Flat File Source [1]     Description: The file name is not valid. The file name is a device or contains invalid characters.
     End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC004701A     Source: Import file SSIS.Pipeline     Description: component "Flat File Source" (1) failed the pre-execute phase and returned error code 0xC020207E.
     End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:47:09  Finished: 12:47:11  Elapsed:  2.324 seconds.  The package execution failed.  The step failed.
    MCP

  • SSIS: ForEach Loop Container Enumerates Same File

    Trying to loop an Excel Directory.  Have it in a ForEach Loop Container.  It keeps looping the same file the amount of times the file pattern recognized; i.e  Loop starts at report with 10 lines, there are 7 files that need looped...How
    do I get it to loop all the files that need enumerated rather than just the default file path in the connection string?

    I have both path and file in foreach loop container...How many variables should I be using in my case?  I have one (ExcelInput) declared in the foreach loop container and passing to Excel Connection string expression.
    Hi jsorrisone,
    One SSIS variable is enough in your scenario. In the Foreach Loop Container, we set the Enumerator to “Foreach File Enumerator”, specify the path of the source folder, keep the “Retrieve file name” option as “Fully qualified”, and store the full path of
    the Excel file to the string type variable ExcelInput.
    Then, add a Data Flow Task to the Foreach Loop Container, drag an Excel Source, create an Excel Connection Manager. After that, set the expressions for the Excel Connection Manager, and set the expression of “ExcelFilePath” property to @[User::ExcelInput].
    Reference:
    http://mikedavissql.com/2013/09/16/loop-through-excel-files-in-ssis/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • Is it possible to load multiple .xlsx files into a SQL Server Table using SSIS and a Foreach Loop Container when each Excel spreadsheet is comprised of two different worksheets

    So we have an Invoice .xlsx File from a 3rd party vendor. It contains two worksheets..."Enrolled" and "Engaged". The data and data columns in each worksheet is different. Is it possible to loop through multiple .xlsx files using SSIS
    and a Foreach Loop Container for each spreadsheet, and then another Foreach Loop Container to control each worksheet, and pump the Excel data into a SQL Server Table first for "Enrolled" and then for "Engaged"? How can I control the Foreach
    Loop Container in SSIS to process ONLY the "Enrolled" worksheet first? And then the "Engaged" worksheet next?
    I know I have multiples out here and I apologize for that...but right now it seems as though I take three steps forward and then two back.
    Any help would be GREATLY appreciated!
    Thanks in advance!

    If the structure of the Excel sheets does not change from file to file then you can by having one ForEach Loop processing always the "Enrolled" sheet and another always the "Engaged" this is doable because the Excel OLEDB connector allows
    to pick individual sheets, it is problematic therefore when sheet names themselves change.
    MSDN has an example: https://msdn.microsoft.com/en-ca/library/ms345182.aspx
    Arthur
    MyBlog
    Twitter

  • HT1473 I am trying to upload my itunes music from my ipod to my computer.  My current Itunes library is listing the songs, but cannot find them when I try to put them on to my iphone.

    I am trying to upload my itunes music from my ipod to my itunes on my computer.  My itunes music lists all of the music, but cannot find it when I try to load it to my phone.
    The songs are on my ipod, but not on my phone and I don't know how to get them from one device to the other.

    In your case, it would be better to have transferred the library to an external drive from the PC. Then, connect it to the iMac and put the library onto the Music folder.
    You used Migration Assistant, and it creates a new user with the transferred data.
    Open  > Log Out, and log in the new user. Then, open a Finder window, choose Music in the sidebar and you will see the iTunes library. Now, you have to move the iTunes library to /Users/Shared (select Go menu -in the menu bar- > Go to Folder, type that and copy the iTunes library to it). Finally, log in the other user, go to the same folder and move the library to the Music folder.
    After doing that, open System Preferences > Users and Groups, choose the user created by Migration Assistant and press the - button to remove it. This is easier if you have an external drive

  • Java.sql.SQLException: Cannot call rollback when using distributed transac

    Hi all,
    I am getting the below exception trace when I tried to rollback the data in WLI.I am getting the db connection Object from DBControl.
    java.sql.SQLException: Cannot call rollback when using distributed transactions
    at weblogic.jdbc.wrapper.JTAConnection.rollback(JTAConnection.java:313)
    at controls.DailyFeedFileJavaImpl.excuteBatch(DailyFeedFileJavaImpl.jcs:
    904)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :371)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    6)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)
    at $Proxy59.excuteBatch(Unknown Source)
    at QnbDailyFeedProcess.feedFileJavaObjExcuteBatch(QnbDailyFeedProcess.jp
    d:274)
    at QnbDailyFeedProcess_wf$ImplControlSend15.invoke(QnbDailyFeedProcess_w
    f.java:146)
    at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
    tate.java:726)
    at QnbDailyFeedProcess_wf$_ProcessState.executeInternalCallback(QnbDaily
    FeedProcess_wf.java:311)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
    tate.java:685)
    at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(Process
    State.java:681)
    at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :371)
    at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispM
    ethod.java:87)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    6)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24

    shanmuga gomathi nayagam wrote:
    Hi all,
    I am getting the below exception trace when I tried to rollback the data in WLI.I am getting the db connection Object from DBControl.
    java.sql.SQLException: Cannot call rollback when using distributed transactions
    at weblogic.jdbc.wrapper.JTAConnection.rollback(JTAConnection.java:313)Hi, Ideally, you should obtain the Transaction object and roll it back/ set it
    to rollback only.
    Joe
    at controls.DailyFeedFileJavaImpl.excuteBatch(DailyFeedFileJavaImpl.jcs:
    904)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :371)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    6)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)
    at $Proxy59.excuteBatch(Unknown Source)
    at QnbDailyFeedProcess.feedFileJavaObjExcuteBatch(QnbDailyFeedProcess.jp
    d:274)
    at QnbDailyFeedProcess_wf$ImplControlSend15.invoke(QnbDailyFeedProcess_w
    f.java:146)
    at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
    tate.java:726)
    at QnbDailyFeedProcess_wf$_ProcessState.executeInternalCallback(QnbDaily
    FeedProcess_wf.java:311)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessS
    tate.java:685)
    at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(Process
    State.java:681)
    at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java
    :371)
    at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispM
    ethod.java:87)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:42
    3)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:39
    6)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:24

  • Cannot find lib when packaging for iOS

    You can see the same question on StackOverflow here:
    http://stackoverflow.com/questions/11547515/cannot-find-lib-when-packaging-for-ios
    Hi,
    I am developping an Air Native Extension (ANE) in order to be able to use the burstly(1) ads on mobile devices.
    As for my setup, I am using the FlashDevelop 4.0.4(2) and Adobe Air 3.3 (3). I'm using Flex 4.6.0 SDK. The project is setup on Windows7.
    In order to work on iOS devices, Burstly requires a number of frameworks and librares (4)
    I managed to write and compile the .a library for iOS. I also have the interface (actionscript code) that will be shared for Android and iOS compiled into a swc and a librairy.swf. All of this is successfully packaged into a .ane which is included in my project.
    When compiling a .a library on MacOS, all the framework and library used don't seems to be packaged in the ".a". This is why I had to use Air 3.3, for the -platformsdk option(5).
    Since I work on Windows, I followed the instruction in this post to get the iOS SDK (6).
    Following (4) and (5), I made a platformConfig.xml file like this, which is packaged in the .ane
        <platform xmlns="http://ns.adobe.com/air/extension/3.1">
            <sdkVersion>4.2</sdkVersion>
            <linkerOptions>
                <!-- to use the AssetsLibrary framework -->
                <option>-framework AssetsLibrary</option>
                <option>-framework AudioToolbox</option>
                <option>-framework AddressBook</option>
                <option>-framework AVFoundation</option>
                <option>-framework CFNetwork</option>
                <option>-framework CoreLocation</option>
                <option>-framework MapKit</option>
                <option>-framework MediaPlayer</option>
                <option>-framework MessageUI</option>
                <option>-framework OpenAL</option>
                <option>-framework OpenGLES</option>
                <option>-framework QuartzCore</option>
                <option>-framework StoreKit</option>
                <option>-framework SystemConfiguration</option>
                <option>-framework Foundation</option>
                <option>-framework CoreGraphics</option>
                <option>-libsqlite3</option>
                <option>-libxml2</option>
                <option>-libz</option>
            </linkerOptions>
        </platform>
    and this is the line to compile the actuale .ane
        call "%FLEX_SDK%\bin\adt" -package -target ane ../release/burstlyadsextension.ane extension.xml -swc burstlyAds.swc -platform iPhone-ARM library.swf libBurstlyAds.a -platformoptions platformConfig.xml
    Problem arises when I try to package the iOS app with ADT:
        call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR% -extdir lib/external/ -platformsdk ../Libraries/iPhoneOS5.0.sdk/
    this happens:
    "ld: library not found for -libsqlite3
    Compilation failed while executing : ld64"
    frameworks seems to be added fine, but the dylib are not. I tried to add the line:
        <option>-L usr/lib/</option>
    before including the lib, but I got this error instead:
    "ld: warning: directory not found for option '-Lusr/lib/'
    ld: library not found for -libsqlite3
    Compilation failed while executing : ld64"
    I tried to use the full path, other relative path, but no matter what path I put in the option, I always get a "warning: directory not found for option". Even "<option>-L ../</option>" give me this warning. The only thing that seems to work is "<option>-L /../</option>", but my .dylib obviousle are not there.
    So my questions are: What did I do wrong? Any idead what else I could try? Even an explanation as to why it is not working would be helpful!
    Links:
    #1: http://support.burstly.com/
    #2: http://www.flashdevelop.org/
    #3: http://get.adobe.com/fr/air/        //Sorry, my OS is in french
    #4: http://support.burstly.com/kb/ios/required-compiler-flags-frameworks
    #5: http://blogs.adobe.com/rajorshi/2011/11/16/ios5-support-for-airusing-external-sdks-to-pack age-apps/
    #6: http://blogs.adobe.com/airodynamics/2012/05/18/using-platformsdk-for-ios-on-windows/

    Thanks a lot, that took care of the
    "ld: library not found for -libsqlite3
    Compilation failed while executing : ld64"
    But now, I'm stuck with this error instead:
    ld: warning: -ios_version_min not specificed, assuming 4.0
    Undefined symbols for architecture armv7:
      "_ADBannerContentSizeIdentifier480x32", referenced from:
          +[Burstly_iad_Adaptor initializeContentSizeIdentifiers] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
          -[Burstly_iad_Adaptor supportedSizes] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
      "_OBJC_CLASS_$_ADBannerView", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
      "_OBJC_CLASS_$_EKEventStore", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(BurstlyORMMAView.o)
      "_OBJC_CLASS_$_FlurryAnalytics", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(Burstly_flurry_Adaptor.o)
      "_OBJC_CLASS_$_CMMotionManager", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(BurstlyORMMAJavascriptBridge.o)
      "_ADBannerContentSizeIdentifier320x50", referenced from:
          +[Burstly_iad_Adaptor initializeContentSizeIdentifiers] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
          -[Burstly_iad_Adaptor supportedSizes] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
          -[Burstly_iad_Adaptor makeSizesSetWithArray:] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
      "_MedialetsShouldLogDebug", referenced from:
          -[MedialetsAdServer sendAppPixelWithURL:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer adFitsSlot:adID:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer nextAdFromList:forTargetKey:keywords:andBlockKeywords:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer isAdValidForSlot:forTargetKey:keywords:andBlockKeywords:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer nextAdForAdView:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer startCacheLoad] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer processReceivedData:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
      "_OBJC_CLASS_$_EKEvent", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(BurstlyORMMAView.o)
      "_ADBannerContentSizeIdentifierPortrait", referenced from:
          +[Burstly_iad_Adaptor initializeContentSizeIdentifiers] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
      "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(BurstlyUtils.o)
      "_ADBannerContentSizeIdentifierLandscape", referenced from:
          +[Burstly_iad_Adaptor initializeContentSizeIdentifiers] in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
      "_MedialetsShouldLogInternal", referenced from:
          -[MedialetsAdServer init] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer qualifiedAdsFromList:forAdView:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer qualifiedAd:foradSlotKey:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer nextAdFromList:forTargetKey:keywords:andBlockKeywords:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer nextAdForAdView:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer attemptCacheLoad] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
          -[MedialetsAdServer startCacheLoad] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)
      "_OBJC_CLASS_$_FlurryAppCircle", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(Burstly_flurry_Adaptor.o)
      "_OBJC_CLASS_$_ADInterstitialAd", referenced from:
          objc-class-ref in libcom.bhvr.burstlyads.a(Burstly_iad_Adaptor.o)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    Which is the same error as when I did not include any library at all.
    Any other insight?

  • HT1277 Cannot open links when using Safari (will open in Chrome). Anybody have an idea? Settings??

    Cannot open links when using Safari (will open in Chrome). Anybody have an idea? Settings??

    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • BINDING.JCA-12510 JCA Resource Adapter - Cannot call rollback when using di

    Hi,
    i'm facing a simillar issue with dbadapter while trying to insert a record.
    The issue that I'm facing is: (BINDING.JCA-12563)
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: http://InsertEmployee.TestEmp. Caused by java.sql.SQLException: Cannot call rollback when using distributed transactions. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I faced the same issues that have been posted in this thread before but this is a new one I'm seeing.
    Following are the configurations that I'm using.
    WEBLOGIC ADMIN CONSOLE
    JDBC datasources
    General tab:
    JNDI Name: jdbc/SOADataSource
    Connection Pool tab:
    URL - jdbc:oracle:thin:@localhost:1522/XE
    Driver Class Name - oracle.jdbc.xa.client.OracleXADataSource
    Properties - user=SATRA_SOAINFRA
    oracle.net.CONNECT_TIMEOUT=10000
    Deployments
    Inside DbAdapter - Configuration
    The general tab shows blank values for 'Native lib dir' and 'JNDI name' fields. Is this normal or I need to populate values into these.
    Inside Outbound Connection Pools the javax.resource.cci.ConnectionFactory created an entry 'eis/DB/10gXE_DBCon'
    following is the settings for dataSourceName property
    dataSourceName java.lang.String jdbc/SOADataSource
    I have kept the value for xADataSourceName as blank as giving the same value of 'jdbc/SOADataSource' throws error.
    The JNDI value that I'm using while creating the database adapter from Jdev is eis/DB/10gXE_DBCon where 10gXE_DBCon is the database connection name.
    Can you please tell me what is the issue and where I'm going wrong.
    Thanks in advance,
    Satrajit

    Hi Sunil,
    I followed your advice and did the changes, that error has gone but a new error is popping up.
    BINDING.JCA-12563 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [InsertEmployee.TestEmp]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    The name of the table i'm inserting to is test_emp and it exists in the database.
    the .jca file for dbadsapter is like
    <adapter-config name="FileToDB_DBAdp" adapter="Database Adapter" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/10gXE_DBCon" UIConnectionName="10gXE_DBCon" adapterRef=""/>
    <endpoint-interaction portType="FileToDB_DBAdp_ptt" operation="insert">
    <interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
    <property name="DescriptorName" value="FileToDB_DBAdp.TestEmp"/>
    <property name="DmlType" value="insert"/>
    <property name="MappingsMetaDataURL" value="FileToDB_DBAdp-or-mappings.xml"/>
    <property name="DetectOmissions" value="true"/>
    <property name="GetActiveUnitOfWork" value="false"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    and the .xsd file for dbadapter is
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/FileToDB_DBAdp" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/FileToDB_DBAdp" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="TestEmpCollection" type="TestEmpCollection"/>
    <xs:complexType name="TestEmpCollection">
    <xs:sequence>
    <xs:element name="TestEmp" type="TestEmp" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="TestEmp">
    <xs:sequence>
    <xs:element name="empid" type="xs:decimal" nillable="true"/>
    <xs:element name="name" type="xs:string" minOccurs="0" nillable="true"/>
    <xs:element name="designation" minOccurs="0" nillable="true">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="50"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="salary" type="xs:decimal" minOccurs="0" nillable="true"/>
    <xs:element name="deptno" type="xs:decimal" minOccurs="0" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    If I change element name from 'TestEmp' to 'Test_Emp' in the .xsd file,
    I'm getting the following issue ...
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by java.lang.NullPointerException. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I'm confused why does it take the table name as TestEmp and not as Test_Emp.
    Regards,
    Satrajit

  • Using an ssis variable object as a data source in a foreach loop container

    hi we run 2012 std.  I have an ssis var of type object that is hydrated from a dynamic query in an execute sql task.  I can count on one thing in this object and that is that ID will always be the first "col" on each "row". 
    Otherwise, resultset can contain a variety of things based on params passed to this sub pkg.
    I'd like to introduce a for each loop on this object and tap into index 0, ie the id column.  
    The first question is "will I be able to parse this object's id in a for each component?".
    In the for each loop container properties, I c an item enumerator, ado enumerator, ado.net schema rowset and variable enumerator as enumerator choices.  Which do I want if the answer to the 1st question is yes?

    hoping 2 avoid a data flow.  I wonder if what u r saying is that I cannot use an felc to do this.  Or if u r showing one of many alternatives.
    Sorry, bad title.  I just changed that.
    I just tried foreach from variable enumerator and aborted with a message that said my variable "coll" doesn't have an enumerator.  Going 2 try some of the other choices.
    I just tried ado enumerator and from what I can c it isn't actually iterating thru my resultset even once. 
    I just tried a foreach item enumerator giving "column 0" a data type that matches my ID but from what I can tell the component isn't iterating thru my collection. 
    ado.net schema rowset doesn't look inviting at all in that it looks like it wants to go back to the db.  Not what I had in mind having already gotten this resultset into memory.
    according to this article u r supposed to be able to do this using ado enumerator
    social.technet.microsoft.com slash wiki slash articles slash sis-looping-over-object-variables-with-as-ado-enumeration-in-foreach-loop-container.aspx

  • Cannot find Acc when right click

    Well i am trying to convert my mp3 to a Acc and cannot find acc when i right click on the song. Ive tried going into my export and changing it to Acc encoder already and still nothing.

    Leandre22 wrote:
    Well i am trying to convert my mp3 to a Acc
    Why are you trying to convert MP3 to AAC?
    This is not really needed unless you require an AAC file.

  • Cannot find info on using random play and regular play symbols

    cannot find info on using random play and regular play symbols

    Guess I need to clarify my question.
    I am using iTunes for Mac.  At the top of the window, below the title of the song are two symbols which I am assuming are (on the left) for sequential play and (on the right) for shuffle.  Below, next to the name of my playlist is also a symbol for shuffle.  I cannot figure out how these relate and how to change the selection.  At the moment the shuffle symbol in the song title window is blue and the "sequential" symbol at the other end of the play bar is gray.  It is shuffliing thru the play list.
    Why is there no explanation available for the use of the icons and features on the screen?

  • What does the error message 'valid source cannot be identified' when trying to download acrobat read

    I get the message 'valid source cannot be identified' when trying to download adobe acrobat.  what should I do?

    If it's Adobe Reader, download the full installer from http://get.adobe.com/reader/enterprise/
    If it's Adobe Acrobat, post in the Acrobat forum.
    If you are still having troubles with Adobe Reader, please specify your operating system & version.

Maybe you are looking for