Problem using inputFile when a file is not required

I have a page that has a table component with the following fields
Title - inputText (required)
File - inputFile (not required)
File URL - inputText (not required)
The code for the input File is this:
<af:inputFile id="OrigReviewAttachmentsFileDoc"
  label="#{bindings.OrigReviewAttachmentsFileDoc.hints.label}"
  visible="#{bindings.OrigReviewItemsStatName.attributeValue == 'New' &amp;&amp; row.bindings.ClsfnCode.attributeValue != null &amp;&amp; row.bindings.ClsfnCode.attributeValue == 'PEND'}"
  valueChangeListener="#{OrigReviewAttachmentsFileDocFileHandlerInTable.uploadFile}"
  binding="#{OrigReviewAttachmentsFileDocFileHandlerInTable.usesUploadIndicator}"
  shortDesc="#{bindings.OrigReviewAttachmentsFileDoc.hints.tooltip}"
  partialTriggers="OrigReviewAttachmentsClsfnCode"/>The problem I am having is that under certain circumstances (like the file is too large) I want the user to enter a File URL instead of actually uploading a file. But when I save the row with the other 2 fields on the screen filled in and not the inputFile I get the error, "Cannot Find the File Specified." Is there any way that I can tell it, that if it doesn't have a path, to not try to upload a file?
I am using:
JDeveloper 11.1.1.4.0
Oracle 11g with OrdSys.OrdDoc column to hold the file.
Any help would be appreciated,
Michelle

I figured out the problem, and it was caused by JHeadstart. I placed a default display value in JHeadstart for the download link. This caused a default values bean to be created by jheadstart and that bean was what was causing my problem. The download link had a display value, but not a valid path. I removed the default value, re-generated the screen and it is totally fixed. I have pretty much decided that it is never a good idea to use a default value in Jheadstart.
Thanks for your help,
Michelle

Similar Messages

  • On some of my files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?" Then when I click "Locate", I get nothing.

    I'm really dumbfounded on this one and it's driving me bonkers!!!! On some of my music files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    This began to happen when Chuck made playlists2burn on2CD-and then he would delete the playlist; sending all the song files into oblivion. Certain songs have a ! right next to the file name, and as I stated before, i get that error message:
    "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    So I click on "Locate". No help. I get a menu with folders that say "catroot" and other folders which names I cannot remember, but I scroll PAST the file folders, & it's just a bunch of ".DLL" files.....I don't understand what any of the names of the folders mean...it's frustr8ing-coz this is my 2nd iTouch, my 1st one got stolen & I can't afford2buy my music back at this time & i NEVER before had a single problem with losing song file locations.
                  Is there anyone out there who has been through this frustrating game of chasing your tail?....<that's how I feel>
    If so I would be ever so gr8ful if maybe someone with the knowledge would be so kind as 2 tell me how/where 2 retrieve these songs & how to put everything back where it belongs, I would be 4ever gr8ful !!!
    I can't afford 2 replace the songs just like I'm unable 2 buy back my old music from my stolen iTouch....man that was an awesome collection-someday I'll be able 2 afford 2 do that & I would like 2 have all the new music that I paid 4 but cannot find when I got my new iTouch....that would just be  wonderful.
                 I hope someone sees this post that can help me retrieve these files....losing $100.00 of iTunes is a REAL BUMMER!!!!!!
                                                      ThanQ SO very much!
                                                                             [email protected] or [email protected] or [email protected] .
                                                                                               You can also find me on Facebook, my given name is Tiffinie Trimmer, &
                                                                                                that's my Facebook "handle".    ThanQ 4 taking the time 2 read all of this!
                                                                                                hope 2 get a reply someday....I'll B checking all my emails & my Facebook, as well
                                                                                                as marking this page in my FAVORITES so I can find it fast! Take Care!!!

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  need help

    I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  But when I have my external hard drive plug in the song will play with no problem.  What do I need to do to play my music without having the external harddrive plug in ????????  Please help

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • When trying to sync or listen to songs in itunes library it says the song on itunes could not be used because the original file could not be found. I am using windows 7.

    I have imported cds into my itunes and they appear on my playlist, but when I try to sync to my ipod or listen to them on my computer a message comes up stateing " the songs on itunes could not be used because the original file could not be found".  I have not deleted them and am importing them the way I always have.  This problem has only been for the last 4 or 5 months. Since updating to the last 2 itunes versions.

    The message means that iTunes can not find the original imported music files. iTunes should display a red exclamation mark next to the songs it can not find. You will need to look on your hard drive for the songs/files and than correct the file path in iTunes or just delete the files in your iTunes library and import them again.

  • When I try to listen to a song I purchased last week, I get the message, "could not be used because the original file could not be found. would you like to locate it?" What do I do to find it?

    When I try to listen to the songs I purchased from iTunes last week, I get the error message, "could not be used because the original file could not be found. would you like to locate it?"  What do I do to fix this problem or locate the song?
    Thanks!

    I am getting this same message.  I recently bought a new Macbook Pro and the geeks transferred my files from my mini-mac.  Perhaps they did not transfer something critical?  I follow the "locate" option when it asks to find my files and I get a file folder that has a red circle with a white bar in the middle. 
    I have the same issues with my downloaded movies but my apps all seem to be fine.
    Even more confusing - it seems to allow random songs to play and download on my Macbook and other devices.  But most of my music - whether downloaded from iTunes or my CD collection comes up with that message about the original file. 
    Should I get new geeks to locate these files on my old mini-mac?

  • Can someone please tell me the cause of the msg-The song could not be used because the original file could not be found- and how I might correct that problem?

    Can anyone please tell me the cause of the msg-The song"    " could no be used
    because the original file could not be found-and how I might correct that problem?  Lou

    I stupidly tried to copy my music files to an external drive so I could transfer them to my new iMac (old Macbook Pro is being retired). I now know I should've tried home sharing or something to transfer the music.
    Anyway, the situation I am in is that I have not managed to transfer anything and I now cannot access the music on my old Macbook Pro either! I have the message "the song 'xyz' could not be used because the original file could not be found. Would you like to locate it?". I understand that this is because iTunes cannot locate the files. When I try to locate the files I find nothing.
    I have tried searching my whole Macbook Pro for mp3 files and m4a files and Spotlight cant find any! The tracks are all still listed in iTunes. I also searched the external hard drive. I definitely haven't deleted anything. So where could they have gone and is there anything else I can do to search for them? I have a feeling I am just not searching for them in the right way because I have not deleted anything.
    Old computer is Macbook Pro OS X 10.6.8 with iTunes 10.4.1
    New computer is iMac OS X 10.7.2 with iTunes 10.5
    All I want to do is to set everything back to how it was so I can try the transfer a better way.
    Please help. Thanks, Dashford.

  • Some of the songs I have downloaded onto i tunes won't play when I select it to do so.  The error message I get is "The song could not be used because the original file could not be found.  Would you like to locate it?"  How can I get my songs to play?

    Some of the songs I have downloaded into i tunes won't play when I select it to do so.  The error message I get is "The song can not be used because the original file can not be found.  Would you like to locate it?"  When I select yes I'm sent to a screen that has my i tunes library listed.  When I select the song in question I'm asked if I would like to open the song.  When I select this option I get nothing.  The songs I have downloaded must be somewhere because they are listed in my i tunes library and on the screen I've been sent to.  I can't the songs to play however.  This is not true of all of my songs but it is true of quite a few of them.  Actually, one song is too many.    How do I get my music to play that seems to be locked up somewhere in the computer?

    Presuming they're on your computer, right click on them and then follow the prompts to locate hte file on your computer.

  • Error message when trying to play music on computer states The song ... could not be used because the original file could not be found.  However, my library shows how many items and the GBs used.  How do I locate the files?

    When I try to play my iTunes music on my computer, an error message comes up and state "The song (title of song) could not be used because the original file could not be found.  Would you like to locate it?
    When I click on Locate It, I cannot find where the music file may be located.  Does anyone have any suggestions?
    This all occurred when I attempted to do a backup to an external hard drive.  Unbeknownest to me, the files did not copy over and do not appear on the external hard drive. 
    When I open my iTunes library, at the bottom of my music list it shows how many songs and the GBs, so it appears that the files are still there; however, cannot be located.
    Thank you.

    Hi angela dfromtx,
    When tracks in iTunes display a it means the file cannot be located; it may have been moved or deleted. You'll have to locate the file manually if it is still available. For more information refer to the following article:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Alternatively, if your media was downloaded from the iTunes Store, you may be able to download it again free of charge:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • I have a new hard drive as my old one crashed. Everything seemed to transfer fine except for my entire iTunes library. It shows all of my old songs, but when I click on one it states "the song could not be used as the original file could not be found

    I have a new hard drive as my old one crashed. Everything seemed to transfer fine except for my entire iTunes library. It shows all of my old songs, but when I click on one it states "the song could not be used as the original file could not be found.would you like to locate it".
    Either how do I locate it, and I've tried every trick I know, or how do I restore all of my songs from one of two sources. I have my old hard drive backedup on an external drive which should have all of my songs, and I have most of my songs on my old iPhone 3S which I'm using as a backup iPod.

    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, or the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place. In the case of a library moved from one system to another there are also potential permissions issues. See Repair security permissions for iTunes for Windows.
    Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. (Due to a bug in iTunes 12 you currently have to say No twice!) Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case.
    In some cases iTunes may be able to repair itself if you go through the same steps with Get Info but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    See also Recover your iTunes library from your iPod or iOS device.
    tt2

  • I have movies in my movie library but i cannot play them or drag them into my ipod.There is an exclamation point next to each of them.Then when i click on it to play it it says the movie cannot be used because the original file could not be found.

    I have movies in my i tunes library but i canot play them or drag them into my i pod.There is an exclamation point each of them.Then when i click on them to play them on my pc it says this movie cannot be used because the original file could not be found.Help?

    Read threads list over on the right under the heading of More Like This
    Allan

  • Recently bought  a new computer and all my music appears in iTunes as well as on my computer in a saved folder. When I try to play the music in iTunes I get an error that reads"the song could not be used because the original file could not be found."

    Recently bought  a new computer and all my music appears in iTunes as well as on my computer in a saved folder. When I try to play the music in iTunes I get an error that reads"the song could not be used because the original file could not be found. Would you like to locate it?" Hope you can help me solve this issue.
    Thanks,
    Shellyboo

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • When I try to play a song in my itunes libery I get an error saying "this song could not be used because the original file could not be found".  I do I restore the file?

    When I rry to paly a song in my itunes libery, I get an error saying "this song could not be used because the original file could not be found". I do I find the orginal file?

    Hello crispinofromfl,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Have a nice day,
    Mario

  • What does it mean when a box pops up saying "The song could not be used because the origional file could not be found. Would you like ot locate it?"

    A  while ago, I was cleaning out some old pictures and music from my  computer. I noticed there were a lot of songs that I did not recognize,  and they had nothing to do with my itunes. I figured my step-dad or  sister might have put those songs on my computer or something. So I  deleted a few of them. The next day or so I realized all my music was  gone from my itunes. I still had the account but everything was wiped  clean, my music and playlists. I plugged in my ipod hoping it would  restore all my music but nothing happened, I still had my music on my  ipod and my cell phone. A friend of mine took my ipod, and put all of  the music on a hard drive, gave me the hard drive and I transferred all  of it in a folder onto my desktop. Then I drug that entire folder into  my itunes library. When I click to play a song through itunes a box pops  up and says "The song could not be used because the original file could  not be found. Would you like to locate it?" When I click on the song to  play it in the folder, it will go to itunes and then play it through  there. But I cant just go click on the song in my itunes and play it.

    It means the media is not where iTunes expects it to be.
    iOS devices are not and have never been backup devices.
    Are the files in question still on the computer?
    If not, you should restore them from the backup of the computer.  You do have a backup, correct?

  • HT204406 I opened i Tunes on my mac and while i see the songs in some of my playlists they will not play. The computer says the song could not be used because the original file could not be found. Would you like to locate it? When i do it won't play.

    I opened i Tunes on my mac and while i see the songs in some of my playlists they will not play. The computer says the song could not be used because the original file could not be found. Would you like to locate it? When i do it won't play.

    You will need to locate where you itunes library is and then relink one of the songs, itunes will do the rest. So if your itunes library is on an external hard drive or something like that. When you get the error message click yes you would like to locate it. then navigate to the external hard drive where the itunes libray is and locate that particular song. Once you have linked one, itunes will ask if you would like it to locate the rest, click yes and it will find the rest of the files if they are in the same location.

  • I have a ! before most of the tracks in my library, they were not there before. When I click on the ! it says 'could not be used because the original file could not be found. Would you like to locate it?

    I have a ! before most of the tracks in my library, they were not there before. When I click on the ! it says 'could not be used because the original file could not be found. Would you like to locate it?

    Also see here for more help and information: iTunes: Finding lost media and downloads
    B-rock

Maybe you are looking for

  • FPN: No ESID found error while invoking BEx iviews for Reports.

    Hi Everybody, We have a federated portal network [FPN] setup. We are EP 7 SP15 for both Consumer portal and BI producer portal. The content is delivered to users via RRA Remote Role Assignment ] in consumer portal for BI portal roles from Producer bi

  • Can't connect using ethernet but can connect using Airport

    The problem I am currently facing is when I try to plug an ethernet cable into my MacBook Pro I can't get on the internet. At home I use an AEBS and connect fien, but when I go over to a friends house and they don't have wireless I try to hook up usi

  • Edge Web Fonts - not showing up

    Hey Everyone, Using Edge right now and having issues with Web Fonts.   I'm using Edge Animate CC.  When I choose a Web Font I can see it in the drop down list of available fonts but when I choose it nothing happens.  When I Preview the HTML page I al

  • JAI installation problem, javax/media/jai/util/ not found?

    Hi, I am trying to use the JAI instllation in executing a class. However, I keep getting the following message. Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/util/ I have added some jars from the JAI instllation to my cla

  • Tables in ABAP

    why transparent,pooled and cluster tables in ABAP DDIC are called Ttransparent,pooled and cluster?