[SQLSTATE 22001] (Error 8152)Unable to open Step output file.

Hi,
I have configured the backups from our SQL Server instance to tape directly with out storing in the local drive, so that the disk space allocated for storing the backups in the local drive is saved. 
but i end up with the below error.
Executed as user: CORP\devsqlservice. select       DATABASE_NAME   = db_name(sd.database_id)      from       sys.databases sd      where         -- ONLINE    
  sd.state = 0        and sd.is_read_only = 0      group by sd.database_id      order by 1 [SQLSTATE 01000] (Message 0)  String or binary data would be truncated. [SQLSTATE 22001] (Error 8152)Unable
to open Step output file.  The step failed.
I am clueless , why i face this error, Do any one of you face such problems in backup (scheduled backups) job. 
hemadri

Hi Hemadribabu,
>>”string or binary data would be truncated”
As my research, the error above could occur in the case of passing string or binary data, whose length is larger than received object. So I recommend you to run the Transact-SQL script in SQL Server query window to check if this kind of issue exists, or
you can post your entire script for further analysis.
>> “unable to open step output file”
In addition, as for the error above, this issue can be caused by two reasons below.
1. The path of the output file is invalid. To fix the issue, please follow the steps below.
    a. Double click on the SQL Agent job.
    b. Switch to Steps tab, and click Edit.
    c. Click Advanced option.
    d. Change the path under Output file or delete the path. For a UNC path, you can 
map a network drive and use the network drive instead.
2. Your account doesn’t have access to the folder. Transact-SQL job step runs as the owner of the job step, or as the SQL Server Agent service account. So please check the type of the job step and the account which your job step runs as, and make sure that
it has access to the folder. For more information about the process, please review the similar thread:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/7610b484-98b7-42dc-816f-dbc884e84c6d/backup-database-permission-problem   
Regards,
Michelle Li

Similar Messages

  • Numbers error msg: "Unable to open ' .' Unknown file type."

    I last updated this doc 4 days ago, saving it every time I update it. I use it to track my children's school hours throughout the year. I have since restarted my Mac. I went to open this file today, and am getting the error message, "Unable to open ' (name of file)' Unknown file type.
    When I search for the doc under the spotlight, the name of it appears & it is listed as a Numbers doc, but I can't open it.
    Any ideas for a work around? I haven't backed it up in several weeks, so I'll be very sad if I can't retrieve it at all!
    Thanks for your help.

    Have a look here http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache
    PS: Error 2 u 2

  • A sporadic compile error vbc : error BC31019: Unable to write to output file 'D:\Revit\Dev32\RevitAdditions\Source\..\Intermediate\ReleaseWin32\VBNETSnippets\VBNETSnippets.dll': The specified image file did not contain a resource section.

    Hi,
    This is developer from Autodesk. We get this compile error from time to time. This is a sporadic failure. We can't find any issue in our own project.
    vbc : error BC31019: Unable to write to output file 'D:\Revit\Dev32\RevitAdditions\Source\..\Intermediate\ReleaseWin32\VBNETSnippets\VBNETSnippets.dll': The specified image file did not contain a resource section.
    I find a help doc from the website to try some steps to solve this issue.
    Error ID: BC31019
    To correct this error
    Compile the program again to      see if the error recurs.
    If the error continues, save      your work and restart Visual Studio.
    If the error continues, restart      the computer.
    If the error recurs, reinstall      Visual Basic.
    If the error persists after      reinstallation, notify Microsoft Product Support Services.
    My question is what the root cause for this issue. Could you please give us some explanation where the issue should be,  VB compiler? .Net Framework?
    Visual Studio? Operating system?
    Thanks
    Wilson

    Hi hitzwx,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System, and Visual Studio Editor.
    Based on your issue, I am not sure what the root cause for this issue. But I suggest you can try some suggestions so that narrow down this issue.
    (1) I suggest you try to create a new simple VB project and then check this issue.
    (2) In addition, maybe you see the document about your issue. If possible, I suggest you can try these suggestions to troubleshooting this issue.
    https://msdn.microsoft.com/en-us/library/85s7w197.aspx
    >>Unable to write to output file 'D:\Revit\Dev32\RevitAdditions\Source\..\Intermediate\ReleaseWin32\VBNETSnippets\VBNETSnippets.dll': The specified image file did not contain a resource section.
    In addition, I suggest you can check if the specified image file in the output folder or you can try to click your image file in the Solution Explorer-> select the Copy to Output Directly properties->Copy always check this issue again.
    If you have any update message about your issue, please tell me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error message: "Unable to open the physical file" when trying to attach AdventureWorks database

    I have searched the internet and this forum and have not found an answer...
    I am trying to install the AdventureWorks database into my single instance of MS SQL Server Express 2005.  I am logged into my machine as an administrator and logged into SQL Server 2005 express 'sa'.  I attempt to run the following script:
    exec sp_attach_db @dbname = N'AdventureWorks',
    @filename1 = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf',
    @filename2 = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_log.ldf'
    The error message I get back is:
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf". Operating system error 5: "5(Access is denied.)".
    The folder "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data" and all the files in it are read-write.  I am 100.0000% certain the files "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf" and "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Log.ldf" exist!  They are the result of running the installation program AdventureWorksDB.msi, which I downloaded from: http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=4004.
    What do I have to do to install the AdventureWorkds database????

    Hello,
    To try to help you, please, could you give some more informations ?
    - the operating system (XP/Vista), the edition ( Pro/Home...) and the service pack
    - usually, the installer installs the both files in C:\Program Files\Microsoft Sql Server\Samples. Is there any change in the location or have you moved the both files ?
    - could you check with the files explorer , that the 2 files are read-write and not read only( find one file, right-click on it, properties and in the 1st tabpage, you should see a checkbox read-only ( if checked , unchecke it ) ?
    - have you Sql Server Management Studio Express Edition ( at least SP1 ) ?
    If no, download it and use it to attach
    in the object explorer,
    click on your instance to expand it
    right click on databases
    in the contextual menu, click on attach
    in the new form,click on add
    you arrive on a second form : find your file , click on it, and OK
    it's the simplest way to attach ( the sp_-attach_db is complicated to type )
    the error messages are sometimes more clear in SSMSEE than in Sqlcmd
    Try also to attach ( thru SSMSEE or Sqlcmd but in using the windows authentification )
    NB: i hope that you are not trying to attach AdventureWorks on a remote instance and on a remote computer ( it would explain access denied )
    We are waiting for your feedback to try to help you more efficiently
    Have a nice day

  • Error #3125: Unable to open the database file

    Hello, my name is Alex.
    Since the CC 2014 update I am having lots of problems with Muse. I get the Error #3125 quite often, and some pages won't load in Design mode. I tried to open the file from a local drive, but still doesn't work.
    Could you please help out here? thanks a lot in advance.
    Alex

    Hi,
    If this fix doesn't work try this...
    I've been having this problem too. I was using a server-side save location for the site and resources. I moved to my HDD and this seems to have resolved the error for me.
    Let me know if that resolves it.

  • Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    hi,
    am running the below command for moving sql serevr mdf and ldf files  from one  drive to another : c  drive to d drive:
    but am getting the below error
    SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
    use master
    DECLARE @DBName nvarchar(50)
    SET @DBName = 'CMP_143'
    DECLARE @RC int
    EXEC @RC = sp_detach_db @DBName
    DECLARE @NewPath nvarchar(1000)
    --SET @NewPath = 'E:\Data\Microsoft SQL Server\Data\';
    SET @NewPath = 'D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\';
    DECLARE @OldPath nvarchar(1000)
    SET @OldPath = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\';
    DECLARE @DBFileName nvarchar(100)
    SET @DBFileName = @DBName + '.mdf';
    DECLARE @LogFileName nvarchar(100)
    SET @LogFileName = @DBName + '_log.ldf';
    DECLARE @SRCData nvarchar(1000)
    SET @SRCData = @OldPath + @DBFileName;
    DECLARE @SRCLog nvarchar(1000)
    SET @SRCLog = @OldPath + @LogFileName;
    DECLARE @DESTData nvarchar(1000)
    SET @DESTData = @NewPath + @DBFileName;
    DECLARE @DESTLog nvarchar(1000)
    SET @DESTLog = @NewPath + @LogFileName;
    DECLARE @FILEPATH nvarchar(1000);
    DECLARE @LOGPATH nvarchar(1000);
    SET @FILEPATH = N'xcopy /Y "' + @SRCData + N'" "' + @NewPath + '"';
    SET @LOGPATH = N'xcopy /Y "' + @SRCLog + N'" "' + @NewPath + '"';
    exec xp_cmdshell @FILEPATH;
    exec xp_cmdshell @LOGPATH;
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    go
    can anyone pls help how to set the db offline. currently  i  stopped the sql server services from services.msc and started the  sql server agent.
    should i stop both services for moving from one drive to another?
    note: I tried teh below solution but this didint work:
    ALTER DATABASE <DBName> SET OFFLINE WITH ROLLBACK IMMEDIATE
    Update:
    now am getting the message :
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    (3 row(s) affected)
    (3 row(s) affected)
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    First you should have checked the database mdf/ldf name and location by using the command
    Use CMP_143
    Go
    Sp_helpfile
    Looks like your database CMP_143 was successfully detached but mdf/ldf location or name was different that is why it did not get copied to target location.
    Database is already detached that’s why db offline failed
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    Attached step is failing as there is no mdf file
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)"
    Solution:
    Search for the physical files(mdf/ldf) in the OS and copy to target location and the re-run sp_attach_db with right location and name of mdf/ldf.

  • N79 (Error message :Unable to open .File type not ...

    Dear nokia service manager,,
    Iam sivakumar using the nokia N79 handset.Iam getting the message like this (Error message :Unable to open .File type not supported)when i was trying to open the video file shooted by some other camera.I have tried changing the format of the file..but no use ..i dont get ant suitable software converter in the internet.So kindly look into this matter as i need this very uregently...
    hope its a mandatory feature as laptop and mobile interface are simple task nowadays in mobile...
    pls reply me..its very urgent...thanku..

    You could try Videora (http://www.videora.com/) - the downside here is that they have specific versions for specific phones, and sometimes it will makea file that plays perfectly in the desired phone but can't be shared to other models. The don't show a version for the N79, but try the N96 one because the N96 is the most similar OS to yours that they offer.

  • ERROR Message "UNABLE TO OPEN" and "E_IO_Cannot_Open"

    Trying to download 6 ebooks from Hive and I can download the acsm file but when I click that I get an error message "Unable To Open" and "E_IO_Cannot Open." The computer is authorised and uses Win 7 with ADE 3.  I tried ADE 4 but no better.  I have an older PC using Vista and ADE 2 and that will download okay but it is constantly being used so it is not convenient.  Does anybody know what's wrong?  Thanks.

    Hello,
    To try to help you, please, could you give some more informations ?
    - the operating system (XP/Vista), the edition ( Pro/Home...) and the service pack
    - usually, the installer installs the both files in C:\Program Files\Microsoft Sql Server\Samples. Is there any change in the location or have you moved the both files ?
    - could you check with the files explorer , that the 2 files are read-write and not read only( find one file, right-click on it, properties and in the 1st tabpage, you should see a checkbox read-only ( if checked , unchecke it ) ?
    - have you Sql Server Management Studio Express Edition ( at least SP1 ) ?
    If no, download it and use it to attach
    in the object explorer,
    click on your instance to expand it
    right click on databases
    in the contextual menu, click on attach
    in the new form,click on add
    you arrive on a second form : find your file , click on it, and OK
    it's the simplest way to attach ( the sp_-attach_db is complicated to type )
    the error messages are sometimes more clear in SSMSEE than in Sqlcmd
    Try also to attach ( thru SSMSEE or Sqlcmd but in using the windows authentification )
    NB: i hope that you are not trying to attach AdventureWorks on a remote instance and on a remote computer ( it would explain access denied )
    We are waiting for your feedback to try to help you more efficiently
    Have a nice day

  • One more solution for Silent Monitoring Windows 7 64-Bit - ERROR VOIP2037 Unable to open the NIC adapter for sniffing.

    Hi,
    we are using UCCX 8.5 SU3.
    After replacing the actual agent workstations with Windows 7 64-bit we had to face problems with the silent monitoring. (no sound at all and in the CSD the usual error popup "Silent Monitor-Session failed...").
    In the CAD logfile I found the errorcode. "ERROR VOIP2037 Unable to open the NIC adapter for sniffing. Please reconfigure the installation."
    After investigating the logfiles, starting postinstall.exe a hundred times and reading the Configuring and Troubleshooting VoIP Monitoring Guide.
    I just learnt about the wonderful tool nicq.exe.
    And so i found out that the driver spcd.sys wasn't installed.
    Check in the registry for "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SPCD"
    It seems to me that the "Cisco Supervisor Desktop.msi" never installs the driver one a Windows 7 64-bit.
    After starting the NICQ.EXE as administrator the driver is being installed.
    Test 1: Check Driver Status
    Driver not installed. Attempting to install it...
    Driver has now been successfully installed.
    SPCD Driver service is not running. Attempting to start it...
    SPCD Driver service is now running.
    Test 1: SUCCESS
    And after that the silent monitoring works again like a charm.
    Maybe that info help someone.
    kind regards, sebastian

    Excellent information, this has been driving me crazy for a while now.  Once i saw this info I was able to get it resolved rather quickly.
    +5 for you, (I tried to click it above but it would not let me.)

  • Custom Oracle Report errored with Enter Password:  REP-0004: Warning: Unable to open user preference file. REP-0300: ORACLE error occurred. REP-0069: Internal error REP-57054: In-process job terminated:Terminated with error:  REP-300: ORACLE error occurre

    Hi Gurus
    We have created a custom oracle report and concurrent program and when we ran the concurrent program it is error out with below error
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    REP-0300: ORACLE error occurred.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: ORACLE error occurred.
    Can any one help us
    Thanks in advance.
    Kumar

    Please see
    REP-0004 Warning - Unable to Open User Preference File. (Doc ID 26014.1)
    ApPsMaStI
    sharing is Caring

  • Mi mac boock pro no arranca y aparece una pantalla gris y una rueda girando sin cargar cuando entro con command V aparece este error BootCacheControl: Unable to open BootCacheControl: Unable to open /var/db/BootCache.playlist: 2 No such file or directory

    Hola atodos/as. Necesito ayuda.
    Mi mac boock pro no arranca y aparece una pantalla gris y una rueda girando sin cargar cuando entro con command V aparece este error BootCacheControl: Unable to open BootCacheControl: Unable to open /var/db/BootCache.playlist: 2 No such file or directory

  • I can't run visa interactive control window. ERROR MESSAGE: "Unable to open session "ASrl::INSTR" Status name VI_ERROR-RSRC BUSY Visa cannot curently access this resource.

    I cant run tds220 (driver for oscilloscope).
    Error message:
    VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.
    Furthermore
    I cant run Visa INteractive control.
    Error message:
    "Unable to open session to "ASRL1::INSTR" Return value 0xBFFF0072 Status name VI-ERROE-RSRC-BUSY . VISA csnnot currently access this resource."
    Then change ports, this message appears for another port.
    Thanks for answer.
    Gita

    The port is open by another resource. You note that you should also get an error if you try to access the port in hyperterminal. Try rebooting your computer and the first thing you try is opening a VISA session with Visa Interactive control(VISAIC).
    If that fails, then you have a driver accessing your ports.
    If it works then it was just two applications that were trying to access your port (LabVIEW and VISAIC are seperate apps even thought they both may be using VISA.)
    Closing VISA sessions:
    LabVIEW will only *automatically* close VISA sessions if you have this option set: Tools>>options>>Automatically close VISA sessions.
    Otherwise you need to explicitly call a Visa close on the resource.

  • Output Designer 5.7 Errors - Error 1804 Unable to open configuration file

    Hi...Receiving error messages on accessing newly installed Output Designer 5.7.   Installed on new Win7 laptop.
    Error # 5903 -  You must select a Printer before saving.
    Error # 1804 - Unable to open configuration file "....\Config\PDF.ICF"
    The last error, Error # 1804, closes out the application.   File does not exist within the path.  Tried uninstalling and reinstalling with the same result.  
    Any help would be greatly appreciated!
    Thanks,
    Elena.

    Hi Elena
    This is most likely caused by missing admin rights on Win 7. I have seen this problem within my company.
    When installing Adobe Output Designer it will be placed in %ProgramFiles% which is your C:\Program Files folder.
    In subfolder C:\Program Files\Adobe\Output Designer 5.7\Config there are many configuration files that controls your printer drivers (Presentment targets). Dependent on what user type you are in Win 7 you might not have write access to files in this folder. When you cannot write to this folder you cannot make changes to your printer drivers or install new ones and you are pretty much stuck.
    Solution: Create folder C:\MyPrograms and install Adobe Output Designer here.
    Ståle

  • LOAD ALIAS ERROR - 1002000 - Unable to Open Ascii File

    LOAD ALIAS ERROR - 1002000 - Unable to Open Ascii File
    Edited by: sj0609 on Nov 23, 2011 11:18 AM

    Just off the top of my head, have you tried doubling up the backslashes?
    I have had problems getting an ASO alternate alias table loaded from MaxL at all (back in v9) but I didn't get the same error you do.

  • [Compiler] Error #1063: Unable to open file: /alchemy-darwin-v0.5a/avm2-libc/lib/asmachine.abc

    Can anyone give input on receiving this error when compiling?  I've come across it a few times.  The current project is compiling libjpg from www.ijg.org/
    [Compiler] Error #1063: Unable to open file: /projects/zaalabs/alchemy-darwin-v0.5a/avm2-libc/lib/asmachine.abc.
    There is no trace of this file, however within the achacks/gcc script there is a line:
    $machimp="$libc/lib/asmachine.abc";
    Referencing this file.  Is this something that wasn't released as part of the 0.5a?  Is there a workaround?
    Anyone had success with a workaround, or anyone find a magical copy of asmachine.abc?
    Aaron

    EDIT: found the solution here: http://forums.adobe.com/thread/25449

Maybe you are looking for

  • Why is my video quality so bad?

    So I have this video which is just over 1GB and it's just under 6 mins, so surely the quality should be better than this? It was shot in 1080p with a Canon 7D. I have however scaled it up 150% using the scaling effect in Premiere Pro. Should I scale

  • Activating Application client through jsp / html / servlet ??

    Is it possible to activate the application client in a way other then the appclient tooll via terminal window ??

  • HT201412 restore fails....

    MY IPAD HAS FAILED TO UPDATE, THEN FAILED TO RESTORE......NOW WHAT???

  • Trying to upgrade from leopard to snow leopard

    Trying to upgrade from leopard to snow leopard but now cannot use keyboard to boot from DVD (holding C key) or even from external drive (holding option key) Is there any other way that I can force my mac to boot from external drive. Please help

  • What size must an image be for iMovie?

    Hi Apple Community Am wanting to add some stills to an iMovie production. What is the ideal size for these images in pixels? Kind Regards Chris