Copy Wizard failed

I found errors in the receiving SQL db's logs:
SQL Server Scheduled Job 'Status: Failed - Invoked on: 2014-08-12 12:33:48 - Message: The job failed.  The Job was invoked by Schedule 9 .  The last step to run was step 1
and
ERROR : errorCode=-1073548784 description=Executing the query
"sys.sp_addrolemember @rolename = N'TFSEXECROLE', @..." failed with the
following error: "The role 'TFSEXECROLE' does not exist in the current
database.". Possible failure reasons: Problems with the query, "ResultSet"
property not set correctly, parameters not set correctly, or connection not
established correctly. helpFile= helpContext=0
idofInterfaceWithError={C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C} StackTrace: at
Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer() at
Microsoft.SqlServer.Management.Smo.Transfer.TransferData() at
Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferExtraObjectsViaSmoTransfer()
Any suggestions on how to fix? I'm no DBA ;) I see a TFS reference, TFSEXECROLE. To my knowledge, this db has no communication with TFS.
Thanks,
Scott

Hello,
Please refer to the following post for permissions required:
http://blogs.msdn.com/b/tfssetup/archive/2013/01/24/permissions-needed-for-tfs-service-account-in-sql-for-tfs-2012.aspx
TFSEXECROLE is definitely related to Team Foundation Server.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • Import Wizard fails to export - object could not be written in the ids-file

    Hello,
    the complete export of the BO environment into a biar-file with the import wizard fails. In the wizard's dialog every option is choosen as "all". When the export is started it stops already in the folder objects. The log file says the object allocation could not be written in the ids-file. So I presume a problem with references.
    In order to figure out which object is responsible for the error I varied the export and finally identified the "repository objects" as the the responsible type of objects. When I now run the export and only use the needed repository objects it works fine.
    But I don't know, if export is complete (I presume it).
    Has anyone a idea what the reason can be for this problem? Can it be fixed in the database? This kind of export did work fine the week before.
    thanks, matthias

    Could you quote the entire error message, word-for-word, verbatim? What Import settings are you using ... Copy, Move, Add?
    Most likely you have a permissions issue, but it will be much more clear to me if I can see the entire message.

  • SQL Server Import Export Wizard fails while trying to retrieve the data from FastObjects Database

    When trying to import data from FastObjects database to SQL Server 2008 R2 using import/ export wizard we get the following error message :
    "Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
    Clicked on View button, the source data is retrieved correctly.
    Clicked on Edit Mapping button, the Import Export Wizard failed with the below error message:
    ===================================
    Column information for the source and destination data could not be retrieved.
    "Test" -> [dbo].[Test]:
    - Cannot find column -1.
    (SQL Server Import and Export Wizard)
    ===================================
    Cannot find column -1. (System.Data) 
    at System.Data.DataColumnCollection.get_Item(Int32 index) at System.Data.DataRow.get_Item(Int32 columnIndex) at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions)
    at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection
    mySourceConnection) at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)

    Hi Chennie,
    Thank you for the post.
    Does the issue persists after you use the "Write a query to specify the data to transfer" option instead of “Copy data from one or more tables or views” option? If so, the issue may occur due to incorrect data type matching between the FastObjects database
    data types and SSIS data types. In this condition, I don’t think it is necessary to upgrade the SQL Server version. Since you can open the Column Mappings dialog box, please try to modify the data type mapping manually.
    In addition, the issue seems to be the same as the issue described in the following blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/09/09/sql-server-import-export-wizard-fails-while-trying-to-retrieve-the-data-from-pervasive-database.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • ITunes v10.6.1.7 "Copying files failed. The File name was invalid or too long."

    I'm trying to organize my music files using iTunes 10.6.1.7 and I keep getting the error message "Copying files failed. The File name was invalid or too long."
    I've got music folders by artist in both the iTunes Music folder and the iTunes Media/Music folder. When I add certain files by drag/drop they sometimes get lost and I don't want that to happen anymore. I used to just consolidate my music files using the File/Library/Organize Library option and that worked, however now when I do that, I get the error message.
    I'm a novice and the only online stuff I see is both confusing and refers to earlier versions of iTunes.
    My concern is that I have heard that people lose entire libraries of their music when they trry to fix things like this and I don't want that. If this is of any importance, I have several files called iTunes library and temp library. I have no idea what that all means but I'm scared to death of it.
    Also, I can't get to the "re-organize library" link at all. It won't let me.
    One thing that be of some interest is that when I pull up the properties of the music and media/music files they are marked "read only" I'm also afraid to touch that!
    Please help and please know that I am a dummy. Be kind and be clear. Step by step would be great, with images even better. Thanks.

    Perhaps nobody knows the answer? We're fellow users here answering questions in our free time when we think we've something useful to contribute.
    You can choose to *Consolidate selected tracks* with a right-click menu. Perhaps if you can identify a specific track that won't consolidate and examine the full path to the file & the path that iTunes would create when it consolidates the problem might become apparent. For example iTunes may not be able to move files if the source or destination path length exceeds 255 characters.
    tt2

  • Moving library to external hard drive and get the error "Copying files failed. The disk could not be read from or written to"

    Hello,
    I'm moving my library to an external hard drive.
    I've made sure to use the 'Keep iTunes Media Folder Organized' option when pointing to the new library location.
    I select 'File'->'Library'->'Organize Library', I select to 'Consolidate Files', click 'OK' and get ther error message "Copying files failed. The disk could not be read from or written to".
    I've read elsewhere that there may be a corrupted file that I need to sequester somehow and perhaps add it back however I'm not certain how I can locate that file because the status window doesn't indicate which file it's attempting to transfer when the error appears.
    Any tips?
    Thank you,
    Greg H
    iTunes 10.6.3

    OK I figured it out!
    It was a dodgy file....I sorted the file folders by date, and as it turned out within the "compilations" folder there was a CD where only about half the tracks seemed to have been copied over. Could not have identified this simply from the time indicated on the finder folder sort, because there were several CDs copied over in the that same minute.
    I went back to the original itunes folder, deleted all the files from that CD in itunes, then also deleted all those files from the original disk and the target disk.
    Tried the "consolidate library" again, and it completed nicely. 200megs of music and videos.
    Very happy to solve this problem after 3 weeks.

  • Itunes wont consolidate becuase "copying files failed...."

    itunes wont consolidate because "copying files failed. The file name was invalid or too long." why to i get this error message and how do i fix it? I am using itunes 9 on a dell windows xp laptop. i am trying to consolidate the library but it does not work becuase of the error message. please help. Thank

    I'm having similar problems, but Katrina S's suggestion didn't work for me. From my desktop, I'd transferred my music files to an external USB hard drive and the library database files to my laptop. iTunes plays perfectly, but I get the same error message when I try to consolidate. I changed permissions on the external drive and on the iTunes library folder, when needed, to make sure either my user logon or an administrator (which includes me) had full permissions. Still can't consolidate, though. CarolynOtt, did you find a solution yet?

  • Copying files failed. An unknown error occurred (-50)

    I currently have a PC (Samsung Q330 running Windows 7) and I am getting a Macbook Pro in a few days! Therefore I am transferring my iTunes (10.6) library to an external hardrive (Hitachi X250). While I was doing this I received an error message that read “Copying files failed. An unknown error occurred (-50)”. Therefore I was wondering, how the heck do I fix this???
    What I have done.
    I have gone in to “Advance Preferences”.
    I have changed the “iTunes Media folder location” to my external hardrive.
    I have the following two option selected “Keep iTunes Media folder organized” and “Copy files to iTunes Media folder when adding to library”.
    Then I go to File> Library> Organize Library. Then I select “Consolidate files” then I press the “OK” button.
    Then about half way in or so I get a pop up that reads “Copying files failed. An unknown error has occurred (-50).
    As you can see iTunes is not working. Could anyone help me???
    Thanks in advance, Donald Louch!

    Hmm... you may find iTunes is still connected to some files in the original location rather than the new one. You can check with my script Unconsolidated. If that is the case the script ConsolidateByMoving ought to switch the connection to a file already in the correct place however I'm currently working on a new build so the behaviour of the live version might be slightly different.
    tt2

  • "Copying Music failed. The filename was too long or invalid." for Mac

    I'm getting this error when attempting to move itunes libary to new HD (Drobo FS)
    "Copying Music failed. The filename was too long or invalid."
    Are there any Apps or scritps i could run to locate these files to correct/delete?

    Unconsolidated should now give you a much shorter list, presumably the difficult track will be either first or last in this list...
    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background. You'll probably have to disable the progress bar again.
    It only works on files connected to iTunes that have identical tag info. If you're not certain it might pay to make sure first using iTunes Folder Watch to scan for files that are in the media folder but not in the library. It also has a "scan for dead tracks on startup" option with detects missing files.
    tt2

  • "Copying Music failed. The filename was too long or invalid."

    I've been trying to 'consolidate library' inorder to get all my music held and managed under Itunes so I can delete it from other places on my computer & avoid holding multiple copies (in line with Chris CA's guidance in this thread https://discussions.apple.com/thread/2812666?start=0&tstart=0)
    All goes well until I get to the 'consolidate library' step, it starts off copying files & seems to be going alright, then at some point I get the error message :"Copying Music failed. The filename was too long or invalid."
    This error message doesn't help me much as I've no idea where to go from here. I've tried consolidating library twice now and got the same message each time.
    I'm assuming there must be some way to either fix it or identify the file causing the issue?
    Thanks

    Unconsolidated should now give you a much shorter list, presumably the difficult track will be either first or last in this list...
    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background. You'll probably have to disable the progress bar again.
    It only works on files connected to iTunes that have identical tag info. If you're not certain it might pay to make sure first using iTunes Folder Watch to scan for files that are in the media folder but not in the library. It also has a "scan for dead tracks on startup" option with detects missing files.
    tt2

  • Cannot 'Consolidate Library" : Copying music failed , the file name was too

    Hi,
    I am trying to move all the music library to my new computer ( this is my 3rd time of changing my PC). I tried to consolidate the library... but the message was
    Copying music failed , the file name was invalid or too long"
    I already moved the Itunes to my new pc, but my new Itunes cannot "Relocating my file"
    Please help me

    To find out which file it was, look at where you were
    copying them too and see which was the last file
    copied - and then go back to your source, and go to
    the next one - it should be that one.
    I just wanted to add that I had the same issue (failure to finish copying and "invalid or too long" error msg) and at first didn't see how looking for the last file copied would work since iTunes is copying into folders.
    Duh.
    Reverse sort by date modified (newest folder at the top of the list) then drill down to the folder containing the files being copied. Voila. There was the (missing) culprit, and I knew which file to rename in the source folder.
    Thanks for the kick in the brain pan.
    Sony VAIO PCG-V505ACP Windows XP Pro

  • When trying to 'Consolidate Files' via iTunes I get the message "Copying files failed. The name was invalid or too long."

    I am trying to copy my entire iTunes library and everything in it from my PC Desktop to my PC Laptop using the "External Drive" method as shown on the Apple website. On Part 1 (5) I am told to consolidate files. When attempting to do this I get the message "Copying files failed. The file name was invalid or too long."
    How do I resolve this?

    I have just been having this problem and it has been driving me mad.   The error message doesn't tell you which file is causing the problem so you can't fix it and it leaves your libray in a state of limbo with some files copied into the new location and some in the old location.  After many hours I found a surprisingly quick and simple solution.
    1) in iTune create a smart play list that includes everything that was added before tomorrows date.  This will include everything.
    2) Right click this playlist and export it as a text file to produce a tab delimited file.
    3) Import this into a spread sheet, or just view it in a text editor with line wrap turned off.  What you are interested in is the last column (or end of the line in a text editor).  This gives you the path of the file associated with each entry in the library. 
    The path of the files that have already been copied successfully will start with the new location for your media files you specified.  Scroll thru the rows until you get a blank path.  If you start getting paths starting with the old Media file location then you went to far and start scrolling back.
    The row with the blank path was the file that failed.  Move back to the start of the row to find out more about it.  In my case it was a podcast with a very long name. I just deleted that podcast from iTunes.
    4) Restart the consolidation by choosing File, Library as you did before and the process starts again where it left off.
    5) If it fails again on another file just repeat the process

  • Consolidate Problem. Copying files failed. The File name was invalid.

    Hi to everyone,
    My system is 10.5.8, iTunes 9.2.1 (4)
    I tried to consolidate my iTunes library to an external HD. After about 100GB of copied music, I got the message : Copying files failed. The File name was invalid.
    Now everytime I try again to consolidate, I get immediately this message. I am looking everywhere for a solution, and I only find the same problem for Windows iTunes users.
    Actually I found very useful this thread:
    http://discussions.apple.com/thread.jspa?threadID=1708372,
    which talks about with which order iTunes consolidates the media, so by digging a little in the folders to find which track has the problem and make the fix. It says that consolidate start copy the files by the date added order. So I can go in my new iTunes media folder and find the latest added track, then go back in iTunes, sort by date added the songs and locate the next song, to make the fix. However in my case, all previous and next songs (by date added), have been copied in the new locations.
    I am stuck. I have a remaining 300GB of music to consolidate and dont know how to proceed.
    Any help would be much appreciated..

    Finaly, I managed to solve it by myself...,
    following the help I found from the post of the thread I mentioned on my question...
    What was the problem that made things more difficult in my case, is that a big amount of songs have been added at the same time, with just a few seconds time distance. So it was tougher to locate what was the last imported song, and where iTunes consolidation had stopped. Actually I had groups of about 100 songs with the same timestamp of date added and the consolidation was following the rule of the "date added" but not exactly with the order the songs was showing in the iTuned library. So I started checking all the songs very close to the last added in the media folder one by one with the "show in finder" command, and then I managed to found what was the one with the problem.
    Regarding the problematic file, that was a midi file that had been imported in my iTunes.
    I hope this will help anyone else that might have the same problem as me in the future.

  • Copying music failed. The file name was invalid or too long.

    I went to consolidate my music, but when it got about 2/3 of the way through, it stopped with the error message, "Copying music failed. The file name was invalid or too long." I don't know which file it is referring to. How do I find this out?
    I needed to cosolidate so I could backup the entire library to DVD. Now I'm left with two partially complete libraries with many duplicates.

    To find out which file it was, look at where you were
    copying them too and see which was the last file
    copied - and then go back to your source, and go to
    the next one - it should be that one.
    I just wanted to add that I had the same issue (failure to finish copying and "invalid or too long" error msg) and at first didn't see how looking for the last file copied would work since iTunes is copying into folders.
    Duh.
    Reverse sort by date modified (newest folder at the top of the list) then drill down to the folder containing the files being copied. Voila. There was the (missing) culprit, and I knew which file to rename in the source folder.
    Thanks for the kick in the brain pan.
    Sony VAIO PCG-V505ACP Windows XP Pro

  • HT1751 I did all of the above and at the "Consolidate files" screen I clicked "ok" then it sayd "copying files failed. the file name was invalid or too long" and I had to click "OK"  I cannot consolidate the files to transport  to my external harddrive -h

    I would like to backup my itunes to my external hard drive
    I did all the steps up to "organize Liberary" which at this point I checked the box and the clicked"ok"
    it then said "copying files failed.  The file name was invalid or too long" "OK"
    It will  not let me consolidate the files so I can transfer to my external hard drive
    what am I doing wrong - any suggestions?
    thanks,

    Are you using consolidate files to bring in stray files to your main iTunes Media folder before backing up, or to copy the media folder to the external drive as part of backing up? If it is the latter then you are taking the wrong approach. See this user tip.
    Run my script Unconsolidated on the library. It will show you the remaining unconsolidated files which might give a clue as to which files iTunes is having a problem with. You can consolidate selected files in batches (select, right-click) as opposed to trying to do everything in one go. Alternatively you could try moving the remaining unconsolidated files with ConsolidateByMoving as long as this step is a precursor to a backup..
    tt2

  • I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    BUMP
    Yes, I just get that message. I don't see how I could investigate this problem.
    I didn't mention that this happened when I was consolidating my library, not copying files to another computer.
    In other words, I'm using a "normal" itunes procedure, itunes won't complete it, and won't tell me exactly why or how to figure out how to fix it...
    Is there at least some easy way to tell which files were successfully copied to my itunes music folder so I can work on moving the uncopied files?
    Can anybody help me?

Maybe you are looking for