SSIS package "The Microsoft Jet database engine cannot open the file"

Dear all,
I am trying to import data from an excel spreadsheet which is save on application sharing server. When I try to save same file locally (On my desktop) my package has no problem to read it.  Problem comes when I change the file path to the share location
I am getting below error message,
"Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  13:26:46  Error: 2014-12-05 13:26:50.30     Code: 0xC0202009     Source: Incremental MasterStyle DL
Connection manager "Excel Connection Manager"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft JET Database
Engine"  Hresult: 0x80004005  Description: "The Microsoft Jet database engine cannot open the file ''.  It is already opened exclusively by another user, or you need permission to view its data.".  End Error  Error:
2014-12-05 13:26:50.30     Code: 0xC020801C     Source: Data Flow Task 1 Excel Source [36]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection
manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2014-12-05 13:26:50.30
    Code: 0xC0047017     Source: Data Flow Task 1 SSIS.Pipeline     Description: Excel Source failed validation and returned error code 0xC020801C.  End Error  Error: 2014-12-05 13:26:50.30     Code: 0xC004700C
    Source: Data Flow Task 1 SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2014-12-05 13:26:50.30     Code: 0xC0024107     Source: Data Flow Task 1    
 Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  13:26:46  Finished: 13:26:50  Elapsed:  3.401 seconds.  The package execution
failed.  The step failed."
I am trying to run this package as an sql server agent job and  server is installed on my Machine. I have created proxy account with my own credential to execute it. I have full excess to the spread sheet and can open it in an excel program. Please
suggest what could be the reason why sql job is not able to access this spreadsheet. I can think of below reasons
File is password protected and I am not using its password to unlock it?
My domain account is a part of It Admin group with high previllages
when I installed my SQL server I installed it as a standalone instance of SQL server?
please advise.
regards
JKH

Hi Jahangir,
Based on the error message that "The Microsoft Jet database engine cannot open the file ''.  It is already opened exclusively by another user, or you need permission to view its data.", there are two causes:
The account that SQL Agent is using does not have the correct permissions for the file or for the folder that contains the file.
Another process or user has the file open.
The following resolutions correspond to the previous list of causes:
Since you use a network path to the file (UNC), check the account permissions on the share, the file, and the folder.
The "another user" may be Microsoft Visual InterDev. Close any Visual InterDev projects that contain a data connection to the file. Please close all instances of excel file and re-run the package.
Besides, we can use a tool like
SQL Server Profiler to see what is happening when you run the package.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • The Microsoft Access database engine cannot open or write to the file in Report Builder 3.0

    I am trying to build a report in Report Builder 3.0.  I created the Data Source to point to my Excel file and the Data Set.  I drag a couple of fields on to the canvas and then choose Run.  I get the error:  "The Microsoft Access
    database engine cannot open or write to the file.  It is already opened exclusively by another user".  I am using the Excel driver.  Why am I getting this message?  How can I fix this?

    No, now I am getting the error message again.  It is quite long:
    ERROR [HY000] [Microsoft][ODBC Excel Driver] The Microsoft Access database engine cannot open or write to the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view and write its data.
    ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection
    Please help

  • The Microsoft Access database engine cannot open or write to the file \\fileserver\db\access.mdb

    Hi,
    I have Windows Server 2012 with SQL 2012 Standard SP1. I am using linked server, and Access Database Engine 2010 Redistributable to access my database file made in Microsoft Access (.mdb) from network file server.
    EXEC master.dbo.sp_addlinkedserver @server = N'MyLinkedServer', @srvproduct=N'MyLinkedServer', @provider=N'Microsoft.ACE.OLEDB.12.0', @datasrc=N'\\myfileserver.mydomain.com\files\mydatabase.mdb'
    My SQL service is running with domain service account MYDOMAIN\SQL1$ , i have added Full control for file share and NTFS permission on my file server folder (C:\Files).
    When I open (as domain admin with UAC elevated permissions) on my DB server SQL Management studio, I can browse tables and everything works.
    The problem is, if I open SQL management studio (as domain admin with UAC elevated permissions) on my File server or any other computer, when trying to browse my linked server i got error:
    TITLE: Microsoft SQL Server Management Studio
    Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Synesis_3PRO2013". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    When I try to place simlpe Select SQL query I got error:
    OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "MyLinkedServer" returned message "The Microsoft Access database engine cannot open or write to the file '\\myfileserver.mydomain.com\files\mydatabase.mdb'. It is already opened exclusively by another
    user, or you need permission to view and write its data.".
    I do not have any other program using my access database, and user has full control. I am trying to use in security mode - "For a login not defined in the list above, connections will be made without using a security context", i have also tried all four options.
    I am confused becouse it works from SQL server but from any SQL client domain member computer/server it does not work.
    I have same problem in another environment where I have Windows Server 2008 R2 and SQL 2008 R2 SP2.
    Please help.
    -- Hrvoje Kusulja

    NTFS must be fine since it works from same server using same accounts.
    As I understand, adding my access file to Access trusted location could be a problem. I have tried now to add my access database file location to trusted locations for user which is my SQL service user (Windows Service - AD managed service account MYDOMAIN\SQL1$)
    and my test user which I use to connect to sql server as a client from sql management studio. (Account is Domain Admins and have full permissions on SQL server also)
    I have added this .reg:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security]
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Documents]
    "LastPurgeTime"=dword:01592874
    "DisablePromptOpenNetworkTrustedDocuments"=dword:00000000
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations]
    "AllowNetworkLocations"=dword:00000001
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location0]
    "Description"="My file server"
    "AllowSubFolders"=dword:00000001
    "Path"="\\\\myfileserver.mydomain.com\\files\\"
    I have done this for SQL service account user and my personal test account as I said. I have tried to logoff and restart sql service and all servers also.
    The same problem still persists.
    Anyway, thank you for giving me a hint.

  • "RUN-TIME ERROR '3078': The Microsoft Access database engine cannot find the input table or query 'name'. Make sure it exists and that its name is spelled correctly.

     When I run the code below I get the following error:"RUN-TIME ERROR '3078': The Microsoft Access database engine cannot find the input table or query 'False'. Make sure it exists and that its name is spelled correctly. Note that I do not call
    anything by the name of "false" anywhere in this code.
    The subject code (the underscored line of code is highlighted in the debugger when the error occurs):
    Option Compare Database
    Private Sub JobAssign_Click()
    MatLotListAvail_openform
    End Sub
    Function MatLotListAvail_openform()
    Dim dbsAPIShopManager2010 As DAO.Database
    Dim rstMaterialLotJobJoint As DAO.Recordset
    Dim strSQL As String
    Set dbsAPIShopManager2010 = CurrentDb
    strSQL = "SELECT * FROM MaterialLotJobJoint WHERE JobID" = "tempvars!JobID" And "MatLotID" = "tempvars!MatLotID"
    Set rstMaterialLotJobJoint = dbsAPIShopManager2010.OpenRecordset(strSQL, dbOpenDynaset)
    If rstMaterialLotJobJoint.EOF Then
    DoCmd.OpenForm "JobAssignMatConf", acNormal, "", "", acEdit, acNormal
    Forms!JobAssignMatConf!PartapiIDVH = TempVars!PartapiID
    Forms!JobAssignMatConf!JobapiIDVH = TempVars!JobapiID
    Forms!JobAssignMatConf!JobIDVH = TempVars!JobID
    Forms!JobAssignMatConf!MaterialLotIDVH = TempVars!MatLotID
    Forms!JobAssignMatConf!Desc = TempVars!MatDesc
    Forms!JobAssignMatConf!recdate = TempVars!recdate
    DoCmd.Close acForm, "MaterialLotListAvailable"
    Else: MsgBox "This material lot has already been assigned to this job."
    DoCmd.Close acForm, "MaterialLotListAvailable"
    End If
    End Function

    I think the SQL statement should be
    strSQL = "SELECT * FROM MaterialLotJobJoint WHERE JobID=" & _
    tempvars!JobID & " AND MatLotID=" & tempvars!MatLotID
    This assumes thatJobID and MatLotID are number fields.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • SSAS Tabular : OLE DB or ODBC error : The Microsoft Access database engine cannot open or write to the file. It is already opened exclusively by another user, or you need permission to view and write it's data.; 3051.

    Hi all, i'm trying to import a spreadsheet into a tabular model and getting this stupid error even though the impersonation account i'm using is an admin account with full access to the file.  ANY IDEAS? I hate these stupid permission related issues!!!
    Thanks for your help. 

    Hi, I know the post is old, but I'm having this problem and maybe you could eleborate a bit.
    What are the steps to get this done?
    What worked for me is to go to the Excel file, right click and add the MSOLAP user. But this is a manual process, I have many excel files. I don't want to do this to each one. Is there a way to do this in one go?
    Thank you
    Try creating a folder for all the files you want to import. Give the MSOLAP user permission to read that folder then copy your excel files in there.
    However apart from prototypes I rarely do direct imports of Excel files. For any ongoing project I always stage them in a SQL Server table using SSIS. There are just too many things that can go wrong with Excel files, like people locking the file by leaving
    it open. Or changing the file by adding extra columns or putting string values in numeric columns. I find that in SSIS I can build a lot more robust data flows to handle this sort of thing. 
    http://darren.gosbell.com - please mark correct answers

  • Microsoft Jet database engine

    I purchased SatelliteDirrectTV, used it for more than a year and then was suddenly cut off.  The company simply would not respond to my emails.  I have another company's software "Incline Global" but when trying to install I get a message saying "The Mocrosoft Jet database engine cannot open the file 'C:\Program Files (x86)\ Incline Global\ It is already opened exclusively by another user, or you need permision to view its data"  Is there a way to reset this?  I have already tried "reset" and "recovery" also upgraded to Windows 8.1 and still get the same message.  Any suggetstion would be helpful.  PC77

    thanks so much for your reply. i have made no changes recently on the site. how do i determine if this is occuring locally or remotely? anyone visiting remove.canchair.com and clicking the submit button receives this error so i suppose remotely?
    do you think this needs to be taken up with my site hosting company?

  • Cannot start Microsoft Office Outlook. Cannot open the Outlook window.

    I get the following error message when opening Microsoft Outlook (using Windows 7):
    Cannot start Microsoft Office Outlook. Cannot open the Outlook window. The set of folders cannot be opened. Errors have been detected in the file.
    C:/Users/owner/AppData/Local/Microsoft/Outlook/Outlook.pst.
    Quit Outlook and all mail enabled applications and then use the Inbox repair tool (Scanpst.exe) to diagnose and repair errors in the file. For more information about the inbox repair tool, see Help.
    I have tried the suggested fix of using the start menu, clicking "run" and then typing in "Outlook.exe /resetnavpane" and it did not work. Do I need some sort of a longer path to make this work?
    I cannot find the so called "inbox repair tool" and don't know how to use "scanpst.exe".
    Are all my old email folders now lost? How can I start using my Outlook email again?
    Thanks for any help. Susanne 

    It seems to me that your emails has not been lost, perhaps your outlook folder has been lost. to get your emails back you must try one of the following ways.
    Use backup file, if you have kept it in another location.
    if not then go to the:
    C:/Users/owner/AppData/Local/Microsoft/Outlook/Outlook.pst."
    and run the scanpst,exe tool to fix the outlook error on windows 7.
    If this application is not working or giving error then use a powerful PST Repair tool. which ,may become helpful for
    you.
    Visit here to know more: http://howto.fixscanpstexe.com

  • When i click on safari to use the internet it says "safari cannot open the page because it is not connected to the internet", but i am connected to a wifi network so how do i get safari to work?

    when i click on safari to use the internet it says "safari cannot open the page because it is not connected to the internet", but i am connected to a wifi network so how do i get safari to work?

    you may be connected to the wireless network but the question is the internet working properly on the wireless network...
    what i mean is that i can make a wireless network without the internet so i can save and share files and have other devices connected to the same network access them... but you have to make sure that your internet it running properly... may have to reconfigure the router is your using PPPOE or if it was working prior to your post then try to restart your modem... that usually resolves most issues.

  • I have an iPhone 4s. After I updated to the Operating System 7, I cannot open the WiFi. Please help.

    I have an iPhone 4s. After I updated to the Operating System 7, I cannot open the WiFi. Please help.

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • HT201441 i receive your support thru (forgot password) email.the problem now is i cannot open the file using my  ipad.because its asking for apple account and the problem is forgot password and security details when i make apple id.im the owner

    apple, my prroblem now is i cannot open the ios diagnostic using my ipad. the screen shows hello,language,and countrry.and sign in.the email address
    that i'm using before to sign in.and to activate my ipad (forgot password) is stiill i'm using now.i'm the owner of his gadget.i recieve ios diagnostic thru email send by apple.is there any other way to open this support.i'm using now my windows8 laptop,and i havve a new apple id.tnxs

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple. I don't know where you originally posted this question, but it's only just appeared in the Using iPad forum.
    If you can't remember your password then you can reset it via http://iforgot.apple.com
    If you can't get it reset via that site then you will have to contact Support in your country, they should be able to reset it for you (they can also reset your security questions if you've forgotten their answers).
    Contacting Apple about account security : Contact Apple for help with Apple ID account security - Apple Support
    If your country isn't on that page then try this form to contact Support : https://www.apple.com/emea/support/itunes/contact.html

  • I have a PowerPC G4. Firefox 5 for Yahoo says that I meet the requirements. But I cannot open the Firefox.app on my computer. Why not? Thanks

    I was able to download Firefox 5. When I transferred it to my applications folder, it states that I cannot open, because my architecture doesn't support it. Why doesn't it state that when I looked up the minimum requirements? According to that, I should be able to use it.

    Beginning with Firefox 4, Macs must have an Intel x86 processor; your system is a PPC Mac.
    *System Requirements: [https://www.mozilla.org/en-US/firefox/4.0/system-requirements/index.html Firefox 4], [https://www.mozilla.org/en-US/firefox/5.0/system-requirements/index.html Firefox 5], [https://www.mozilla.org/en-US/firefox/6.0/system-requirements/index.html Firefox 6], [https://www.mozilla.org/en-US/firefox/7.0/system-requirements/index.html Firefox 7]
    The good news is that Firefox 3.6.23 still supports the PPC Mac architecture. The bad news is that support for the Firefox 3.6.x series is likely to end in the first quarter of 2012.
    *Download Firefox 3.6.23: https://www.mozilla.org/en-US/firefox/all-older.html
    *Installing Firefox on a Mac: http://support.mozilla.com/en-US/kb/Installing+Firefox+on+Mac
    *System requirements: [https://www.mozilla.org/en-US/firefox/3.6/system-requirements/index.html Firefox 3.6.x]
    You can try the third-party product '''''TenFourFox''''' that supports PPC Macs. The product is based on Firefox released versions. All support is provided by the developer, not by this site:
    *Home page: http://www.floodgap.com/software/tenfourfox/
    *Developer's blog: http://tenfourfox.blogspot.com/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Just bought the new Canon G.11, cannot open raw files

    Although the Raw suffix for the new Canon G.11 is given as .cr2 which it appears Adobe Raw v.5 recognises for other  Canons, Raw files on my G.11 will not open in Photoshop CS4.  Only up to the G.10 is so listed. Anyone got any ideas how soon Adobe will update so the G.11 raw files can open direct?

    I believe John Joslin has already advised you use Adobe Digital Negative
    Converter (DNG) - you'll find it via Google if you don't already know it.
    Bit tedious, it involves the software copying all your cr2 raw image files
    into this "universal" imaging, but it works.  I first used it when I
    upgraded an Olympus E1 to E3.   The E1 .orf raw images opened on my CS2, but
    the E3 .orf images would not!
    Otherwise, you will need CS4, also, at present must download the latest
    Adobe Raw v5.5 to go with it, particularly if you have the G.11.
    Various Canon digitals give a file suffix of cr2, and some earlier Canons
    giving cr2 are accepted on CS4 but my recently purchased G.11 (only retailed
    from 1 October) would not open its cr2 files till I downloaded v5.5.
    If you have the G.11, I bought mine deliberately as a compact alternative to
    my Olympus E3; with an upcoming touring trip to India from which just
    returned .  The G.11 is so handy and easy to operate, it literally became
    the daily camera of use, and I am very pleased with its performance all
    round.  Over 400 images each combined jpg/raw on an 8gb SD card still had
    plenty of space for many more.
    Regards, Peter Rust

  • I have Mac OS X version 10.7.5 and I need to open a secure website to look at DA forms and army regulations but every time I try and open the page it says safari cannot open the page. What do I need to do to open the page?

    Cannot open some sites. Need help!!!

    Have you tried Firefox? That usually is an alternative to Internet Explorer (some web sites are still Windows-centric).
    I've also had success with Opera to access some sites where other browsers have had issues.

  • Microsoft Office 2008 Powerpoint "cannot open the file because it has been moved or deleted"

    I am trying to open some slides my professor posted on Desire 2 Learn. It is a .pptx file. Everytime I try to open it I get an error message that says, "Powerpoint cannot access +I (drive) beacuse the file has been moved or deleted"
    I have uninstalled and reinstalled Office. And yes, I know just moving it to the recycling bin does not fully uninstall it. I followed the directions given in a different thread. Any help would be greatly appreciated. Thanks.

    You may get better answers asking this question in Microsoft's support forums.
    Best of luck.

  • Cannot start microsoft office outlook 2007. cannot open the outlook window

    we have tried the following with no solution to the the problem:
    -recreating the profile.
    -restoring to previous date
    - reloading outlook 2007 from cd
    any other options?

    Try starting Outlook with the /resetnavpane switch. See if this helps -
    http://www.officeforlawyers.com/outlook/tsol.html#cls-B-
    http://www.officeforlawyers.com
    Author:
    The Lawyer's Guide to Microsoft Outlook

Maybe you are looking for