Background processing - unable to access the file
Hi Gurus!
01/09/2009 00:00:06 Job started
01/09/2009 00:00:06 Step 001 started (program ZWELL_UPLOAD, variant 20080107WMI-1, user ID STIWARI)
01/09/2009 00:00:06 File P:\SAP\ERP\ZWELL\wmigdc\wmi_dls_extract_20090107_3 does not exist or cannot be opened
01/09/2009 00:00:06 Step 002 started (program ZWELL_UPLOAD, variant 20080107WMI-2, user ID STIWARI)
01/09/2009 00:00:06 File P:\SAP\ERP\ZWELL\wmigdc\wmi_dls_extract_20090107_2 does not exist or cannot be opened
01/09/2009 00:00:06 Step 003 started (program ZWELL_UPLOAD, variant 20080107WMI-3, user ID STIWARI)
01/09/2009 00:00:07 File P:\SAP\ERP\ZWELL\wmigdc\wmi_dls_extract_20090107_3 does not exist or cannot be opened
01/09/2009 00:00:07 Job finished
Can I get some help as to why is it not able to loacte the file when run through background processing when its able to read and excute when I directly run the program. Is theer any settings that I need to set up in the ABAP program itself which will enable to make it happen or else what to do so that I can set a background job to happen successfully.
Thanks
I have assigned thhose correctly I believe.
* Selection-Screen *
selection-screen begin of block 1 with frame title text-001.
parameters: p_bukrs type t001-bukrs default '1000', " company code
p_zss type zsds_uwi-zss, " Survey system
p_pathps like rlgrap-filename modif id g1 , " Presentation server path
p_pathas like rlgrap-filename modif id g2 , " Application server path
* p_pbkas LIKE rlgrap-filename MODIF ID g2 , " Backup path
p_err like rlgrap-filename , " error file as SAP table format
p_err2 LIKE rlgrap-filename, " error file as input format
p_ps like ssfparms-binccerts radiobutton group ssff " Presentation server
default 'X' user-command shift,
p_as like ssfparms-binccerts radiobutton group ssff." Application server
selection-screen end of block 1.
* Includes *
include zwellupd0001. "Top Include
include zwellupd0002. "Form Include
* Initialization.
initialization.
*--- Assign default '1' to survey system
p_zss = v_zss = 1.
* At Selection-Screen *
at selection-screen output.
perform modify_screen.
*-Presentation
at selection-screen on value-request for p_pathps.
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = c_x
changing
file_name = p_pathps.
*-Application
at selection-screen on value-request for p_pathas.
*- Assign the Physical File Name Using a Logical File Name
call function 'FILE_GET_NAME'
exporting
client = sy-mandt
logical_filename = c_asin
operating_system = sy-opsys
importing
file_name = p_pathas
exceptions
file_not_found = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
at selection-screen on value-request for p_err.
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = c_x
changing
file_name = p_err.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_err2.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = c_x
CHANGING
file_name = p_err2.
* Start-Of-Selection *
start-of-selection.
*---Modify the screen variables as per the user selection
perform initialize.
*--- Upload file from Presentation
* PERFORM upload_ps .
**--- Upload file from Application
* PERFORM upload_as .
perform upload_file.
perform write_err_file.
* perform write_err2_file.
perform write_report.
* End-Of-Selection *
end-of-selection.
*& Form modify_screen
* Modify the screen variables as per the user selection
form modify_screen .
if p_ps = 'X'.
loop at screen.
check screen-group1 = c_g2.
screen-active = 0.
modify screen.
endloop.
else.
loop at screen.
check screen-group1 = c_g1.
screen-active = 0.
modify screen.
endloop.
endif.
endform. " modify_screen
*& Form initialize
* Assign Local Variables
form initialize .
*-Pass selection screen fields to local variables.
v_zss = p_zss.
v_pathas = p_pathas.
v_pathps = p_pathps.
* v_pathbkas = p_pbkas.
v_ps = p_ps.
v_as = p_as.
v_bukrs = p_bukrs.
endform. " initialize
*& Form write_report
* text
* --> p1 text
* <-- p2 text
form write_report .
if v_zss = 1.
write: / '*** Update report for DLS ***'.
else.
write: / '*** Update report for NTS ***'.
endif.
write:
/ 'Input File Count', g_inp_count,
/ 'Insert Count', g_insert_count,
/ 'Updated Count', g_upd_count,
/ 'Failed Count', g_err_count.
endform. " write_report
*& Form write_err_file
* text
* --> p1 text
* <-- p2 text
form write_err_file .
case p_as.
when 'X'. "X is application server
* TRANSLATE FILENAME USING '\/'." correct slash for unix
open dataset p_err for output in text mode encoding default.
if sy-subrc = 0.
loop at t_err into s_welldls.
transfer s_welldls to p_err.
if sy-subrc ne 0.
message i010(ad) with p_err 'Download Failed'.
endif.
endloop.
close dataset p_err.
else.
message i010(ad) with p_err 'dataset could not be found'.
sy-subrc = -1. "Maintain error condition
endif.
when ' '. "Blank is presenation server
translate p_err using '/\'."correct slash Dos file
call function 'DOWNLOAD'
exporting
filename = p_err
filetype = 'DAT' "FTYPE set to ASC in DATA seg
tables
data_tab = t_err.
if sy-subrc ne 0.
message i010(ad) with 'File ' p_err 'cannot be located.'.
sy-subrc = -1. "Maintain error condition
exit.
endif.
endcase.
endform. " write_err_file
even the constants:
*-Declare survey system as constants
CONSTANTS: c_dls TYPE zsds_uwi-zss VALUE '1',
c_nts TYPE zsds_uwi-zss VALUE '2',
c_x TYPE c VALUE 'X'.
*-Logical File Path maintained in Txn FILE
CONSTANTS:
c_asin TYPE filename-fileintern VALUE 'Z_INTERFACES_IN_WELL_MASTER',
c_asout TYPE filename-fileintern VALUE 'Z_INTERFACES_OUT_WELL_MASTER'.
*-Screen Grouping
CONSTANTS:
c_g1 TYPE screen-group1 VALUE 'G1',
c_g2 TYPE screen-group1 VALUE 'G2'.
DATA: v_folder TYPE string.
DATA: v_filestr TYPE string.
DATA: v_datalen TYPE i.
DATA v_rec(1000).
Thanks
Similar Messages
-
I am installing creative the cloud Illustrator desktop app on a machine with windows 7 64 bit running in a domain environment. The download starts and takes about runs for a bout 10 minutes and then stops with the error: DF024: Unable to preserve original file at "C:\Program Files\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows\AdobeLinguistic.dll" Error 32 The process cannot access the file because it is being used by another process.(Seq 1352)
I am logged in as a network administrator and there are no other apps except a web browser (Chrome) running. There are no other users logged into the machine.
How can I see what other process is using the needed file so that I can fix it?
ThanksMelissaB34 it looks like you already are reviewing your installation log files but you can find more information at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html. From the error you have posted it appears that your current User account is either unable to update C:\Program Files\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows\AdobeLinguistic.dll or does not have sufficient file permissions to do so. Since you mentioned you are on a domain please ensure that you are working with your I.T. department and have correct access to this directory.
You may want to also consider logging in under a local administrator account to see if you face the same difficulties. This would help you determine if you are facing a file corruption issue or file permission issue. -
"The process cannot access the file ..." occurs when export crystal report
We are using a web application developed in VS 2005, .NET 2.0 with the bundled Crystal Reports version 10.2.3600.0 running on a Windows 2003 Standard server with 4GB Ram and Dual CPU's. Periodically we are still receiving the following error in our production environment:
InnerException:
The process cannot access the file because it is being used by another process.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
This is occuring at the point on the code where the report is being exported to a PDF. Exporting the report to Excel does not appear to cause the error.
Stream outStream = report.ExportToStream(ExportFormatType.PortableDocFormat);
byte[] charStream = new byte[outStream.Length];
outStream.Read(charStream, 0, (int)outStream.Length);
if ((charStream != null) && (charStream.Length > 0))
HttpContext.Current.Response.ContentType = "application/pdf";
HttpContext.Current.Response.OutputStream.Write(charStream, 0, charStream.Length);
HttpContext.Current.Response.End();
report.Close();
report.Dispose();
ds.Dispose();
GC.Collect();
Closing and disposing of the report and dataset (xsd) are followed by a call for garbage collection. We are unable to produce the error in our development environmennt and have not at this point been unable to pinpoint a problematic report. The development team members do have SP1 installed. The report limit has not been changed from the standard of 75 jobs. Reviewed the following document, Re: "The process cannot access the file ..." occurs when export crystal report However this applies to VS 2008. Any suggestions to resolve the issue would be greatly appreciated.
Thanks,
JoeGood morning Joe
For more details re. loading please see the following resources:
[Crystal Reports 2008 Component Engine Scalability|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7025839b-00d4-2b10-33b4-cf0aa9e08412?quicklink=index&overridelayout=true]
[How Can I Optimize Scalability?|http://msdn.microsoft.com/en-us/library/ms225519.aspx]
[Choosing the Right Business Objects SDK for Your Needs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7]
To answer your questions:
Is it correct to presume that the physical number of CPU's is not factored into the CPL? So that a Server with 2 or more processors does not increase the 3 concurrent requests? Therefore 2 CPU's would not increase the CPL limit to 6 processes?
- Server with 2 or more processors does not increase the 3 concurrent requests.
What would be an alternate solution to this limit be, considering the report requests could increase significantly?
- Only way around this would be to web farm the solution
If only only 3 reports can be processed at the same time. If one or more of the reports currently processing is taking longer due to receiving large amounts of data, how does that affect the queue? And what is stored in the queue, data and/or the report? Is this something that could consume memory?
- The report can take as much time as it needs. The result is that one license will not be released until the report is done. There is no data stored, just a pointer to the report. However queued apps will chew up memory, some times to the point of the server becoming unresponsive
I have read in the documentation on this site, that the dataset sent to the engine is copied in memory during report construction. So if a large amount of data is requested for a report (as an example 10+ MB) Could enough users requesting reports drive the memory up because memory usage doubled due to the dataset?
- Absolutely. See [Crystal Reports Guide to ADO.NET|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20].
Understanding the the CR DLL's are loaded on the first report request, do they get released at some point time due to inactivity or garbage collection? How much memory usage could be consumed when they load and stay resident?
- No they do not. Not as long as the application is running.
Ludek -
Error on load: System.IO.IOException: The process cannot access the file
'\\server1\SCANSHARED\.pdf' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
I faced this error in event viewer when users want to view documents from this third party deployed scan solution
here I have two WFS servers and they configured with load balancing in F5 .
when I enable both servers in F5 I receive this error messages in 2nd server,
when users want to view documents
adilDo you have antiVirus installed on the sharepoint servers?
These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
are uploaded.
Please follow this KB and exclude the folders from Scanning.
http://support.microsoft.com/kb/952167
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Hi,
We are having issues with Server 2012 R2 SMB shares.
We try to write some changes to a file, but we first create a temporary backup in case the write fails. After the backup is created we write the changes to the file and then we get an error:
The process cannot access the file '\\server\share\test.txt' because it is being used by another process.
It looks like the backup process keeps the original file in use.
The problem doesn't always occur the first time, but almost everytime after 2 or 3 changes. I have provided some code below to reproduce the problem, you can run this in a loop to reproduce.
The problem is that once the error arises, the file remains 'in use' for a while, so you cannot retry but have to wait at least several minutes.
I've already used Process Explorer to analyze, but there are no open file handles.
To reproduce the problem: create two Server 2012 R2 machines and run the below code from one server accessing an SMB share on the other server.
Below is the code I use for testing, if you reproduce the scenario, I'm sure you get the same error.
We are not looking for an alternative way to solve this, but wonder if this is a bug that needs to be reported?
Anybody seen this behavior before or know what's causing it?
The code:
string file =
@"\\server\share\test.txt";
if (File.Exists(file))
File.Copy(file, file +
".bak", true);
File.WriteAllText(file,
"Testje",
Encoding.UTF8);
The error:
System.IO.IOException: The process cannot access the file '\\server\share\test.txt' because it is being used by another process.Hi,
There is someone else having the same issue with yours. You could try code in the article below:
“The process cannot access the file because it is being used by another process”
http://blogs.msdn.com/b/shawncao/archive/2010/06/04/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process.aspx
If you wonder the root cause of the issue, the .NET Framework Class Libraries forum can help.
Best Regards,
Mandy
If you have any feedback on our support, please click
here .
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. -
When i am trying to delete the Virtual Machine folder/directory i get the below error. Virtual machine is turned off
V:\>rmdir ME-EXCAS01 /s
ME-EXCAS01, Are you sure (Y/N)? y
ME-EXCAS01\ME-EXCAS01\Virtual Machines\1B1FD14E-B3F0-4232-9F96-2A871E879CD6.xml
- The process cannot access the file because it is being used by another process
How to delete the whole folder ?
ThanksAlso, if your VM has snapshots and you delete it, you must wait for the snapshots to finish merging - the VHD files will be locked until then.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat. -
Recurrent error in Win32 install logs (The process cannot access the file..
hi forum !
I'm already on my third installation of Hyperion Essbase and still getting the same error within the logs :
(Jan 31, 2008 1:48:29 PM), essbaseServer7_0_0Suite, com.installshield.wizard.platform.win32.WindowsSharedFiles, err, ServiceException: (error code = -30016; message = "The process cannot access the file because it is being used by another process.
(32)"; severity = 0)
STACK_TRACE: 23
ServiceException: (error code = -30016; message = "The process cannot access the file because it is being used by another process.
(32)"; severity = 0)
at com.installshield.wizard.platform.win32.Win32FileServiceImpl.win32SetFileModified(Native Method)
at com.installshield.wizard.platform.win32.Win32FileServiceImpl.setFileModified(Win32FileServiceImpl.java:115)
at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.installshield.wizard.service.LocalImplementorProxy.invoke(LocalImplementorProxy.java:52)
at com.installshield.wizard.service.AbstractService.invokeImpl(AbstractService.java:51)
at com.installshield.wizard.service.file.GenericFileService.setFileModified(GenericFileService.java:185)
at com.installshield.product.actions.Files.setFileTimes(Files.java:1608)
at com.installshield.product.actions.Files.install(Files.java:460)
at com.installshield.wizard.platform.win32.WindowsSharedFiles.install(WindowsSharedFiles.java:87)
at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(PureJavaProductServiceImpl.java:1916)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(PureJavaProductServiceImpl.java:5195)
at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(InstallableObjectVisitor.java:369)
at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(InstallableObjectVisitor.java:333)
at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(InstallableObjectVisitor.java:133)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(PureJavaProductServiceImpl.java:4563)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(PureJavaProductServiceImpl.java:3758)
at com.installshield.wizard.service.AsynchronousOperation.run(AsynchronousOperation.java:41)
at java.lang.Thread.run(Unknown Source)
can use the products but this shouldn't be fine... do I have to stop a service or grant some permission ? any help is appreciated.
thanks & regards,not having any JAVA_HOME env var. Did some checkings and :
- one machine was having Java libraries because of DB2
- the other machine was a fresh Win2003SP1 with SQL Server 2005
guess can set JAVA_HOME to C:\Hyperion\common\JRE\Sun\1.5.0 before installing Essbase, but also guess it's a documented/automatic step... wonder what I'm missing ?
doing the most basic-mode installations (defaults, automatic deployments), once I get them clean will perform more sophisticated ones. Searched the 9.3.1 doc PDFs without useful findings. -
I am trying to move a file from a folder to another folder.
here is my code:
//storage of the all files
string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Test Pictures");
private void historyPictureBox_Click(object sender, EventArgs e)
destinationFile = @"C:\Users\Jonah\Desktop\Test Test";
File.Move(folderContentNames[1], destinationFile);
updateListBoxFileName();
updateImageBox();
each time I hit the bolded underlined part I get that error message.
if you need anything else just ask.
Thanks in advance,
Thor OrbHi Thor,
If you want to move a file from a folder to another folder, I think you could get the sourcePath and TargetPath. The code below shows a simple demo:
string[] folders = Directory.GetFiles(@"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test");
string desFile =Path.Combine( @"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test - Copy\"+Path.GetFileName(folders[1]));
File.Move(folders[1], desFile);
In addition, the link below might be useful to you:
# How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)
>> The process cannot access the file because it is being used by another process
The message seemed that the file was opened in other process. Did you operate the file with other code?
I think you could check if the files and the folders were opened, and review your codes if they were used in other places.
If you have any further questions, please feel free to post in this forum.
Best Regards,
Edward
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. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
Ya, Thanks I figured about the path and destation. yes I am using the file in another area, the file is an image jpg and I am displaying it in a picture box. Now I have been doing a little research I see a command called Dispose() and this is suppose to
release the handle on the image, but I can seem to figure out have to use it correctly.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Collections;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace Scanned_Picture_Ogranizer
public partial class Form1 : Form
//storage of the all files
string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Scan Project Testing\Test Pictures", "*.jpg");
//List<string> folderContentList = folderContentNames.ToList();
private List<string> folderContentList = new List<string>();
Bitmap currentImage;
Bitmap placeHolder;
public Form1()
InitializeComponent();
convertingArrayToList();
startUpData();
string sourceFile = @"C:\Users\Jonah\OneDrive\My Programming Projects\Scanned Picture Organizer Project\Test Pictures";
string destinationFile = "";
private void moveButton_Click(object sender, EventArgs e)
private void startUpData()
//placeHolder = new Bitmap(folderContentList[0]);
//currentImage = (Bitmap)placeHolder.Clone();
// Image loadImage = new Bitmap(pictureClones[0]);
// currentFilePictureBox.Image = loadImage;
int numberOfFilesLeft = folderContentNames.Length;
foreach (string name in folderContentNames)
fileNamesListBox.Items.Add(name);
fileNameTextBox.Text = folderContentNames[0];
numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
///loadImage.Dispose();
//FileStream currentImage = new FileStream(folderContentList[0], FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
private void convertingArrayToList()
foreach (string listName in folderContentNames)
folderContentList.Add(listName);
private void selectingImageFromListBox()
private void updateImageBox()
Bitmap currentImage = new Bitmap(folderContentList[0]);
currentFilePictureBox.Image = currentImage;
currentImage.Dispose();
private void updateListBoxFileName()
fileNamesListBox.Items.RemoveAt(0);
fileNameTextBox.Text = folderContentList[0];
// numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
private void historyPictureBox_Click(object sender, EventArgs e)
destinationFile = @"C:\Users\Jonah\Desktop\Scan Project Testing\Test Test\";
File.Move(folderContentList[0], destinationFile + System.IO.Path.GetFileName(folderContentList[0]));
folderContentList.RemoveAt(0);
updateImageBox();
updateListBoxFileName();
when I first start the program the first picture displays, but when I trigger historyPictureBox_Click(), it does that error again. Another things is that I already looked at that link and it didn't help.
I just super confused, I would like your help on this.
Thanks,
Thor Orb -
I am working with a client who is attempting to backup to a NAS device
The device is a linksys NSS6000 (Cisco device).
It’s a dual 1Gbit LAN device that supports CIFS / FTP and NFS transfers. It has only 1Gbit lan connected.
The device has 4 * 500 gb sata drives in raid 1 attached.
Cables go from cat 5 to fiber back to cat5. (The NAS is located at a neighboring office) The switches are 1gbit.
Server is a win2k8r1 fully up to date.
When backing up to the NAS device, the following error occurs:
Running backup of volume Local Disk(D:), copied (86%).
Running backup of volume Local Disk(D:), copied (90%).
Running backup of volume Local Disk(D:), copied (94%).
Running backup of volume Local Disk(D:), copied (98%).
Backup of volume Local Disk(D:) completed successfully.
Backup stopped before completing.
Summary of backup:
Backup stopped before completing.
The process cannot access the file because it is being used by another process.
If we redirect the backup to a folder on a 2008 share, the backup completes successfully.
Only when backing up to the linksys NSS6000 does the error occur.
No other backup processes are writing to the NAS device so I can't understand why the process thinks the file is
being used by another process.
One thing we did notice that when the backup to the NAS device occurs, throughput is about 150 mbit average
On the 2008 server shares we successfully backup to, the through put is 500 mbit. Not sure if that is important, but
might be worth mentioning.
The following event log entry was noted at the end of the backup.
The description for Event ID '519' in Source 'Microsoft-Windows-Backup' cannot be found.
The local computer may not have the necessary registry information or message DLL files to display the message,
or you may not have permission to access them. The following information is part of the
event:'2009-05-12T10:13:31.617Z', '', '2147942432', '%%2147942432'
Any ideas?
Thanks..MichaelI am also seeing the same problem backing up nightly to a brand new NAS device (WD My Book Live)
All the error codes are the same as those in this thread.
From Windows Event Viewer:
The backup operation that started at '2011-03-25T06:00:19.811302700Z' has failed with following error code '2147942432' (The process cannot access the file because it is being used by another process.). Please review the event details
for a solution, and then rerun the backup operation once the issue is resolved.
Fault bucket 659897467, type 5
Event Name: WindowsBackupFailure
Response: Not available
Cab Id: 0
Problem signature:
P1: Backup
P2: 6.1.7600
P3: 0x80070020
P4: 7
P5:
P6:
P7:
P8:
P9:
P10:
Attached files:
C:\Windows\Logs\WindowsBackup\WindowsBackup.1.etl
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Backup_6957d65de91fc4a853ecc7c78914bf7351fff0d1_14578325
Analysis symbol:
Rechecking for solution: 0
Report Id: dd480bf2-56a6-11e0-ae81-00217099bf56
Report Status: 0
From Report.wer in C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Backup_6957d65de91fc4a853ecc7c78914bf7351fff0d1_14578325
Version=1
EventType=WindowsBackupFailure
EventTime=129455071508181139
Consent=1
UploadTime=129455071508201140
ReportIdentifier=dd480bf2-56a6-11e0-ae81-00217099bf56
Response.BucketId=659897467
Response.BucketTable=5
Response.type=4
Sig[0].Name=Operation
Sig[0].Value=Backup
Sig[1].Name=AppVer
Sig[1].Value=6.1.7600
Sig[2].Name=HRESULT
Sig[2].Value=0x80070020
Sig[3].Name=TargetType
Sig[3].Value=7
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7600.2.0.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
State[0].Key=Transport.DoneStage1
State[0].Value=1
State[1].Key=DataRequest
State[1].Value=Bucket=659897467/nBucketTable=5/nResponse=1/n
FriendlyEventName=WindowsBackupFailure
ConsentKey=WindowsBackupFailure
AppName=Windows host process (Rundll32)
AppPath=C:\Windows\System32\rundll32.exe
ReportDescription=Windows Backup failure -
Hey,
I have a powershell script where I first use Get-childitem to receive a number of files.
Then I do some stuff with it and try to move the file afterwards.
Unfortunately if I am using a lot of files I receive very often the error:
The process cannot access the file because it is being used by another process.
Even -Force parameter does not help further.
Based on my look around it is not used by another process.
I think it is still 'in use' by powershell from script commands previously.
Is there any way to 'see' if the file is still in use currently and wait for this to end?
Or can I 'close' the current usage of the file?
Thank you :)Hey,
Thank you.
I build the following function.
But either the $return = $true I receive "The process cannot access the file because it is being used by another process." when I try to move-item... :(
Function Wait-FileUnlock($FilePath){
Write-Host " "
$FileInfo = New-Object System.IO.FileInfo $($FilePath)
DO{
try{
$fileStream = $fileInfo.Open([System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::Read)
$return = $true
catch{
Start-Sleep -Milliseconds 5
Write-Host "." -NoNewline
$return = $false
While($return -ne $true)
$Error
return $return
Another functions is:
Function Wait-FileUnlock($FilePath){
Write-Host " "
DO{
$Error.Clear()
Rename-Item $FilePath $FilePath -ErrorAction SilentlyContinue | Out-Null
Start-Sleep -Milliseconds 5
Write-Host "." -NoNewline
While($Error.Count -ne 0)
This one waits .. but it seems not to end waiting at any time :( -
Hi,
I've a master package that calls other packages with an Execute Package Task. Sometimes we have an error: "The process cannot access the file because it is being used by another process" and sometimes not. It seems random.
We are working on a Terminal Server and the SQL Server database engine and the files are placed on another server. It seems that the errors doesn't occu when we run the packages on the server with a job. We can't log onto the windows server on this machine..
HennieI've seen this myself. On most occasions an immediate rerun would fix the issue. As stated this happens only when we try to run this from BIDs. From SQL agent job it always runs fine.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
The process cannot access the file during Crystal Report export
We are exporting crystal reports into PDF using ExportToHttpResponse (code snippet below)
// Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
// GetTypedDataSet()returns an instance of typed data set.
SEPREport.SetDataSource(GetTypedDataSet());
SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
Now on our machines, we have never experienced any issues.
BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80004005): The process cannot access the file because it is being used by another process.
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615This is a cross post:
The process cannot access the file because it is being used by another proc
Do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Setting this tread as answered and locking.
- Ludek -
The process cannot access the file because it is being used by another proc
We are exporting crystal reports into PDF using ExportToHttpResponse (code snippet below)
// Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
// GetTypedDataSet()returns an instance of typed data set.
SEPREport.SetDataSource(GetTypedDataSet());
SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
Now on our machines, we have never experienced any issues.
BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80004005): The process cannot access the file because it is being used by another process.
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615A bit of a confusion on my part;
Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0. Now on our machines, we have never experienced any issues.
Going by the above, you should have references to CR assemblies of version 10.5.3700 only. No other references.
Now, looking at this paragraph:
BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
I wonder what runtime was deployed to the server. E.g.; if you are using CR 10.5, your assemblies will be 10.5.3700 and you should be deploying the following runtime (depending on 32 bit / 64 bit, etc.):
CRRedist2008_ia64.msi
https://smpdl.sap-ag.de/~sapidp/012002523100006255262008E/CRRedist2008_ia64.zip
CRRedist2008_x64.msi
https://smpdl.sap-ag.de/~sapidp/012002523100006255272008E/CRRedist2008_x64.zip
CRRedist2008_x86.msi
https://smpdl.sap-ag.de/~sapidp/012002523100009351342008E/CRBasicVS2008_redist_x86.zip
One way to check on what is actually loading is to use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
- Ludek -
I am using the firefox version 17 and when i drag and drop an image on my website. It gives me the following error.
Unable to access local files due to browser security settings. To overcome this, follow these steps: (1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again. Or go to the homepage for a link to the tutorial on how to do it.
I have completed the above steps and it is still showing the same error message. Any help would be highly appreciated.
Thanks.Thanks kumars ,
I have a specific drag and drop area on our website. This works fine for all earlier releases of Firefox after these security settings
"(1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again."
Bust these settings not work for me in Firefox 17.
Yes the drag and drop functionality is java script based and i am not using any script blocker addons. -
I have a Nikon D600 and D800 and I shoot everything in Raw. I use Photoshop Elements 9 for processing but I have been unable to convert any RAW files to open in PSE. Says unable to parse the file. What does this mean and how do I fix it?
Since pse 9 can only use up to camera raw 6.5 and the d600 needs at least 7.3 and the d800 needs at least 6.7, you can use the
8.6 adobe dng converter to convert those files to dng copies, which then pse 9 should open.
8.6 dng converter
windows
Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.6
mac
Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.6
Note:
If you have windows xp or vista or mac os x 10.6, then you'll need to use the 8.3 dng converter instead
windows
Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.3
mac
Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.3
how to use the dng converter
Camera Raw: How to use Adobe DNG Converter - YouTube
more info on supported cameras and camera raw plugins required
Camera Raw plug-in | Supported cameras
Camera Raw-compatible Adobe applications
Maybe you are looking for
-
Can't sync my iPod Touch with iTunes, get -50 error message
Does anybody know what -50 means? This pops up when I first plug it into my Mac, and all it says is "cannot be synced due to an unknown error (-50). First thing iTunes tries to do is backup my iPod, then that message turns up. I tried upgrading to th
-
Full bars can't make or receive calls or texts at home.
Just about 25 days back with Verizon and my iphone says I have full bars yet and can't make or receive a call or text from my house this started this week same issue with my moms razr phone as well. I sent the support email a message love the well ge
-
Deployment of ESB for 10.1.3.4 (trying to amend Endpoint properties)
I have downloaded the new deployment code (esbdeploymentautomation) to enable you to deploy an ESB between environments. I am deplying an ESB process from Dev to Systest. I have amended the build_tst.properties file to include all the relevant info a
-
XMLhttprequest doesn't work in safari
i have a website and it works fine in Internet Explorer, but the website doesn't work in Safari. i use xmlhttprequest to get data from the database and that data i want to put in an selectbox. i have multiple selectboxes and the first one i don't use
-
I'm trying to use a JComboBox, but I'm having trouble adding a listener. Here is the relevent code: JComboBox categoryCombo; JComboBox colorCombo; StyleListener styleListener; // Action listener for combo boxes categoryCombo = new JComboBox(categ