Possible reasons for BCP import failure? [Unable to open BCP host data-file]

Hi,
I have inherited a process where a bunch of tables are being prepared locally with python and puched to a database. It fails and I don't know why, though my first thought is access rights. I have admin access to the database (and server?) using SQL server
authorisation. Here is an example BCP command being churned out by the python script:
bcp "[TEST].[dbo].[ISP_2014_flat]" in "flat_files/ISP_2014_201504011504.csv" -U admin -P XXX! -c -t ^ -S "xxx20039999\DZUHE00999,2311"
SQLState = S1000, NativeError = 0 Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-file
What can I check that might be responsible for this problem?
Thanks,
Andrew

Below are points that you can consider:
I don't think you need double quotes (") around the table and filename.
If the file is on shared folder, provide the UNC path like
\\server\folder\file.csv and even if it is in local try providing full path
Make sure the file is not opened by someone (if it exists already)
If it works from SSMS and doesn't work if run via SQL Agent then Agent account must have access to the file
You can see few examples given in BCP Utility and also you may give try using BULK INSERT too
bcp Utility
BULK INSERT (Transact-SQL)
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP]

Similar Messages

  • How to find the reason for a job failure

    Hi,
    I have created a job .
    It was running fine. But after few days it showed the status as broken.
    How do we find the reason for a job failure ?
    Thanks.

    There should be a trace file in the either the udump or bdump (depending on Oracle version) directory on the DB server. If the job is broken it has probably failed 16 times, so you should have 16 trace files - each possibly showing the same error. The relevant trace files will have j00 in the name, showing that they were generated from dbms_job.
    Ben

  • I cannot log into facebook. I get the following message: 404 Error - Not Found The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request,

    I am not able to go to the facebook site. www.facebook.com is not working. I get the following error message. 404 Error - Not Found
    The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request, or the file is not accessible in the requested directory. Please verify that:
    * You have used the proper case; requests ARE case-sensitive!
    * You have entered the URL correctly. (i.e. proper directory/filename)
    * You used the FULL URL. (i.e. proper file type: .html, .gif , .jpg, etc.)
    * You use a tilde (~) before user directories. (i.e. www.furcen.org/~jurann/ )
    * The user/file still exists on this server.
    I also get redirected to "Busca Google" when typing www.facebook.com in the address bar.
    == URL of affected sites ==
    http://facebook.com; buscagoogle.com

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • Common reason for Mirage Server Failure in Clustered Environment and how clients will be switched to other server in a cluster

    Hi,
    Can Anybody share me the information regarding Common reason for Mirage Server Failure in Clustered Environment.
    And how clients will be switched to other server in a cluster to continue their operations from the failed server.
    Regards,
    Bathesha C

    Hello,
    if you have more than one mirage server configured with Load balancing (LB or MSFTNLB) the client would disconnect from the faulting server and then reconnect to an other server to progress with the action as before.
    All Mirage server are stateless and share the same SIS (single instance store) so any server can update or create CVD file set for an client.
    Hope that helps.

  • What could be the possible reason for a deployed application to run slow after the target pc comes out of standby mode?

    What could be the possible reason for a deployed application to run slow after the target pc comes out of standby mode?  PC running XP and using the USB to communicate with the DAQ and driver boards.  Application generated with 2010.
    Thanks

    Hello,
    Usually default property is checked 
      system property -> devices ->usb root -> power management -> allow system to switch off device
    Hope this help
    Regards
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte

  • I had bought iPhone 4 from OLX. When i had deleted iCloud account and restored my iPhone it is still asking me about Apple I.D to activate my Phone.. Why is it so..?? Suggest me a possible reason for my Question so that i may continue using my iPhone...

    I had bought iPhone 4 from OLX. When i had deleted iCloud account and restored my iPhone it is still asking me about Apple I.D to activate my Phone.. Why is it so..?? Suggest me a possible reason for my Question so that i may continue using my iPhone...
    I dont have any contact detail of that person whom i had bought this phone..

    If you are trying to activate an iPad or iPhone and it is asking for a previous owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. You must contact the previous owner to get permission to use the device. If you cannot contact the previous owner return the device to where you bought it and get a refund. You will never be able to activate the device and no one can help you do it.

  • Possible reasons for error 1074396005 invalid avi session

    Dear All,
    I am working on creating and writing frames on to AVI files. I need to start writing frames up on record on command and close the AVI file up on record stop command. I am trying to read frames from an recorded video and write in to another AVI file.
    But i am observing Error 1074396005 invalid avi session, whenever i run the code. I am using AVI2 VI's (IMAQ AVI2 Create, AVI2 Write and AVI2 close).
    I am using LabVIEW 2013 SP1 and Vision development module versions.
    Below is the block diagram for reading an avi file and writing in to avi file upon record on command (numeric control value 1 to case selector) 
    Block diagram for record off
    Below is the error observed:
    Kindly suggest what would be the possible reason for the error.
    With regards,
    Sri
    Attachments:
    Block diagram1.PNG ‏59 KB
    avi2 error2.png ‏381 KB
    Block diagram2.PNG ‏20 KB

    Might be good if you can post the code instead of screenshots.
    -If session was closed or aborted due to some reason you should get this error.
    -Multiple times you are creating the session inside the loop with same avi session, is it required?
    -Are the images added to the avi file?
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • How to determine reason for socket write failure

    Hi,
    I'm new to socket programming in general, so please bear with me. I've looked around on the forums quite a bit, and haven't found an answer to this question.
    I'm working with server code which creates TCP connections over an air interface with a mobile phone client. Since the air interface is inherently unstable, we rely on the TCP buffering/retry mechanism to store up to its capacity of messages if the client is temporarily non-responsive. Since we are sending small amounts of data, this will actually last for quite a while (several minutes or more depending on how much data we are needing to send). As part of an audit mechanism to detect lost clients, I do a write of a "heartbeat" to the socket and if the write fails, I can assume that either the buffer is full (meaning the mobile "went away" either due to loss of battery power, driving through a very long tunnel, etc.), or the mobile actively disconnected the socket.
    However, I'd like to know if there is a way to determine the reason for the write failure? I catch the exception, but as far as I can tell they are all IOExceptions. Is there any way to further delineate the reason for a socket failure?
    Any help would be greatly appreciated.
    Thanks,
    -Lisa

    If you're in a hurry, I don't have an answer for you.
    That said, it was an intriguing enough question that I did some poking around as well. There is a socket exception class, but generally speaking, the only methods that throw socket exceptions tend to deal with defining, creating and closing the socket.
    Communicating through the socket is done through input and output streams, and like any other streams, those throw I/O exceptions. I suspect you're catching IOEs because you're using streams. Unfortunately, even Socket.sendUrgentData( int data ) also returns an IOException rather than an SException.
    In the interests of covering all the bases, are the IOE messages unsufficient? That is, try...
       } catch ( IOException ioe ) {
          System.out.println( "IOException: " + ioe.getMessage() );
       }...might give you enough information to make a guess at whether the buffer is full or if the foreign host has closed the connection. I would suspect this feature is architecture dependent - UNIX systems might have more detail than Wintel systems.
    As a last resort, you could extend the InputStream class and do the appropriate testing when writing/sending your packet. I would think that the only cases you can test for are whether the buffer is full (by maintaining a copy of the buffer and updating as appropriate), the mobile is currently sending data, or if the mobile is just not available.
    Conventional Java isn't really the best for this because I'm not sure the JVM security model really wants to allow you to directly analyze TCP packets (otherwise you could just check for ACK statements). JME might have an easy solution that we didn't know about and you should ask on the appropriate forum. Alternatively, you might want to think about using C to write a library that handles connections this way, and externally call the library from the rest of your Java program.

  • I have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed

    i have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed.
    when double clicking on the image it says unable to open and gives me the option to search the app store.
    any help would be much appreciated
    Adam

    Well, first, just make sure it's the Mac version and not the Windows version (which indeed would not run on your Mac). You say "Windows Office" which is why I mention it. I think you probably just mean "Microsoft Office" though.
    Next, is this on a disk (DVD), or did you purchase and download it from the Microsoft site?
    Matt

  • Running Captivate 8 on a Macbook and I am unable to import Powerpoint 2011 (which is up to date) files or slides.  I get an error saying that either the file is damaged or I am using an older version of PP....which is not the case.

    Running Captivate 8 on a Macbook and I am unable to import Powerpoint 2011 (which is up to date) files or slides.  I get an error saying that either the file is damaged or I am using an older version of PP....which is not the case.  I tried creating a very simple PP file with just a few words on one slide...ran a compatibility check and all was good.  Still could not import that simple slide into Captivate.

    OK...found out it did not like me saving as a *.pptx.  When I save it as a *.ppt file it imported in correctly.  Is this what I will need to do moving forward?  I am not sure if I am losing any functionality in the process...

  • DRG-11513: unable to open or write to file /home/oracle/mydocs/....

    Hi @all,
    i've read all the dócumentations i've found in the net but unfortunatly the Indexing of my filestored documents fails every time...
    So what i've done is the following:
    --Step 1 Create User
    --The following SQL command creates a user called MYUSER with a password of myuser_password:
    drop user textuser;
    CREATE USER TEXTUSER IDENTIFIED BY TEXTUSER;
    --Step 2 Grant Roles
    --The following SQL command grants the required roles of RESOURCE,CONNECT, and CTXAPP to TEXT_USER:
    GRANT RESOURCE, CONNECT, CTXAPP TO textuser;
    GRANT EXECUTE ON CTX_CLS TO textuser;
    GRANT EXECUTE ON CTX_DDL TO textuser;
    GRANT EXECUTE ON CTX_DOC TO textuser;
    GRANT EXECUTE ON CTX_OUTPUT TO textuser;
    GRANT EXECUTE ON CTX_QUERY TO textuser;
    GRANT EXECUTE ON CTX_REPORT TO textuser;
    GRANT EXECUTE ON CTX_THES TO textuser;
    begin
    ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    end;
    begin
    ctx_ddl.set_attribute('COMMON_DIR','PATH','/home/oracle/mydocs');
    end;
    begin
    ctx_ddl.create_preference ('AUTO_DECT','INSO_FILTER');
    end;
    create table mytable(id number primary key, docs varchar2(2000));
    insert into mytable values (111557,'Zwischenbericht.doc ');
    commit;
    create index myindex on mytable(docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR');
    select id,docs,score(1) from mytable where contains(docs, 'Dokumentation',1)>0;
    returns NULL ROWS!!
    select * from CTX_USER_INDEX_ERRORS;
    DRG-11513: Datei /home/oracle/mydocs/Zwischenbericht1.doc kann nicht geöffnet oder geschrieben werden
    (unable to open or write to file /home/oracle/mydocs/Zwischenbericht1.doc )
    I gave an chmod 777 on the document "Zwischenbericht1.doc"
    So what can i do?????
    I use Oracle 10.2.0 on Suse Linux 9.2
    I'm very happy about Ideas and helpfull advices.
    Thanks a lot regards Julius

    Hallo Barbara,
    thanks a lot for your help!!!
    I've noticed that it is necessary to create the user textuser as ctxsys. So i've done like you recommended but unfortunately the result is the same.....
    I added an utl_file Path to my SPFILE. (utl_file_dir= /home/oracle/mydocs) as you can see below. (is it necessary to something else to the spfile which i haven't noticed at all???
    After that i tried to set up all by using sqlplus for having the possibility to show the results.
    Below you can see the statements, the connect-Changes (ctxsys/textuser)
    and the echo .
    Do you or somebody else have an idea what i can do additionally to get this working???
    Thanks a lot and regards Julius
    oracle@scarlino:~/product/10.2.0/db_2/dbs> more spfileJULIUS2.ora
    ð!
    JULIUS2.__db_cache_size=71303168
    JULIUS2.__java_pool_size=4194304
    JULIUS2.__large_pool_size=4194304
    JULIUS2.__shared_pool_size=83886080
    JULIUS2.__streams_pool_size=0
    *.audit_file_dest='/home/oracle/admin/JULIUS2/adump'
    *.background_dump_dest='/home/oracle/admin/JULIUS2/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='/home/oracle/oradata/JULIUS2/control01.ctl','/home/oracle/oradata/JULIUS2/control02.ctl','/home/oracle/oradat
    a/JULIUS2/control03.ctl'
    *.core_dump_dest='/home/oracle/admin/JULIUS2/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='JULIUS2'
    *.db_recovery_file_dest='/home/oracle/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=JULIUS2XDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=167772160
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/home/oracle/admin/JULIUS2/udump'
    *.utl_file_dir='/home/oracle/mydocs'
    oracle@scarlino:~/product/10.2.0/db_2/dbs> sqlplus " / as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 19 11:36:29 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 92276980 bytes
    Database Buffers 71303168 bytes
    Redo Buffers 2973696 bytes
    Database mounted.
    connect ctxsys/ctxsyDatabase opened.
    SQL> s
    Connected.
    SQL> drop user textuser cascade;
    User dropped.
    SQL> CREATE USER TEXTUSER IDENTIFIED BY TEXTUSER;
    User created.
    SQL> GRANT RESOURCE, CONNECT, CTXAPP TO textuser;
    Grant succeeded.
    SQL> GRANT RESOURCE, CONNECT, CTXAPP TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_CLS TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_DDL TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_DOC TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_OUTPUT TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_QUERY TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_REPORT TO textuser;
    Grant succeeded.
    SQL> GRANT EXECUTE ON CTX_THES TO textuser;
    Grant succeeded.
    SQL> connect textuser/textuser
    Connected.
    SQL> begin
    ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    end;
    / 2 3 4
    PL/SQL procedure successfully completed.
    SQL> begin
    ctx_ddl.set_attribute('COMMON_DIR','PATH','/home/oracle/mydocs');
    end;
    / 2 3 4
    PL/SQL procedure successfully completed.
    SQL> begin
    ctx_ddl.create_preference ('AUTO_DECT','INSO_FILTER');
    end;
    / 2 3 4
    PL/SQL procedure successfully completed.
    SQL> create table mytable(id number primary key, docs varchar2(2000));
    Table created.
    SQL> insert into mytable values (111557,'Zwischenbericht.doc ');
    1 row created.
    SQL> insert into mytable values (111558,'Test.txt ');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> drop index myindex;
    drop index myindex
    ERROR at line 1:
    ORA-01418: specified index does not exist
    SQL> create index myindex on mytable(docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR'); 2 3
    Index created.
    SQL> select token_text from dr$myindex$i;
    no rows selected
    SQL> select id, docs, score(1)
    from mytable
    where contains (docs, 'Dokumentation', 1) > 0; 2 3
    no rows selected
    SQL> select * from CTX_USER_INDEX_ERRORS;
    ERR_INDEX_NAME ERR_TIMES ERR_TEXTKEY
    ERR_TEXT
    MYINDEX 19-SEP-05 AAANA3AAEAAAAGEAAA
    DRG-11513: unable to open or write to file /home/oracle/mydocs/Zwischenbericht.d
    oc
    MYINDEX 19-SEP-05 AAANA3AAEAAAAGEAAB
    DRG-11513: unable to open or write to file /home/oracle/mydocs/Test.txt
    SQL>
    ################################################################################

  • I saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    i saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    THis is safe for Mac's? Sorry, I have just never heard of this site before.
    And there are literally tens of thousands of sites of which I've not heard, too. Not this one.
    It's legit. There are lots of links in Apple Support Communities to the LibreOffice web site, as well as others that are legitimate open-source developers of options to buying MS Office, such as NeoOffice and OpenOffice. I have Open Office installed on one of my older Macs that can't run Office 2011 and it is rock-solid.
    I've been here too long to start posting bogus urls now.

  • Unable to open USB port device file: Permission denied

    I have an up-to-date system (full "pacman -Syu" yesterday), I am in a "lp" group and the printer (Canon Pixma MP270) started to give "Unable to open USB port device file: Permission denied" error, although in the past it worked and still works in Windows. Doesn't anybody have a similar problem?

    Thanks for reply.
    CUPS worked, I could use CUPS-PDF and localhost:631 was accessible and working.
    Today I managed to print again. I did "pacman -Rcsn cups" and reinstalled it again.
    My printer is Canon Pixma MP270 and so far it wasn't the best choice for Arch Linux—scanning works fine but it's like throwing a coin when it comes to printing. I've written a simple PKGBUILD for installing its printing driver as a regular package, but I don't know what to set as a license.
    pkgname=mp270-printer
    pkgver=3.20
    pkgrel=1
    pkgdesc="Canon Pixma MP270 printer driver"
    arch=('i686')
    url="http://software.canon-europe.com/products/0010753.asp"
    license=('unknown')
    depends=('libpng12' 'gtk2' 'popt')
    makedepends=('deb2targz')
    source=(http://files.canon-europe.com/files/soft37268/software/MP270_debian_driver_pack.tar)
    md5sums=('d26c36e2d1799ddc09e644dc7765f0a3')
    build() {
    cd $srcdir
    tar xzf cnijfilter-mp270series-$pkgver-1-i386-deb.tar.gz
    cd cnijfilter-mp270series-$pkgver-1-i386-deb/packages
    deb2targz *
    tar xzf cnijfilter-common_$pkgver-1_i386.tar.gz
    tar xzf cnijfilter-mp270series_$pkgver-1_i386.tar.gz
    ln -s /usr/lib/libtiff.so usr/lib/libtiff.so.4
    package () {
    cd $srcdir/cnijfilter-mp270series-$pkgver-1-i386-deb/packages
    cp -r usr $pkgdir/

  • Unable to open Java Webstart jnlp files in Mavericks

    Since upgrading to Mavericks I am unable to open Java webstart jnlp files in Safari.
    When trying to open the specified URL with the jnlp file, nothing happens, the download simply will not start.
    Tried different security settings in Safari & Java control panel
    It affects all applications using webstart.
    Java 7.45 & iOS 10.9

      Can you check which version of Camera Raw is installed - it needs to be version 6.2 or later for the 60D
    Open Full edit on the menu bar click:
    Help >> About Plug-In >> Camera Raw
    Press Esc to close the pop-up.
     

  • Unable to open a specific xlsx file

    Hello,
    I am unable to open a specific xlsx file on my iPhone 5 which has iOS 7.0.4 in quick look.
    I able to open other .xlsx and this specific file can be opened as a .xls
    Unfortunately, I am unable to post this file due to security issues.
    Would anyone know if there is a reason why I cannot open this as a .xlsx?

    So there are two .xlsm files that I am using.
    Both of which have the same code.
    It is just the name of the reports which are different.
    The macro code is used to email this report to the user which is on an active worksheet.
    Once this has been emailed, we are able to open the report generated by one .xlsm code that spits it out as .xlsx but not the other on the iPhone.
    I am able to save the other report as a .xls and send it across and I can preview it in Quick Look.
    Unfortunately, the users do not possess the Numbers app.

Maybe you are looking for