Reading content during SMB upload

I need some urgent help.
I created the MyFolder class and override the extendedPreAddItem method to perform a validation when a document is uploaded to the folder. Basically, I have to inspect the content of the document being uploaded and, if it is correct, I let it to be uploaded; else, I raise an exception. Everything works fine, except when the file is uploaded through the SMB protocol, which is my main need. With SMB, the getContentSize() always return 0 and the getContentStream() always return null. How could I get the content of the file being uploaded via SMB in an override????? My code follows.
public class S_MyFolder extends S_TieFolder {
public S_MyFolder(S_LibrarySession session,
S_LibraryObjectData data) throws IfsException
super(session, data);
public S_MyFolder(S_LibrarySession session,
Long classId) throws IfsException
super(session, classId);
protected void extendedPreAddItem(
OperationState opState,
S_PublicObject obj,
S_LibraryObjectDefinition def)
throws IfsException
super.extendedPreAddItem(opState, obj, def);
if ((S_Document)obj).getContentSize() > 0) {
// do something with the content
// OK with FTP or Java API
else {
// with SMB, always get here
throw new IfsException(100001);
Please, someone help me. Thanks a lot.
Daniel Viero
iProcess Solucoes em Tecnologia
[email protected]
Porto Alegre, RS - Brazil

Hello Ben,
I'm sorry that FTP has been proving unstable for you. We are aware of some issues with our current FTP implementation and plan to address them in future versions of Muse. For now, if you are seeing problems with FTP locking up during publish the workaround of exporting the HTML and using a third-party FTP client is what we reccoemend.
Thanks,
Justin

Similar Messages

  • PO attachment error - Read error during PC upload

    Hi Gurus,
    I am getting the error when I am trying to attach any file in ME22N, by clicking the services for object button, create attachment, and select the attachment.
    The error message is "Read error during PC upload" and "The attachemnt has not been created".
    The system is upgraded to ECC 6 last year and have not tried this function before.
    Thanks in advance.
    Durai

    Hi,
    They are not using any interfaces (EDI), no idocs. They are using either fax or email and post modes only.
    After saving the PO, we can able to attach the documents by clicking the services for object button in ME22N. But I am not able to attach the document to PO.
    Thanks for your response.
    Regards
    Durai.

  • Read Error During PC Upload

    Hi Experts,
    When I attempt to attach a document to a PO (ME21N/ME22N) I get an error message say:
    Read Error During PC Upload : Include File in PC Application
    The funny thing is, some users can make attachments, others cannot. Is this a profile or authorization issue?
    Thanks in advance!
    SW

    Hi Steven,
    You cannot attach a file in ME21N trxn using Services for Object. For this you have to come out of Trxn ME21N after saving Po and again go to ME22N trxn code and in Menu System - Select Services for Object and Attach your File.
    Be sure the File is not in use and closed.
    Reg,
    Ashok

  • PO attachment - Read error during upload

    Hi Gurus,
    I am getting the error when I am trying to attach any file in ME22N, by clicking the services for object button, create attachment, and select the attachment.
    The error message is "Read error during PC upload" and "The attachement has not been created".
    The system is upgraded to ECC 6 last year and have not tried this function before. Now the client want to use this functionality.
    Thanks in advance.
    Durai

    Hi Charlie,
    There is no message number appeared. In the bottom message bar " The attachment has not been created" appeared. In the seperate message window, " Read error during PC upload" is on the title and "Include file in the PC application, Try again?, is in the body.
    Hope I clarified your doubt.
    Thanks and regards
    Durai

  • Read error duing PC upload

    Hi everyone,
    I am having a problem when uploading a SAP office attachment. I receive the following error "Read error during PC upload, Include file in PC application, Try
    again?"
    Would anybody have any suggestions to resolve this issue?
    Thank you!

    Hi Jimmy,
    The file you are trying to upload must be open on your desktop. Please close it and theen do  the upload.The issue will be solved.
    Please award points if solved.
    Regards.
    Ruchit.
    Message was edited by:
            Ruchit Khushu

  • Reading contents of uploaded excel file in web dynpro java

    Hi All.
    I am aware how to provide facility to upload files in web dynpro java. But my requirement is that on uploading a particular file (for eg. an excel file having 10 columns), I need to read the contents of that file and store it in a table in R/3.Can anyone suggest a way how I can read the contents of the uploaded file?
    Thanks and Regards,
    Saurabh.

    Hi.
    I am having the following requirement : I have a FileUpload UI element where user clicks Browse button, selects a file from the local system and presses a Upload button. Upon pressing Upload, the name of the selected file and the contents of the file should be shown.
    In the View context, I have two value attributes: FileName of type String and FileResource of type binary.
    This is the code that I have in the Upload button action handler :
      public void onActionUpload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload(ServerEvent)
        IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(
                 IPrivateReadExcelView.IContextElement.FILE_RESOURCE);
        IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)attributeInfo.
                 getModifiableSimpleType();
        IPrivateReadExcelView.IContextElement element = wdContext.createContextElement();
        String fname = binaryType.getFileName();
        wdComponentAPI.getMessageManager().reportSuccess("File selected - "+fname);  //Statement 1
         try {
              wdComponentAPI.getMessageManager().reportSuccess("Successful");    // Statement 2
              InputStream in = new FileInputStream(fname);
              HSSFWorkbook wb = new HSSFWorkbook(in);
              wdComponentAPI.getMessageManager().reportSuccess("Successful");    //Statement 3
              int sheetsNo = wb.getNumberOfSheets();
              for (int i=0;i<sheetsNo;i++) {
                   HSSFSheet sheet = wb.getSheetAt(i);
                   Iterator rowsNo = sheet.rowIterator();
                   while(rowsNo.hasNext()) {
                        HSSFRow rows = (HSSFRow)rowsNo.next();
                        Iterator colsNo = rows.cellIterator();
                        while(colsNo.hasNext()) {
                             HSSFCell cell = (HSSFCell)colsNo.next();
                             wdComponentAPI.getMessageManager().reportSuccess("File uploaded" +
                                  "successfully");
                             if(cell.getCellType()==1) {
                                  wdComponentAPI.getMessageManager().reportSuccess("00000"+
                                       cell.getStringCellValue());
                             else if(cell.getCellType()==0) {
                                  String str=""+cell.getNumericCellValue();
                                  wdComponentAPI.getMessageManager().reportSuccess("11111"+str);
         catch(Exception e) { wdComponentAPI.getMessageManager().raisePendingException();
        //@@end
    On pressing Upload button, name of selected file is being shown(Statement 1). I am also getting Statement 2 in the output. However I am not getting Statement 3 onwards.
    Where am I going wrong? Can anyone shed some light on this?

  • Finder gets stuck when reading contents of large folders on a SMB-share

    Hai thar, everyone. Recently I've found a sad bug in the world's most advanced OS. I wonder why it was left almost unnoticed as I was unable to find out some info on it so I created this topic in hope to turn attention to this issue when no solution is available right now by far. In short, bug consists in Finder's misbehaviour when it reads contents of big folders on a mounted SMB-shares like stated in the title. Number of files - somewhat around 11-12 thousands/folder. What't interesting, when one goes to the shared folder which contains not much files (below critical limit) - everything's just fine. When one opens a "bomb"-folder, Finder does nothing. It won't display folder's contents and moreover, it won't display contents of other folders on the share anymore, however, it's still able to show up contents of those folders you have visited just before opening "bomb"-folder. Probably it simply has  the contents of visited folders cached somewhere. The second consequence, connection to the SMB-share seems to degrade. Speed drops to miserable numbers and case you open some big file from the share theres a chance that it'll be loaded slowly. It's not that hot idea in fact, to load network by watching videos directly from the SMB-server =) but if you do open a movie, playback will be jerky as **** while it was perfect just before you poked the "bomb" and current traffic is very little - a few kbps/~100bps (according to Activity Monitor). As stated before, stuck Finder seemingly affects overall connection to the SMB-server in some strange manner. FS notifications get broken too, on the share.
    In general Finder proceeds functioning. It has no problems with local FS/other kinds of remote FS, but SMB. It looks like theres a stuck thread serving requests to for the file objects on the SMB-share which actually gets stuck or does extremelly slowly.
    The workaround is pretty simple and straight forward - you have to restructurize your "bomb"-folders by splitting them into several subfolders or such. Simply get rid of that huge heap of files stored in a single folder, fragment them and keep their number below 10k/folder. However, this is not a fix. It's only workaround. Fix should follow, as this issue is not only a "little inconvenience" but also a software flaw.
    This bug affects at least OS X 10.7.5 (11G63). Something similar was seen also on OS X 10.6.6
    WBR
    PS: sorry for my broken English.

    Reporting the same problem.
    1. Have Windows 7 MediaCenter with file sharing set up properly (LM+NTLM Authentication allowed and 128-bit encryption disabled in security policies).
    2. Test folder ("C:\income") and all the subfolders' owner is 'Guest', full access is granted for everyone.
    3. Connecting to MediaCenter from MacBook with Finder by pressing Cmd+K and typing smb://ip-addr/income
    4. Finder connects successfully, but some sub-folders and files are not being listed.
    Workaround:
    5. You can open a not-listed folder directly by pressing Cmd+K and typing smb://ip-addr/income/some-invisible-folder
    6. Voila! You're inside invisible folder.
    In the meantime, i can see all the sub-folders on a Windows XP client machine, so i can make a conclusion that all of these 'invisible' sub-folders are actually accessible by Finder, but in some reason are just not being listed on Mac.

  • Content validation before uploading file

    Hi,
    We want to do some validations before uploading an excel file to OBIEE :
    1 - check the file extension
    2 - do some data validation on the content of the excel file.
    I succed in doing the first step by adding some javascript customization to OBIEE javascript files. However, i cant do the second step with javascript, because i need to read the excel file content and make connection to a database to perform the validation.
    Is there any way, to do the validation in server side so that i can read the excel file and make the database connection with a java code.
    Thanks.

    Hi,
    Actualy, users produces some informations about production. These informations are in excel files because there is no application for this business area. Also they want, throw OBIEE 11g portal, to upload their files them selves, have a validation workflow of the file in obiee, and then automatically copy excel files content in a oracle tables and create some reports on these tables.
    I dont know if these needs are possible in the obiee 11g platform, so i start doing a prototype. Now, i'am in the first step of uploading the excel file into a folder in the obiee catalog. However during the upload a file a need to do some technical validations (null values, numeric values, ...) and check if the value of a specific column exists in a table on an other database.
    Therefor, the xls file is not a variable it's uploaded every time a user wants it. The production environnement of obiee 11g is AIX, however for the prototype, i will user an environnement on windows.
    Thanks.

  • Error "A web exception has occurred during file upload" when trying to import ESXi image file into Update Manager

    I'm encountering this error and not sure how to fix, I'm quite new to vCenter so please bear with me.
    I'm trying out vCenter 5.1 with Update Manager 5.1 right now.  No license key has been entered and I still have 50 odd days to try it out.
    2 ESXi hosts are being managed by this vCenter, and they're both running ESXi 4.0
    I'm looking to use Update Manager to try to upgrade the ESXi 4.0 hosts to ESXi 5.1
    I downloaded the image file VMware-VIMSetup-all-5.1.0-799735.iso from VMWare website, and is looking to import it using the Update Manager so I can update the ESXi hosts, but I keep on getting the error:
    File name:     VMware-VIMSetup-all-5.1.0-799735.iso
    Failed to transfer data
    Error was: A web exception has occurred during file upload
    I tried importing it by using vSphere client to connect to vCenter server both remotely and locally, with firewall disabled.
    I've read http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026602
    I've disabled firewall, and there is no anti-virus program on the server.  I've also restarted the machine several times, to no avail, I didn't reinstall update manager because the whole Windows and VCenter installations are clean from scratch.
    I logged into the vSphere Client using Active Directory credentials, and I've made all Domain Admins (which my account is a member of) part of the administrator group on the vCenter server. I can't log in using admin@System-Domain because it tells me I don't have permissions for it, I still haven't really had the chance to figure out why that is and not sure if that makes a difference.
    Also, I'm fairly certain I'm using the right image file, as I've burned some DVD's used that image file to upgrade some other ESXi hosts.  Unless there's a special image file I need to download?
    I'm at lost on what I can do to make it work.  Please advise.
    Thanks.

    The ISO file you mentioned is the one for vCenter Server. What you need is the "VMware-VMvisor-Installer-5.1.0-799733.x86_64.iso" (or VMware-VMvisor-Installer-201210001-838463.x86_64.iso) for the ESXi host.
    André

  • How to get the content of the uploaded file.

    Hi Experts,
    I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
    Regards,
    Arun

    >
    ARUN KUMAR.S wrote:
    > Hi Experts,
    >
    > I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
    >
    > Regards,
    > Arun
    You will not be able to use a normal InputField to upload file contents.  This is not allowed by the browser security model. You must use one of the upload specific UI mechanisms - the FileUpload UI element or as of 7.01 ACFUpDownload or FlashIslands.

  • Change meter reading type during reading estimation (el30)

    Hi,
    I would change meter reading type during or after reading estimation process (el30 transaction), just before the meter reading upload.
    Is there any user-exit to activate to do this?
    Thanks

    Hi,
    You can use enhancement - EDMLELSV / EDMLELAA
    Let me know if more information is required.
    Thanks and Regards,
    Ranjit Thakur.

  • KM Content:- unable to upload and Download KM Content

    Hi,
    we have three systems dev,quality,and production.
    i have some files in KM Quality which have to be transported to production.
    i can able the download file "fullupdate.zip" from quality.
    but when i am uploading into production nothing is happening,
    i used the path  content management->content Exchange->package Upload.
    when i select the file and click on upload it is processing for some time and showing the same screen again,
    not getting any error message or confirmation message.
    one more thing i am also not able to upload a file from local desktop to KM.
    i can able to create folders and links .
    Note:-in the subscriber and syndicator the properties  url points tp production server
             EP installed on unix system.
    Regards
    K Naveen Kishore.
    Edited by: Naveen Kishore on Feb 22, 2011 8:16 AM

    Hello Lorcan,
    the issue is solved  without applying the note.
    once i have restarted the server it is working fine now.
    thankyou.
    Regards
    K Naveen Kishore.

  • I want to capture system message during data upload.

    Hello,
    I want to capture system message during data upload.
    How should I do this?
    suppose during call transaction system shows message:-
    " Info record for vendor 102925 and material DYND80000 does not exist"
    then How can I get that message?

    Hi Megha,
    CALL TRANSACTION tcode USING i_bdcdata
                              MODE lws_mode
                            UPDATE lws_update
                          MESSAGES INTO <b>i_messages.</b>
      CLEAR wa_error.
      IF sy-subrc NE 0.
        cnt_failed = cnt_failed + 1.
        wa_error-status = c_fail.
        LOOP AT i_messages . "WHERE msgtyp EQ 'E' OR msgtyp = 'A'.
          flg_fail = c_x.
    *---Calling FM to get for Error Message Text
          <b>CALL FUNCTION 'MESSAGE_PREPARE'  </b>                     "#EC *
            EXPORTING
              language               = 'E'
              msg_id                 = i_messages-msgid
              msg_no                 = i_messages-msgnr
            IMPORTING
              msg_text               = lws_text
            EXCEPTIONS
            function_not_completed = 1      " Invalid Date Error Description
              message_not_found      = 2
              OTHERS                 = 3.
    <b>Reward points if this helps.
    Manish</b>

  • Columns Required during Data upload in DTW

    Hi,
    How can we know which column is required during an upload of opening balances in DTW?
    I am trying to Upload BP balances, but if the required columns are left empty, the upload does not happen.
    Jyoti

    Check this WIKI which explains 'How can I determine which fields are mandatory in a Data Transfer Workbench (DTW) template? '
    [https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=36438280]

  • All my ipod files were erased during an upload

    I have never had trouble uploading my ipod until this morning when I was putting several new albums on it, it said they were done uploading so when I clicked on my ipod in iTunes to check if all of them were there, and it hadn't actually done anything. During an upload it said that an artwork file was corrupted. I looked at my iPod and the 'do not disconnect' message was frozen, so I unplugged it and restarted it. When I turned it back on and went to my music, everything was gone instead of the files I just tried to upload. I was using my ipod as a hard drive so none of my files were backed up. I always have had it manually upload songs onto it instead of it automatically copying my library on this computer. I know that my other files are pretty much lost but how did this happen? If it was a specific file how do I locate it and if I don't delete it, will it happen again? I'm so mad right now, I had a 9 hour flight tommorow and I lost over 2000 songs.

    Hello Michael,
    See this older thread from another forum member Zevoneer discussing the various methods for transferring content from your iPod to your computer.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

Maybe you are looking for