Import-SPMetadataWebServicePartitionData : Bulk load: An unexpected end of file

hello all, i was importing term sets from farm to farm using powershell, i used the export and i got a file and on the import i got this message:
This is the command I wrote:
PS C:\Users\DaniR> Import-SPMetadataWebServicePartitionData -identity "3194
6ea-40a9-4d94-8443-92e71c6a9ad3" -serviceproxy "Managed Metadata Service" -path "c:\TermSets.bak" -overwriteexisting
I got this error :
Import-SPMetadataWebServicePartitionData : Bulk load: An unexpected end of file the data file.
The OLE DB provider "BULK" for linked server "(null)" reported an error. The povider did not give any information about the error.
any help will be good. thanks.

We had the same issue. So we unzipped the cab file and had a look.
It turned out that ECMTermDescription.dat had an entry that was long in fact it went over 3 lines at had some line breaks in it as well.
We removed most of the text and tried again and it worked! Thank you Sharepoint!
something like this:
0C37852B-34D0-418E-91C6-XXXXXXXXXXXX 35622
1033 Description asfsa safsf 
0C37852B-34D0-418E-91C6-XXXXXXXXXXXX 40428
1033 was importing term sets from farm to farm using powershell,
i used the export and i got a file and on the import i got this message fasdfas fasfsf
asfasfsa f asdfasdfasfs asfasfsa fsafsa fsafas flkjsfl;kj la;skfd;a sjfsalkjfasl;kjf slkajfk j asfsfsaf'
asfasf asfs ' asdfas asdf safas' asfsaf asfsaf asfasdfsaf asfas' fasfasdf asdfasfsaf dlkjoi o ipoji jiojjjiji ijijijnkjnk   jhkjhkhjh iuhiooiuoiu
oiouo ugyuyguyg uygugiuhiuhih iuhihuiuhf

Similar Messages

  • Bulk Insert Failure: Unexpected end of file

    Hi all,
    I have a Bulk Insert task which pulls data from a .csv file to SQL server table.
    It works fine 99 out of 100 times, but sometimes it throws the following error in production.
    "System exception: An error occurred with the following error message: "Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information
    about the error.Bulk load: An unexpected end of file was encountered in the data file.".  "
    My Client says that there was no change to the file and it runs fine the next time.Its a error which I could not reproduce in development.
    I have an interface prior to this bulk insert interface to check whether the file is completely available(i.e i try to open the file and check whether its used by any other process).
    I'm supposed to give an answer for why it fails sometimes. Your thoughts on this?
    Rajkumar

    The Bulk insert task is used in SSIS package. The error Posted in my first post is what I got from SSIS..
    Why don't you use Data Flow task? BULK INSERT is fast, but not much error control.
    BOL quote ( http://msdn.microsoft.com/en-us/library/ms141679.aspx ) : "Error Handling in Data
    When a data flow component applies a transformation to column data, extracts data from sources, or loads data into destinations, errors can occur. Errors frequently occur because of unexpected data values. For example, a data conversion fails because a column
    contains a string instead of a number, an insertion into a database column fails because the data is a date and the column has a numeric data type, or an expression fails to evaluate because a column value is zero, resulting in a mathematical operation that
    is not valid.
    Errors typically fall into one the following categories:
    Data conversion errors, which occur if a conversion results in loss of significant digits, the loss of insignificant digits, and the truncation of strings. Data conversion errors also occur if the requested conversion is not supported.
    Expression evaluation errors, which occur if expressions that are evaluated at run time perform invalid operations or become syntactically incorrect because of missing or incorrect data values.
    Lookup errors, which occur if a lookup operation fails to locate a match in the lookup table.
    Many data flow components support error outputs, which let you control how the component handles row-level errors in both incoming and outgoing data. You specify how the component behaves when truncation or an error occurs by setting options on individual
    columns in the input or output. For example, you can specify that the component should fail if customer name data is truncated, but ignore errors on another column that contains less important data."
    http://msdn.microsoft.com/en-us/library/ms141679.aspx
    Kalman Toth SQL SERVER & BI TRAINING

  • What to do when Photoshop says could not import clipboard because an unexpected end-of-file was encountered

    I have PC, with adobe Photoshop CC 2014 and windows 8. Every time I open Photoshop it says: could not import the clipboard because an unexpected end-of-file was encountered. If I exit the message I still cannot create files or open anything... any suggestions?

    When you load Action and when you create new actions they are saved into you Photoshop Preferences into Actions Palette.psp.  This File is read when you start Photoshop.
    Apple and Microsoft both like to hide important files on users.  Windows search and Apple finder will not find and show hidden files unless you change Mac and Windows setting.  I you getting the error when you start Photoshop there is a shortcut to reset preferences. Hold down Alt, Ctrl, and Shift keys (Mac: Command, Option, Shift) while starting up Photoshop you should be prompted to for an OK to delete preferences.
    If this keeps happening perhaps you have a bad spot on your disk.  Loaded actions are saved into that file so they should show up in the Actions Palette when Photoshop Start Up and read that file during start up. Photoshop Writes that file when you load action sets, when you record and edit actions and most likly also when you close down Photoshop.

  • I can´t initialise photoshop because of this Could not load actions because an unexpected end-of-file was encontered. "Could not initialise Photoshop because the preferences file was invalid (it has been deleted)" how can i fix it?

    I can´t initialise photoshop because of this Could not load actions because an unexpected end-of-file was encontered. "Could not initialise Photoshop because the preferences file was invalid (it has been deleted)" how can i fix it?

    I have a MacBook Pro.
    App - Adobe Creative suite 5.5
    The only app that does´t initialize is the photoshop
    Problem solve
    FAQ: How do I reset my preferences?
    Thank you Jeffrey Tranberry

  • "unexpected end of file" error on files after import.

    recently i have been getting errors on import to lightroom,  some times its colored dots or lines,  some times the image looks fine but shows "unexpected end of file" or "lightroom has encountered an error reading file".
    I have been trying to rule things out like cards by switching camera cards ect.   If the file comes up bad i will delete it from disk and re-insert the sd card find the file and drag it to the folder on my drive and re import.   so far this fixes it every time proving the the camera and card are fine, somewhere in the import process its going bad.  
    any suggestions on some more troubleshooting.?
    System specs
    MBP 2.2ghz i7 (2011)
    16g ram ( aftermarket )
    250gb sdd (brand unknown)  with lightroom and catalog +previews (17121 files)
    750gb storage in optical bay,  (nothing ligthroom related in there)
    files are on a 4tb lacie ThunderBolt raid  ( new this week , was using drobo replaced as part of my troubleshooting i thought it was the corruption problem.)
    Lightroom version: 5.2 [922700]
    Version: 10.7 [5]
    Application architecture: x64
    Logical processor count: 8
    Processor speed: 2.2 GHz
    Built-in memory: 16384.0 MB
    Real memory available to Lightroom: 16384.0 MB
    Real memory used by Lightroom: 1379.8 MB (8.4%)
    Virtual memory used by Lightroom: 1681.8 MB
    Memory cache size: 1861.7 MB
    Maximum thread count used by Camera Raw: 4
    Displays: 1) 1920x1080

    i will try to usb the camera and import that way next time for a few files to try that.  (never tired it on a mac)  will also look this week for an external reader.   If my macbook sd reader turns out to be flakey and was the issue the whole time im going to be very anoyed.   I just bought a new lacie raid thunderbolt drive.

  • I am getting a photoshop error could not load photoshop because the preferences file was invalid and cln't load actions because of an unexpected end of file encountered.

    I am getting a photoshop error could not load photoshop because the preferences file was invalid and cln't load actions because of an unexpected end of file encountered.

    Are you trying to open Photoshop directly, or open it by double clicking on a Photoshop document, like a PSD file?  If the former, then you might need to reinstall.  Resetting Preferences would be the firs step, but I am not sure if that will work if Photoshop is not opening in the first place.
    Try doing so anyway.  Hold down Shift Alt Ctrl (Shift Opt Cmd) while opening Photoshop. OK the message to delete Preferences.
    If you get the unexpected end of file error while trying to open Photoshop via a PSD document, then there is more than a good chance that that file is toast.
    If still stuck, we need to know Operating System, and Photoshop version.

  • I have this message today: Could not load actions because an unexpected end-of-file was encountered.

    i have this message today and I don’t know what to do, I have PS CC : Could not load actions because an unexpected end of file was encountered

    See whether a reset of Preferences solves the problem
    A logical next step would be to reset your Preferences.
    To reset Preferences:
    If Photoshop is already open on your screen, close it (Quit). Then hold down Shift+Ctrl+Alt (Win) / Shift+Command+Option (Mac) on your keyboard and start Photoshop.
    A dialog box will pop up asking if you want to delete the existing Preferences file (the "Settings"). Click Yes in the dialog box. The existing Preferences file will be scrapped and a new one will be created.

  • Could not load actions because an unexpected end of file was encountered, resetting preferences doesn't work, whats next?  PC windows 8 PS CC

    I tried the ctrl alt shift and click yes to delete preferences and it didn't work.   Where are my actions?   I have no issues with disc space etc (over 500 free) Any help is greatly appreciated as I have many edits to get to customers

    Have you taken a look at this thread? Could not load actions because an unexpected end-of-file was encountered.
    Benjamin

  • D750 "unexpected end of file" for NEF that loads fine into Capture NX-D

    I have a NEF that produces an "unexpected end of file" error in both Lightroom 5.7 and PS CC (both with Camera Raw 8.7). The same NEF loads and converts fine in Nikon's Capture NX-D V1.0.2. The NEF also converts fine into a JPEG using the D750's in-camera NEF processing function. I can provide the NEF to Adobe for analysis.

    "Btw @engerim, any chance you were using both SD card slots on your D750 when you got this NEF and had them configured in backup mode? If so I'd like to see the same NEF from the other card if you have it."
    Tried the following this morning:
    Menu -> Photo shooting menu -> Role played by card in Slot 2 = Backup (second option)
    Then I started an interval shooting with 200 images, and went for breakfast ;-)
    Normally one would expect the images are 100% the same in both slots (checked with md5sum) but they are not (this makes this a bit more difficult).
    Anyhow when opening the images in Camera Raw the images affected by this issue ("unexpected end of file" error) were the exact same files in both slots. All other images were fine in both slots. Files are here: http://stuff.inxsoft.net/tmp/d750-raw-with-issues.zip
    All images included in the zip have the problem except DSC_4078.NEF (which I included for reference and it will also allow you to see the difference in checksums in both slots). Anyhow we can rule out its an SD Card issue or buffer issue.
    Contents of the zip file:
    $ find . -type f|xargs md5sum
    d10ca1603b10820a8018afbf9a7b09a1 *./slot1/DSC_3992.NEF
    a0394903a03b413202d7c6d0e971cc8b *./slot1/DSC_4047.NEF
    02f54769845fc86890d1791950d14324 *./slot1/DSC_4065.NEF
    2a35398be7298407c649a57d610d82b0 *./slot1/DSC_4077.NEF
    ^^ problematic files
    879e94509d9fbb1bc19e96c7694850ba *./slot1/DSC_4078.NEF <-- file which has no issues for reference
    94f542df6f3f85dec01919f4535910cd *./slot2/DSC_3992.NEF
    eacb286d896d8282079d273812f27e9d *./slot2/DSC_4047.NEF
    a70f9535ea180ce37fda81d05a723119 *./slot2/DSC_4065.NEF
    11898b2c6fecf320af5fa1d234844598 *./slot2/DSC_4077.NEF
    ^^ problematic files
    01995ec69995c2d72a8c4993ecefda30 *./slot2/DSC_4078.NEF  <-- file which has no issues for reference

  • HELP! 'unexpected end of file' error-Is there a fix?! OS 10.4.11

    Getting 'Unexpected end of file' error when trying to open a file (that's a rush job) in QuarkXpress 6.5.  I attributed it to lack of memory, so I immediately backed up all files and HD to an external drive to free up space. Restarted and prayed... Quark launched, but file won't open. Same error.
    Have: 2.1 GHz PPC G5, 1.5 GB DDR2 SDRAM  OS 10.4.11 (pre Intel)
    Capacity: 232.8GB, Available: 163GB, Used 69.6GB
    Have been searching help site for 5 hours looking for answer and am DESPERATE!  I saved changes regularly, but can't access this file at all... I've lost 2 full days & nights working on this project that has to be done in 2 days.
    Ran Disk Utility, but no success opening this specific Quark file (Quark will launch- it's just this file that's affected).  Have tried to down load Applejack, etc. but keep finding out they only support OS 10.5 or higher.  (Haven't been able to afford upgraded system since Intel requires purchase of full verions of graphics software instead of upgrades to the tune of $6k).
    PLEASE, I only know enough to be dangerous, so ANY help is GREATLY APPRECIATED! 
    Savvy folks- if I'm in the wrong place, please send me a link where I can solve this personal catastrophy.
    Many thanks-in-advance

    I think you best do over your work from scratch.  You need to make backup copies of the files regularly.  You need to have copies on multiple disks or flash drives.
    I saved changes regularly
    You should know that this isn't sufficient. You need to have multiplte copies of the file.  Backup anyone?  Could be the file structure got messed up.  Could be Quark messed up the file.
    You need to get a newer machine.  G5's are not reliable any more.  Need to see if Quark will run in compatiblity mode on an intel machine.  You should at least get an external firewire drive from owc.  Old hd's are not reliable.
    Boot in safe mode. Hold down the shift key when powering on the machine. This will run a disk repair program. Boot up will take longer as the harddrive is scanned and repaired.
    See this article:
    http://docs.info.apple.com/article.html?artnum=107393
    Or from:
        mrtotes article  :
        Boot from the OS X Install disk and from the Menu Bar choose Disk Utility. Then run "Repair Disk" and "Repair Disk Permissions" on your hard disk.
        a brody:
        https://discussions.apple.com/docs/DOC-1689
    Here the apple article on booting single user mode and using fsck. See the section on Use fsck:
    http://docs.info.apple.com/article.html?artnum=106214
    I suspect not but Perhaps Disk Warrior will be of some help:
    http://www.alsoft.com/DiskWarrior/
    Robert

  • Crash at start up photoshop on mac  for unexpected end-of-file encountered

    Hi,
    When I try to start Photoshop. I have the splash screen and it starts loading but when arrived at loading preferences, it stops and I have the error message :
    unexpected end-of-file encountered. Then "could not initialize photoshop because the preferences file was invalid ( it has been deleted). I am sure I have not deleted but I know my hard drive is almost full.
    What I can do ? I really need it. I  have photoshop CS5  on mac osx. I can't get photoshop cc because my imac is too old
    Thank you very much for your answer and help.
    Anne.

    Please read these and proceed accordingly (restoring Preferences might deserve special attention):
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

  • Unexpected end-of file encounterd

    I need help: when I open an image in Photoshop I get this error "could not import the clip board because of an unexpected end-of-file was encountered" how do I fix this?

    Sorry, I misread the error message first.
    First, try Purging the Clipboard.
    If that doesn't fix it, it could indicate a damaged or corrupted file.  If that's the case, you'll have to go to your backup file.
    It would help to know details and specs about your setup.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Error Unexpected end of file from server with HTTP POST

    Hi everyone,
    I'm coding a simple client to download some information from a local machine in my LAN.
    I have to do this with an http post request.
    When i try to parse the http response the program catch an exception, this one:
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(...)
    the parameter is a JSON request, and of course the response is a JSON formatted.
    i put the http request code:
    import java.io.BufferedInputStream;
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.HttpURLConnection;
    import java.net.URL;
    public class HttpDownloaderThread  extends Thread{
         private String url;
            private String param;
         private HttpDownloadListener listener;
         private HttpURLConnection connection=null;
         private InputStream is;
            private OutputStreamWriter wr;
         public HttpDownloaderThread(String _url,String param, HttpDownloadListener _listener){
              url = _url;
              listener = _listener;
                    this.param=param;
         public void run(){
              try{
                   connection=(HttpURLConnection)new URL(url).openConnection();
                            connection.setRequestMethod("POST");
                            connection.setReadTimeout(5000);
                            connection.setRequestProperty("Content-Type", "application/jsonrequest");
                            connection.setDoOutput(true);
                            wr = new OutputStreamWriter(connection.getOutputStream());
                            wr.write(param, 0, param.length());
                            wr.flush();
                            int responseCode=0;
                   System.out.println();
                            try{
                             responseCode= connection.getResponseCode();
                            }catch(Exception e){
                                e.printStackTrace();
                   if (responseCode == HttpURLConnection.HTTP_OK){
                        is = connection.getInputStream();
                                     BufferedReader rd = new BufferedReader(new InputStreamReader(is));
                                    String line;
                                    while ((line = rd.readLine()) != null) {
                                        System.out.println(line);
                        closeHttpConnection();
                        listener.resourceDownloaded(url, null);
                                else{
                                closeHttpConnection();
                                listener.downloadFailed(url, new Exception("Http error: " + Integer.toString(responseCode)));
              }catch(Exception e){
                   e.printStackTrace();
                   listener.downloadFailed(url, e);
              }finally{
         public void closeHttpConnection(){
              if (is != null){
                   try{
                        is.close();
                                    wr.close();
                   }catch (Exception e){
                   }finally{
                        is = null;
                                    wr=null;
              if (connection != null){
                   try{
                        connection.disconnect();
                   }catch (Exception e){
                   }finally{
                        connection = null;
    }there's someone who know's why??
    Thanks to everyone :)
    Thomas.

    jole_star wrote:
    this problem also happen to me,.So since you provided actually no information about your problem you are going to get exactly the same response.
    Please don't hijack old threads. Start your own and provide much much much more information.
    I shall lock this thread.

  • What causes 'Unexpected end-of-file' error?

    Hi,
    I am a photographer and an avid Lightroom user. I have two camera's (Nikon D700 and D300) and two computers, a desktop PC and a MacbookPro. Lightroom is installed on both computers.
    For the last three photoshoots I have had this problem where 1 in 3 to 1 in 5 images in Lightroom on my desktop PC suddenly gives a 'Unexpected end-of-file' error. First I thought it was my camera. But then I loaded the images onto my MacbookPro and they worked fine. Then I took some images with my other camera, loaded them on to my Desktop PC, and, voila, same problem.
    The problem specified: the image stops rendering a preview. A dull preview appears. At the top of the screen the message appears: "An unexpected end-of-file occurred." The histogram window stays empty and the image can not be developed.
    I have browsed through this forum some looking for the cause and the fix. There are some mentions of it, but they all date back to 2007.
    I run LR 2.2 on Windows XP SP2 and on a MacbookPro with OS X, version 10.5.8.
    Please help me understand the cause of this problem, and help me find a fix?
    Thanks,
    Rogier
    Rotterdam, The Netherlands
    www.rogierbos.com

    While the corruption in your .NEF file could come from any one of a number of sources, here is a way to recover at least some of the information if you own Adobe Acrobat.  Your .NEF file should contain a smaller JPEG file created by your Nikon camera when the picture was taken.  Even if the .NEF file is corrupt, the JPEG may well be intact, and you can tell that's the case if a preview is visible in Lightroom or Bridge. 
    If you try to print it from Bridge or Lightroom, though, you will get an error.  You can get around this by loading up a CODEC that will let you preview the files in Windows Photo Gallery.  Nikon has one available for download to use with Vista x32 at http://www.nikonimglib.com/nefcodec/index.html.en, but it doesn't support Vista x64, so if you're running that (as I am) you'll need a second party CODEC such as the one available from http://www.ardfry.com/Products.htm with a 15-day trial download available.  They also have a DNG CODEC which I have not tried.
    With that CODEC installed and your system rebooted, preview the damaged NEF file in Windows Photo Gallery.  Choose the "Print" option and select the "Adobe PDF" printer.  Choose the "Postscript Custom Paper Size" option, and set the dpi resolution to the highest available (4000).
    Go to the "Options" link on the bottom right of the window and uncheck the "Sharpen For Printing" box, as you can do this yourself with later processing.  Then go to the "Printer Properties" link to see the Adobe PDF settings.
    Go to the Adobe PDF Settings tab and choose Default Settings: High Quality Print, which will set the resolution to 2400 dpi. 
    You want to have Acrobat interfere as little as possible with the output, so select "Edit" from the Default Settings tab, which will bring up the "High Quality Print - Adobe PDF Settings" dialog.  Here, turn off the "Optimize for fast web view" check box, then go to the "Images" folder and set the "Downsample" setting to Off and the pixels per inch to 2400.  Also, set "Compression" to Off.
    If you're going to do this in the future, you can also "Save As ..." your settings for future use with a name like "Fix Bad NEF Files."
    Print the file to a designated folder.  It won't be quite as good as the NEF file would have been, but at least you haven't lost the shot.

  • Unexpected End of File error in LR 1.3

    Using the computer's built-in SD card reader, I imported NEF files taken on my Nikon D80. The previews showed up in the Library window of LR, but when I tried to open the files in Loupe view, I received an "Unexpected End of File" error on most of the images.
    Thinking it might be a card issue, I took some test shots using JPG format instead of NEF, and all images imported and opened properly.
    I then took some other photos in NEF format, imported them thru the card reader, and none of the new files would open in loupe view. I deleted all the files from the computer and library, and tried the following.
    I then hooked the camera directly to the computer's USB port and imported the problem NEF files from the camera (SD card in the camera). Everything worked fine -- all the NEF files opened properly.
    Not being a technical type, I don't know if this is a software or hardware issue -- does anybody have a clue?
    I have used this card before and have used the card reader to inport RAW files from a different camera (Panasonic LUMIX) with no problem.
    I hesitate to use RAW format on my Nikon D80 until I can figure out what the problem is.

    I believe the problem is related to Edit > Catalog Settings... > Metadata > EXIF > Write date or time changes into proprietary raw files.  If this is selected and you change the capture time on your images then around 1 in 256 photos will become corrupted.  The problem is one in 256 files will end with character 26 (or character 1A in Hex).  When updating the files Lightroom removes the trailing character 26.  First of all turn off this switch.  Secondly if you don't have a good original copy you can download and use HEdit to append the trailing character 26 to your file. 
    I first posted this problem in September 2007 on the forum.  It is still an issue in the 3.2 RC.  I have reported the bug through adobe labs (correct channel rather than this forum) and they are looking into the problem.
    http://forums.adobe.com/message/1399193#1399193

Maybe you are looking for

  • Seagate Goflex external drive not mounting

    Upgraded to Yosemite with no problems. However my Seagate 3tb external drive will not mount, but it is recognized in the disk utility and it is recognized on a pc but will not mount? Is there anything I can do? I tried the goflex thunderbolt dock, Iv

  • Csv output has database column names instead of aliases as in template

    Hi, I'm trying to publish a csv report to an ftp server in a specific format and layout. The column names need to be customized. I've modified the alias name both in the data model and in the rtf layout template. But the csv still contains the data b

  • MRP for Service Order

    Hi Friends,                                My client want to run the MRP according to  Material Group and according to service order.What are the possible ways to run the MRP? How my problem can be resolved?Please reply... Regards,

  • Copying multiple tables from On Premises SQL to Azure Blob

    Hello Team, Using ADF, I wanted to move data from On Premises dataset having multiple tables to Azure Blob.  Can you please provide some help  or share some samples ? Thanks, Eshetu

  • How to reduce the IPSec VPN connection establishment time

    Hi, I set up an IPSec VPN with NAT-T between two cisco router 871. In particular one router acts as a SERVER and the other one as  a CLIENT. All the traffic coming from the hosts connected to the CLIENT-router is sent over the VPN (no split tunnel).