Reading from a mapped drive

Hello,
   I am reading a file from a mapped network drive and displaying the contents of the file immediately after I have written the file to the mapped network drive. I am doing this to verify to the user that if they are able to view the contents of the file the data have been obtained from the test equipment and has been written to the mapped network drive. When the network and/or server is working correctly the code works great. But when the network and and server slows down I cannot read the file from the mapped network drives. I have also seen ths situation after I have upgraded the lab computers.
  So should I put a fixed delay before I read and hope that it is long enough? Will using a file exist check before I read do it? Any suggestions? 
Regards,
Kaspar

In general, it is a bad idea to work directly with network drives for the exact reason you are seeing. You are at the mercy of network hangups. I can't tell you how many times this comes up as an issue with the testing around here, but the engineers here insist on using network drives. Fine, I say. Then deal with the occasional error. It is usually better to store data files locally and periodically transfer them to the network drive.
If you cannot read from the network drive, then you cannot read from the network drive. Putting in a delay may only fix the situation under certain cases. In some situation it will do no good. What do you do then? Increase the delay? I think your program should first save the file locally and then copy it to the network drive. It should attempt to read from the network drive with a timeout. If the file is not available within a reasonable amount of time then you simply notify the user that there's network problems, and continue on with the test.  At least you will know that the data file has been saved locally.

Similar Messages

  • Reading files from a mapped drive

    Hello,
    I am trying to pull image files off of a network share in Oracle Forms.
    Everytime I do this, I get error FRM-47109 Cannot locate image file..... i
    have tried accessing this drive with 2 methods:
    1. Button trigger calls with READ_IMAGE_FILE(:datablock.imagelocation ||
    :datablock.filename || '.tif', 'ANY', BLOCK7.IMAGE_ITEM);
    2. Button trigger calls with READ_IMAGE_FILE('\\server\images\'
    ||:CRASH_IMAGES.folder || '\' || :crash_images.docno ||'.tif',
    'ANY', 'BLOCK7.IMAGE_ITEM');
    Both of these calls work on the development side where the T:\ drive is mapped.
    When the form is put on the production server with the same T:\ drive mapping,
    the image is unable to be located.
    I have also found Microsoft article Q122702, which explains how network shares
    are distributed to services. I have edited the registry key
    RestrictNullSessAccess to a value of 0, and remapped the drive using: NET USE
    T: \\server\images /user:Administrator password.
    None of this has worked for me so far, and I have been informed of possible
    issues with forms and mapped network drives. Has anyone seen this before or know of a fix?
    Thanks,
    Jordan

    I'm not too familiar with Windows user accounts.
    I'm having this problem of not being able to read files from a mapped drive.
    Using 10.1.2 Forms Service on a XP machine.
    How do i check to see which user is running the forms service and/or how do I change the settings a user has access to?
    Check in server-info and User/Group: #-1(1)/1, what the heck??
    Thanks.

  • Deleted iTunes Media off the Mac, Can i now get it to read from my Hard Drive ?

    I started looking into this as my Mac was using Roughly 500 of 750 gig on Music. But I've only recently noticed that this is due to duplicates in My Music folder and iTunes Media. Ive done Some reading up and can't seem to find a definitive answer to what to do.
    Ive Backed up My Music and iTunes media on a External Hard-drive, My Music folders are all neat and organised and would like it to stay that way, But I've noticed iTunes media folder was a mess, This is My fault as i had the make a copy to iTunes media ticked in preferences. And the other one De-selected ( Keep Music Organised )
    So to free up space  on the Mac I'm going to delete iTunes media as this is no use to me the way it is, I can't find anything in there and it looks a mess. The Problem with this is iTunes reads from iTunes media and i would rather it read form my organised Music files on the internal Hard-drive so i can keep ontop of it.
    All my Playlists are built within iTunes as i use them in Serato for DJ Purposes , So i would like to keep these playlists and just let iTunes read from the hard drive instead Is there a way once iTunes media is deleted i can highlight a 2014 playlist for example with 250 songs in and change where iTunes looks for them so i don't have to reload all the music? with iTunes media deleted there coming up saying can't Locate File , but i will have to manually show iTunes 25000 where they are manually , Can this be done per Playlist in one big Hit?
    Thank you and hope it all made sense

    Unfortunately it is not making enough sense for me to try to make real suggestions.
    If you are going to disable iTunes media preferences then you have to be 100% organized and know how iTunes works because from that point on iTunes will stop helping you maintain your files in any way.
    Yes, it may look a mess but the whole thing is designed so you should never need to look in your iTunes folder yourself, just at the iTunes application window.  Maybe you need to do this to use your Serrato thingy but that's because you're doing something special.
    If you add a file to iTunes and have the "copy to" preference set then it will place a copy of what you add in the correct folder inside iTunes Media folder.  The only way you should have media files actually directly in other folders is if you put them there yourself or you have residual structure from pre-iTunes version 9 before media was split into folders of different kinds.
    If you disable iTunes media preferences then iTunes is absolutely terrible at following media moved to other drives.  Moving to a different drive is not really moving, it is copying and then deleting the original, and that means iTunes sees the file as being gone.
    I really get lost on your fourth paragraph.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660 More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html Where are my iTunes files located? - http://support.apple.com/kb/ht1391 iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/kb/ht3847

  • Final Cut X reading from 2 different drives

    I am currently sitting at my work desk and our workflow is set up that we have all our projects on the scratch disk to work from, and the back up drive updates every night backing up the computer and hard drive. Because of this, FCPX is reading the events from the main drive and the events from the back up. Every time i open final cut the events are on a different drive.  So the first time I saw this i tried to get all the events back onto the main drive, thus duplicating the events.  Then i noticed that all the duplicated events went onto the backup drive and off the projects drive, i restarted FCPX and it reversed again! Mind you, the events and projects are still in tact on the drives in finder but I don't know for certain that I am working from an event on the actual scratch disk or from the backup drive which could create problems. 
    I understand that FCPX has it's own heirarchy within the software and i havent moved any files around within finder only from within fcpx
    these 2 pictures were taken 2 minutes from each other to show what happens.
    I am also getting this prompt every time I start FCPX
    I'm scared to delete any of the events becuase at this point I have worked on diferent projcts and i'm not sure which event those projcts were pulling from. 
    I want to know a couple things
    1.) why is this happening and how do i stop it?
    2.) in the future how do i stop FCPX from reading from the backup drive?
    3.) If I do decide to delete the duplicates and in the event a projct i was working on was pulling from that particular duplicate, will it be easy to re-link the media I used?
    Thanks in advance for the responses. this has become very frustrating.
    Steve

    Thanks so much for this help.  It definitely gave me a starting point and a workaround.  However, I really want to know why FCPX is reading from the backup drive, is there anyway to just tell it to ignore the drive without mounting it?  I could just remount the drive before i leave for the day but thats something that i could forget to do. as in yesterday when i got 20 minutes into my drive home and realized i forgot to reconnect. 
    I know this seems like a "laziness" question but it really does worry me that final cut gets confused as to what projects are on what drives when both are connected.  It wouldn't worry me as much if both drives showed an identical projects list, that would make sense and i would have ignored it from the start.  But the fact that every time i restart final cut the projects are randomly visible or not visible on either drive really makes me worrisome.

  • Could we write and read from a external drive using a IPad?

    √could we write and read from a external drive using a IPad?

    No, the iPad doesn't work that way. The only thing you can access is camera cards (with the adaptor).
    Matt

  • Why Does iTunes Continuously Read From the Hard-drive?

    Hi. I have recently discovered an odd behaviour from iTunes: instead of reading an entire song from the harddrive and storing it in ram during playback, iTunes reads small chunks of data very frequently. For example, when playing a 128Kbps song the HD reads 68KB chunks approximately every 3 seconds, and when playing lossless WAVE files the HD is constantly reading at 200KB/s. I found this out by having iTunes open and playing music while having all other programs closed, and monitoring the disk activity from Activity Monitor (and I'm sure that it's iTunes that was reading from the HD because when the music was paused the HD was idle).
    So, my question is why would iTunes do this? This seems like an extremely inefficient use of the harddrive for several reasons:
    - Constantly reading small chunks from the HD uses much more power than reading large chunks infrequently because idle hard-drives use much less power than active hard-drives
    - This will slow down other applications that need to make heavy use of the HD because iTunes will be constantly interrupting anything else that is using the disk (this is especially true for Photoshop or any other program that uses lots of swapfile space)
    - It puts unnecessary wear on the HD heads
    - It is dangerous for laptops, which can easily get thrown around or bumped. Momentarily reading a large chunk of data and leaving the HD idle for the majority of the time will be much safer for the HD heads
    - Hard-drive-based portable music players read large chunks of data infrequently because it is well-known that this saves power and protects the HD in these devices.
    So... is there any reason that iTunes is exempt from these reasons??
    -Eric

    I too have wondered about this. You'd think with 1.5GB RAM that itunes would take 3MB of it and leave my drive alone for a few minutes. I don't really feel comfortable doing drive intensive activities such as file copying while itunes is running.

  • How do I get iTunes to read from my external drive?

    Ok, before you post this link http://docs.info.apple.com/article.html?artnum=301748 please read this. That link only seems to give advice if you have your music on your computer's hard drive and you want to transfer it all to another drive. My problem is that all of my music is currently on an external drive. There is nothing to transfer or consolidate from my computer. I've gone into the preferences and set the iTunes music folder to the location on my external drive. The part about consolidating doesn't seem applicable in my case. So now that I've set the location of my iTunes music folder why isn't anything showing up in my iTunes library? Why can't I play any music?

    So have any of this "external" music ever been added to iTunes? If not, go to File>Add to Library. Then navigate to the external hard-drive folder that contains the music.

  • Read from a hard drive

    I have a passport hard drive. Can a ipod be hooked up to one and get movies and songs off it?

    The ipod would have to be connected to itunes.
    You sync music from itunes to the ipod.

  • Referenced files in Aperture 3 are not reading from new hard drive.

    I just merged one libary into another library on my machine in Aperture 3. Everything seemed to work fine with that. Many of the images in the new large library are referenced images. I had many of them initially referenced onto external drives. I'm not consolidating into one larger drive (with a back up too of course). I copied the files onto the larger drive from the individual external drives. I plugged in the new external drive with all of the photos on it and when I went to locate referenced images in Aperture, I found them, however many times the "reconnect" or "reconnect all" buttons are greyed out when I choose the photo. It's not letting me reconnect the images and they do have the same file names.
    I have no idea what to think or do. I don't want to have to plug in all of the old drives to get to the pictures. I want everything on one drive to access my large aperture library that is now all in one place as well.
    Please help!
    Thanks!

    aperture 3
    I meant the full version number:
    With permissions I meant the following:
    You need to have read & write permissions to the files to be able to reconnect the files. To check the permissions, select an original image filein the Finder and press the key combination ⌘I to launch the "Info" panel. In the Info panel disclose the "Sharing&Permissions" brick.
    Check if you have Read&Write access to all your image files, also to the folders containing them. If there is a permissions problem, change the permissions to "Read&Write". It would help to set the "Ignore Ownership on this Volume" flag. You'll find this flag in the "Info" panel for your external drive.
    But the safest way really to solve this would be to let Aperture relocate the files to your new drive and not to move them manually. Connect the original drives with your original master image files and move the masters by using Aperture's command "Relocate original file". Then their would be no need to reconnect.

  • PDFs wont from mapped drives. Protected Mode is not enabled

        I have users who cannot open a PDF file from a mapped drive but can open the same file from DFS Explorer Window. We are running Windows 7 Enterprise, Protected Mode is disabled. Users are getting the error there was an error opening this document. The device is not ready.

    I had the same issue as above with version 10.1.2.
    I also found that if the entire file address was typed into explorer (E.g. \\server\folder\folder\file.pdf) it would work file, but not if you mapped the shared drive it would fail (E.g. R:\folder\file.pdf) with the same error as above.
    I down graded to adobe reader 10.1.1 and that fixed the problem and it worked fine.
    Thanks
    Dean

  • Help reading a .txt file from the hard drive....

    Hi guys,
    Ok... I need to know how to read a .txt file from the hard drive... I have an example on how to read from a disk, but I don't have a disk drive. I could be confusing terminology, but I don't think I am. Here is the code I have for reading from a disk.. please let me know how I should change it to read from a hard drive.
    Also, when the error pops up, it says that it can't read another .txt file that is not specified in the code... any ideas how that is occuring? Please advise.
    import java.io.*;
    public class TEST {
    public static void main(String args[]) throws Exception{
    FileReader fr = new FileReader("customer.txt");
    BufferedReader bfr = new BufferedReader (fr);
    String s;
    while ((s=bfr.readLine())!= null){
    System.out.println (s);
    fr.close();
    }

    Ok... I need to know how to read a .txt file from the
    hard drive... I have an example on how to read from a
    disk, but I don't have a disk drive. I could be
    confusing terminology, but I don't think I am. Here
    is the code I have for reading from a disk.. please
    let me know how I should change it to read from a
    hard drive.The code will be the same, regardless of where the file is located. It's just the filename that will be different.
    Also, when the error pops up, it says that it can't
    read another .txt file that is not specified in the
    code... any ideas how that is occuring? Please
    advise.Probably becuase the class file (compiled version of the source code) is a different version to the source code, i.e. the source code hasn't been recompiled since the source code was changed.
    How does this relate to EJBs?

  • How to add an image from mapped drives?

    Hi all,
    Currently I've a BSP service running some picture are stored within the service directory (using import MIME) in the WEBAS like ...
    http://webhost/sap/bc/bsp/sap/zris/GFX/logo.gif
    but now how can I display in the same service pictures taken from a mapped drive ? (ie: l:\pictures\logo.gif) without importing them into the WEBAS service?
    Is there a possibility to create a virtual directory in the service mapped to the l:\pictures or something like that?
    Thanks in advance
    Best Regards
    Erik

    Hi all thanks for your answers,
    <img src="file://c/images/pictureOfTheDay.JPG">
    that's what I was using during my test, but the thing is that it need to have the drive mapped locally on the computer running the browser. Now I just want to map those drives on the WAS.
    about installing apache on the file server, well I'm in a big corporate ... so you know ... security, policies, dmz etc.. etc...
    I will check out the parameter.
    Cheers
    Erik

  • How do you direct EXS24 to read from External drive?

    my logic pro EXS24 is not reading from My external drive. How do i create a path??

    Hi Nastushka
    Glad you liked the website, it's my intention to keep updating over time and I hope people continue to find it useful. I was very lucky when I started out that lots of very smart people helped me out, so it's nice to continue the tradition.
    In answer to your question.
    To the best of my knowledge there's no way to have the actual .exs files on an external drive and have Logic still see them. My understanding is that Logic performs a number of "scans" on start up, during this process it checks a number of preset locations and then adds the files it finds to your available tools.
    The good news is that the .exs files are relatively small, so they shouldn't eat in to your hard drive space too much. It's the audio ( wav or aiff ) that takes up all the space.
    For example I have Pure E-Basses on my laptop ( from which I'm typing ) and the whole folder of .exs files is 6.5meg the related samples folder is 2.52gig.
    Ok, moving into speculative mode, _I haven't tried this myself_, if you absolutely must have the .exs files on an external drive I can think of no logical reason this couldn't be achieved with the judicious use of an Alias. So you'd create an Alias of the .exs files and put these in the correct location for Logic to scan and point these Aliases to the original files on your external HD.
    Unfortunately I'm not in a position to test this at the moment.
    Maybe somebody could chip in if they've tried it ?
    I'd also suggest that if you don't have enough room on you internal HD for the .exs files you may have bigger problems down the line. All HDs ( in my experience ) need a reasonable percentage of free space to work at their best.
    I'll copy this into the other thread, it may be sensible to continue this discussion in one thread from now on.
    James

  • Variety of problems- not reading from hard drive, etc.

    My 30 GB iPod Photo died a while ago, so I recently received an 80 GB 5G for the holidays. However, it hasn't been working correctly. I have a whole list of problems- most would seem to stem from it not reading from the hard drive. Note that almost every single one of these can be resolved by resetting the iPod, but having to do that over and over and losing my place in podcasts and that sort of thing is really annoying. I already tried restoring it completely once, and it didn't seem to help. What's odd is that, shortly after getting the iPod, I went on vacation for almost a week, in a warmer climate. It worked perfectly fine the entire time I was there, but then started up again upon my return.
    - The classic just not playing songs/videos, where you select a song and the artwork doesn't load and it doesn't play then just ends. Sometimes accompanied by freezing.
    - Skipping. I've never heard an iPod skip before, but it's happened several times. Also, I've had a weirder problem where a second or so of sound from earlier in a podcast repeats every so often during the rest of it. Just turning the iPod off and on again helps with that, though. And sometimes something will randomly stop in the middle.
    - Not recognizing data. My old iPod did this all the time. You reset it, and there are no songs, videos, etc. listed. If you connect it to the computer, iTunes classifies all the data as "other." It generally goes away if you reset it again. This has also happened partially, where some things show up but not others.
    - Sometimes, during a video, the audio will suddenly become a horrible screeching sound. You can stop the video and try to play something else, but then it freezes. The video might work perfectly fine later- that's not the problem.
    - Slow functioning. This might be normal- things like the graphics "skipping" while both listening to something and playing a game. Or sometimes it just seems generally sluggish to respond.
    - Not working with the case. I have this case (I had almost the same one for my last iPod), and all the above problems occur mostly (though not entirely) while the iPod is inside. I doubt the case itself is the problem- I can't see any way it would be preventing things like reading from the HD- but they definitely seem to be tied together. Sometimes when it's in the case the controls will take several seconds to respond to button pushes (play/pause, select, etc.) but respond perfectly fine to scrolling/volume change.
    I think I've pretty much exhausted my options for trying to fix things myself. Should I just send it back and hope the replacement is better? Will Apple even agree to replace it if they can't see it malfunctioning?

    Also, though no one's replied yet, I remembered more problems:
    - Displaying the wrong album art (only occasionally).
    - Colors FREAKING OUT when viewing photos. The way to get rid of this seems to be to go back to the photo library, select a different photo (which hopefully loads correctly), going back up to the photo library again, and reselecting the original photo. But it's still annoying.

  • Setting L7Pro to write/read audio from Ex Hard Drive

    Hey everyone - Purchased a LaCie 250gb drive 7200rpm with 8mb buffer! Firewire 400. I followed the instructions and got it formatted and all but I have a question. How do I tell Logic (or my Imac) to write audio straight to that drive when recording? I want to be able to have all my session audio files being written too and read from that LaCie drive. Any assistance is welcome...
    Thanks (I'm new to MAC if you have not noticed
    IMAC G5 1.8 80GB; Mac OS X (10.3.9); 1.25GB RAM, FirePod, Logic Pro 7, Lacie 250gb External

    Another thing you can do is create your project on your external drive. All your audio will go right into your project, keeping everything in one neat, little (well, maybe not little ) bundle.
    jord

Maybe you are looking for

  • Use WebDynpro JCO Destination in Abstract Portal Component

    Hello, I was wondering if it is possible to use a WebDynpro JCo Destination in an Abstract Portal Component? I have a portal component that make as JCO call to run an rfc. I get the MYSAPSSO2 ticket from the cookie and pass this in to the JCO client.

  • ABAP help in user exit variables

    Hi, In the selection screen of a query, I have an optional variable CalenderMonth (SOMONTH). I have to calculate another user exit variable (CALMONTH) in ZXRSRU01 by using this SOMONTH. This is how. If the value SOMONTH is entered, then I need to ass

  • Defaulting BP Roles in CRMM_ACCOUNT

    Hi, We are working with the PCUI in 4.0. Within the CRMM_ACCOUNT application we would like to default a specific BP role when a user is creating an account in the system. Currently when a user creates an account, the General BP, Activity Partner, Bil

  • ITunes has detected a problem with you audio configuration

    "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly." got this error after update to Windows 8.1

  • FDM using ext g4_c_tax_extract_adapter

    Hi folks, I'm using the extract adapter to create a txt file of debit and credit thru FDM. I've imported and validated, but receive the error in the export step: Error: Export failed. Detail: EXPORT Action Adapter script failed to load! Should I crea