Validation error after File upload

HI,
I am using a file upload functionality in OAF page.
When i browse for the required excel file and click on browse, the data is popluated on the oaf page.
I have 2 lov fields on page - say a & B.
B is a dependent LOV on A.
I have a validate button on my page which gets enabled only after file upload and validates if the data is correct or not.
The issue is like if i am having value in upload file for A as 1 and for B as 1800, but my LOV B has 2 values 1800 & 1800-01 for LOV A = 1, it gives me an error at that LOV "Select a Valid Value". If i open the LOV B window and select 1800 from it the data is correctly validated without any error.
Please help me that how can i rectify this error i.e. it should validate the data corrrectly if i pass the value 1800 to it thru excel sheet.

See take an example of Employee name LOV .We know for every employee a unique emp Id is related to it.So if two person are having same name also then also their ID is different.In such cases , while creating LOV we create a FormValue for EmpID .Its not visible on Page but while validating the page formValues are also considered thereby it doesnot cause invalid value error...
In Your case, what you can do is the way you are populating the LOV field you can populate this FormValue to remove the Error.
Please Refer Jdev Guide for more info..
Hope it helps!!!
Thanks
AJ

Similar Messages

  • Pls help, (Access is denied) error when file upload to a local directory

    Hi, I've been stuck on this for the past few days and I am quite new at developing web application.
    Here is the problem that I am having, I don't know why it keeps on saying "access is denied" when I can see that the file is uploaded to the directory. I am developing a JSP page file upload using Jakarta Fileupload v1.2. However, every time when I try to upload a file to a local path (e:\temp) on the server I keep getting this problem. I even try looking into the server.policy file on glassfish but no luck, your help is appreciated thanks
    Here's the log after file upload, note: I can see the file being uploaded in the e:\temp but why does it keep telling me the error?
    I'm using netbean 5.5.1 and glassfish v2
    Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/TestReport'
    java.io.FileNotFoundException: e:\temp (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:390)
    at org.apache.jsp.ProcessFileUpload_jsp._jspService(ProcessFileUpload_jsp.java:83)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:345)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)

    Hi, I've been stuck on this for the past few days and
    I am quite new at developing web application.
    Here is the problem that I am having, I don't know
    why it keeps on saying "access is denied" when I can
    see that the file is uploaded to the directory. I am
    developing a JSP page file upload using Jakarta
    Fileupload v1.2. However, every time when I try to
    upload a file to a local path (e:\temp)Hi there,
    Typically in a Web Container, applications are deployed to a folder called webapps (this is the case in Tomcat, I'm not sure about Glassfish)
    So the directory structure is something like C:/Tomcat/webapps/MyApplication/other folders......
    When you upload a file , you normally can upload it only to a folder under your application and not to a folder outside the application.
    First you can try to upload the file to a folder under the webapp and not outside the webapp, once you get that to work --- then internally in the Servlet you can write code to save the file to any directory on the server, but the Servlet must be located on the server.

  • I am getting this error while file uploading

    Hi!
    I am getting this error while file uploading,I can't find any solution.
    SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
    at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Please help me.I have attached the bean,action ,jsp pages
    uploadInfo.jsp
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html:html>
    <HEAD>
    <script>
    function submitting(){
    document.uploadForm.operation.value = "uploadOrgAdj";
    document.uploadForm.action = "/uploadRecAction.do";
    document.uploadForm.submit();
    </script>
    </HEAD>
    <body>
    <html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
    Select the .xls File to upload data
    <html:file property="fileName"></html:file>
    <html:hidden property="operation" value=""/>
    <html:button property="btn" value="Submit" onclick="submitting()"></html:button>
    </html:form>
    </body>
    </html:html>
    uploadAdjForm :
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.upload.FormFile;
    public class uploadAdjForm extends ActionForm{
    private FormFile fileName;
    * @return
    public FormFile getFileName() {
    System.out.println("getFileName"+fileName);
    return fileName;
    * @param string
    public void setFileName(FormFile string) {
    System.out.println("setileNmame"+string);
    fileName = string;
    Action:
    public class uploadFinancialAdjAction extends DispatchAction{
    public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
    String sForward = "UploadInfo";
    HttpSession session = request.getSession();
    String sStartIndex = null;
    String sEndIndex = null;
    try
    uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
    System.out.println(UploadForm.getFileName().getContentType().toString());
    String file=UploadForm.getFileName().toString();
    uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
    ArrayList fileName = new ArrayList(); fileName = businessManager.getOrgAdjDetails(file);
    boolean isMultipart = FileUpload.isMultipartContent(request);
    if(isMultipart){
    // Create a new file upload handler
    DiskFileUpload upload = new DiskFileUpload();
    // Parse the request
    List items = upload.parseRequest(request);
    //Process the uploaded items
    Iterator iter = items.iterator();
    while (iter.hasNext()) {
    FileItem item = (FileItem) iter.next();
    if (item.isFormField()) {
    //processFormField(item);
    if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){
    sStartIndex = item.getString();
    else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
    sEndIndex = item.getString();
    uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
    String file=UploadForm.getFileName().toString();
    uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
    ArrayList fileName = new ArrayList();
    fileName = businessManager.getOrgAdjDetails(file);
    }else{
    if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
    throw new Exception("Please browse an excel file and Upload");
    session.setAttribute("fileItem",item);
    }//end of while
    session.setAttribute("startIndex",sStartIndex);
    session.setAttribute("endIndex",sEndIndex);
    request.setAttribute("FileUploadStatus","true");
    else{
    throw new Exception("Error:Form is not multipart");
    catch(Exception e)
    System.out.println(e);
    return mapping.findForward(sForward);
    }

    Plz answer for my question

  • Getting error while file uploading in struts

    Hi!
    I am getting this error while file uploading,I can't find any solution.
    SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax&#40;I&#41;V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
         at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Please help me.I have attached the bean,action ,jsp pages
    uploadInfo.jsp
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html:html>
    <HEAD>
    <script>
    function submitting(){
    document.uploadForm.operation.value = "uploadOrgAdj";
    document.uploadForm.action = "/uploadRecAction.do";
    document.uploadForm.submit();
    </script>
    </HEAD>
    <body>
    <html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
    <b>Select the .xls File to upload data </b>
    <html:file property="fileName"></html:file>
    <html:hidden property="operation" value=""/>
    <html:button property="btn" value="Submit" onclick="submitting()"></html:button>
    </html:form>
    </body>
    </html:html>
    uploadAdjForm :
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.upload.FormFile;
    public class uploadAdjForm extends ActionForm{
         private FormFile fileName;
              * @return
              public FormFile getFileName() {
                   System.out.println("getFileName"+fileName);
                   return fileName;
              * @param string
              public void setFileName(FormFile string) {
                   System.out.println("setileNmame"+string);
                   fileName = string;
    Action:
    public class uploadFinancialAdjAction extends DispatchAction{     
         public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
              String sForward = "UploadInfo";               
              HttpSession session = request.getSession();          
              String sStartIndex = null;
              String sEndIndex = null;
    try
         uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
         System.out.println(UploadForm.getFileName().getContentType().toString());
         String file=UploadForm.getFileName().toString();     
    uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
         ArrayList fileName = new ArrayList();                                   fileName = businessManager.getOrgAdjDetails(file);
              boolean isMultipart = FileUpload.isMultipartContent(request);
              if(isMultipart){
              // Create a new file upload handler
              DiskFileUpload upload = new DiskFileUpload();
              // Parse the request
              List items = upload.parseRequest(request);
              //Process the uploaded items
              Iterator iter = items.iterator();
              while (iter.hasNext()) {
                   FileItem item = (FileItem) iter.next();
                   if (item.isFormField()) {          
              //processFormField(item);
              if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){          
                   sStartIndex = item.getString();          
              else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
                             sEndIndex = item.getString();          
    uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
                             String file=UploadForm.getFileName().toString();               
              uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
                             ArrayList fileName = new ArrayList();
                             fileName = businessManager.getOrgAdjDetails(file);
              }else{
                   if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
              throw new Exception("Please browse an excel file and Upload");
              session.setAttribute("fileItem",item);
              }//end of while
              session.setAttribute("startIndex",sStartIndex);
              session.setAttribute("endIndex",sEndIndex);
              request.setAttribute("FileUploadStatus","true");
              else{
              throw new Exception("Error:Form is not multipart");
    catch(Exception e)
         System.out.println(e);
         return mapping.findForward(sForward);
    }

    ORA-06512: at "PREPRD.OIM_SP_RECONARCHIVAL", line 722
    ORA-00942: table or view does not exist
    ORA-01031: insufficient privileges
    (1) Check whether the OIM_SP_RECONARCHIVAL table or view exists or not...
    (2) If it exists, check whether the DEV_OIM user has enough privilege to view this table or not...
    If not, give it all privilege by login as sys as sysdba
    GRANT ALL PRIVILEGES TO DEV_OIM;
    COMMIT;

  • Unknow error in file upload:

    Hi,
    I am doing a file upload using a multi part form page and a servlet. I am also doing file size validation and redirecting the user to the same page with error message if size is more than 20 KBs.This is potentially to avoid users from trying to upload huge files and flood the system.
    But if the upload file size is more that 30 KBs, it looks like the server(weblogic 5.1) does something crazy.
    1) Netscape throws the following error message "Connection Reset By Peer".
    2) IE throws "Page cannot be displayed".
    The servlet size is 7 KBs.Is this something to do with the size or stream being forwarded back to the browser and the server not able to handle this?
    Any thoughts!

    get the book, "java for the web with servlets, jsp, and ejB: a developer's buide to j2ee solutions written by Budi Kurniawan which has one chapter specifically dedicated to doing file upload and download.

  • Error on File upload. Error processing wwv_flow.accept.

    Hi,
    I'm developing an application to upload and download files using Oracle XE 10g and APEX 3.2.0.00.27 on OS Windows XP.
    The file upload page is very simple: one file browse item, a submit button and a report based on the wwv_flow_files table.... and an extra button to save the uploaded files in the DB.
    Sometimes (almost everytime) when I press the submit button, the wwv_flow.accept process fails and I'm redirected to a page saying Internet Explorer cannot display the webpage.
    I'm forced to refresh the page and then I get the following message:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept.
    I recreated the same page in the apex.oracle.com environment and it works, but it fails in my local environment.
    I have read some posts int his forum, but I haven't found an answer yet.
    Please help!!!
    AUJ

    varad acharya wrote:
    Download the standalone OHS.
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    varadSorry about this...old post and off topic.
    Can anyone point me to a standalone version of OHS for linux x86-64? I'm having troubles finding this, it doesn't appear to have installed with 11g Enterprise Edition and I cannot find it in the available packages when I re-run the installer. I'm running 11g EPG now and want to convert to Apache.
    Thanks!!!

  • FTP Validation error after updating to Muse 2014 - What am I missing?

    I've updated from Muse CC to Muse 2014 as part of creative cloud. However, I'm now getting a validation error when I try to upload the site via ftp. I've checked all the fields. Any ideas?
    This works with Muse CC:
    This doesn't work with Muse 2014:
    Thanks for any help!

    Hi Kieran,
    What happens when you enter, 'murphysicecream.ie' in the domain name?
    - Abhishek Maurya

  • Error in file upload. There is not enough space in the file system

    Hello,
    The excel file upload functionality was working fine till now. there is error for all the users that there is no space in file system
    Kindly help, is this basis issue ?
    thank you
    B

    Hi ,
    Please verify on the space in temporary directory which is used on server side (on the engine where this webdynpro java application is running)
    When file is up loaded WD java runtime uses temporary directory of Java runtime to store/read this data .
    Clear all temporary directory folders/check whether directory has Read/Write permission(OS level ) assigned to it .
    Regards,
    Rakeh Kumar

  • Error while file upload by FM "TEXT_CONVERT_XLS_TO_SAP"

    HI all,
    I need to upload an excel file to SAP system ,for the same i am using the FM TEXT_CONVERT_XLS_TO_SAP in following way.
    TYPE-POOLS truxs.
    DATA: lv_raw      TYPE truxs_t_text_data.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
           EXPORTING
                i_field_seperator    = 'X'  "is an .xls file
                i_line_header        = 'X'  "has a header line
                i_tab_raw_data       = lv_raw
                i_filename           = v_file
           TABLES
                i_tab_converted_data = etd_itab
           EXCEPTIONS
                conversion_failed    = 1
                OTHERS               = 2.
    But i get sy-subrc = 1,which is conversion error.
    The structure of the etd_itab is same as the excel file ,even the field names are same ,still i wonder why should the conversion error been encountered .
    Am i missing on anything ?
    Please comment.
    Thanks,
    Swati

    Hi ,
    The structure of my excel file and the data is as follows
    PO_NO           Item      Div     Material                    Vend        PO_Date              PO Bal.
    4400000001      10     C     SVC-PART-01     BCCS     2006.10.29     12
    4500000348      10     L     BA41-00383A     BCCS     0     
    Following is the program flow
    TYPES :   BEGIN OF        gt_etd      ,
               po_no                LIKE   ekpo-ebeln,
               item                 LIKE   ekpo-ebelp,
               div                  LIKE mara-spart,
               material             LIKE kondd-smatn,
               vend                 LIKE   ekko-lifnr,
               po_date              LIKE   ekpo-aedat,
               po_bal               LIKE   ekpo-menge,
              delivery_date           LIKE   ekes-eindt,
              END OF gt_etd.
    DATA: etd_itab TYPE STANDARD TABLE OF gt_etd WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pcfile.
      CALL FUNCTION 'WS_FILENAME_GET'
           EXPORTING
                def_filename     = '.xls'
                def_path         = 'C:\'
                mask             = ',.txt;.xls,.txt;.xls.'
                mode             = 'O'
                title            = ' '
           IMPORTING
                filename         = pcfile
           EXCEPTIONS
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                OTHERS           = 5.
    IF pcfile IS INITIAL.
        WRITE: / 'SELECT UPLOAD FILE !'.
      ELSE.
        MOVE pcfile TO v_file.
      ENDIF.
    *ETD file upload
      CLEAR: lv_raw, etd_itab[].
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
           EXPORTING
                i_field_seperator    = ' '  "is an .xls file
                i_line_header        = ' '  "has a header line
                i_tab_raw_data       = lv_raw
                i_filename           = v_file
           TABLES
                i_tab_converted_data = etd_itab
           EXCEPTIONS
                conversion_failed    = 1
                OTHERS               = 2.
    Please advice ,why am i getting conversion error.
    Thanks a lot .

  • IO Error after FileReference.upload()

    I was working with FileReference to upload to an server and
    the upload was successfully completed, but for some reason I was
    getting an IOErrorEvent.IO_ERROR after the upload and the
    Event.COMPLETE / DataEvent.COMPLETE do not dispatch.
    I found the solution to create an .htaccess file with:
    SECFILTERENGINE OFF
    SECFILTERSCANPOST OFF
    ... but my host will not do this.
    Is there a way to fix it?
    _steffen

    Hi Steffen,
    I've not seen this problem. Could you please provide a little
    more information? What is the backend server platform you're using?
    PHP, ColdFusion, ASP, ... ?
    Also, have you listened to the HTTP_RESPONSE_STATUS event,
    and examined some the status property?
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/HTTPStatusEvent.htm l
    -Erica

  • Validation Errors after placing Fireworks html - ?

    I search for an explanation and hope this  has not been beaten enough already BUTI ask for some help.
    It was pointed out to me that a site I have been updating has 21 errors after looking at  The W3C Validation as I peruse the perhaps embarrisingly long list - I note that all but a few are due to errors in my placed fireworks html - used for menus etc.
    Line 120,         Column 117:     ID "undefined_2" already defined…"" name="undefined_2" width="93" height="1" border="0" id="undefined_2" /></td>

    An "id" is a unique identifier. Each time this attribute is used in a document       it must have a different value. If you are using this attribute as a hook for       style sheets it may be more appropriate to use classes (which group elements)       than id (which are used to identify exactly one element).
    Almost all the errors revolve around undefined
    <td><img src="_images/New navhead/spacer.gif" alt="" name="undefined_2" width="15" height="1" border="0" id="undefined_2" /></td>
    I would like to correct the error but am at a loss as to how to resolve it - I don't recall seeing any suggestions when making the menu, or a place for input to define  (if I could)
    the pages were defined as xhtml 1.0 transitional
    Yes this may sound like a plea for help - And thank you for your patience and help
    Greg

    "Easier" doesn't always mean "better".  If you take a look at the code you've supplied, you'll see that this is being caused by the inclusion of spacer gifs - which also means a table based layout as well - again, not best practices. The source code on the sample site you've provided is quite bloated for just that top menu and a great deal of that code is just for spacer gifs to hold the table open.
    If you're builidng sites professionally I'd recommend learning how to do  things in a best practices manner and generally that means using an unordered list along with CSS for styling the navigation. You'll waste more time trying to fix the FW menus than you will learning to do things in a best practices manner. Way less code and a much more accessible menu. It's not that hard; I can get students creating CSS menus in under 3 hours when they've never done it before. If you're looking for easy without digging into the code yourself, consider commercial options such as the huge variety of CSS-based menus found at projectseven.com. They're well made, accessible and plug into Dreamweaver.
    If it's just a hobby, then don't worry about it. As long as it works, you're fine.

  • Bug? WWV_FLOW_FILES: After File upload FLOW_ID = 0

    Hi all,
    I'm working on a DEVenabled -Environment with APEX 3.1.2.
    Problem
    While redesigning an Application I have somke strange behaviour on File Upload:
    The application uses a custom auth scheme.
    In my application an uploaded file should be moved to a user defined BlobStorage and be deleted from APEX_FILES afterwards.
    This does not work any more:
    When uploading a file to APEX_FILES using the upload-element from an application no further processing is possible.
    What is loaded ?
    On wwv_flow_files the FLOW_ID is recorded as 0 and not as the ID of that Application Files have been loaded from.The Attribute 'created_by' contains APEX_PUBLIC_USER where the User logged in is needed.
    As it is APEX INTERNAL stuff, which seems not to work as expected, i need some help.
    How to fix this ?
    regards
    Franz

    Mark,
    what is the workaround for this?I don't understand what you need a workaround for. No workaround was given for any actual or perceived problems discussed here so far. I proposed that the proper steps are to upload to, copy from, and then remove from the public table.
    I started having this problem, where the flow_id and security_id are now coming up as 0You started having it at a point where you were not having it previously? That isn't very clear. You are implying that flow_id was non-zero at some point, I think.
    If security_group_id is 0 then this isn't the same situation as we've been discussing in this thread. Please explain exactly what you're doing and show all related code.
    Scott

  • IS - XML validation error for file task.xml. (COR-10142)

    Hi,
    I am facing an issue while running column profile task on a text file.
    Version of BODS components below:
    IPS: IPS 4.1 SP2
    DS: DS 4.2 SP1
    IS: IS 4.2 SP1(14.2.1.220)
    All the above components are installed on linux RHEL 6.5 machine(single machine).
    Attached the error log file.
    Appreciate the quick response.
    Thanks,
    Lokesh

    Hi Lokesh,
    Check the KBA  1931128 which may help you to resolve your issue.
    Thanks,
    Ramakrishna Kamurthy

  • Validation Error after updating a SelectOneMenu via Ajax (DWR)

    I have a <t:selectOneMenu> that is bound to a backing bean together with a <f:selectItems> that is bound to a SelectItems[] attribute in the same backing bean. See below:
    <t:selectOneMenu forceId="true"
    id="department"
    value="#{DeptBean.departmentId}">
    <f:selectItems value="#{DeptBean.departmentList}" />
    </t:selectOneMenu>
    When the user changes another field on my page, I use DWR to retrieve a new list of departments and update the <t:selectOneMenu> accordingly. That works just fine.
    The problem is that if I select a value from the updated department list and then submit the page I get a "Validation Error".
    I suspect that the JSF Component Tree still has the old list of values and does some validation which obviously fails.
    Has anyone dealt with this before? Any ideas would be appreciated!

    <t:selectOneMenu forceId="true"
    id="department"
    value="#{DeptBean.departmentId}">
    <f:selectItems value="#{DeptBean.departmentList}"
    />
    </t:selectOneMenu>What is the type of departmentId ? If it is not a String, then try making it a String and see if the issue is resolved. I am not sure if this will help you. But its worth a try.

  • Coldfusion MX7 error with file upload

    Hi all,         I am using coldfusion mx7 server. While upload an excel file with(97-2003) format, I am getting the following error:  Unable to construct record instance, the following exception occured: null
    I am getting this error when I enters some data and save in my  desktop with the format(97-2003) and after using a cfx tag to dump the  uploaded data, I am getting this error. But if I just upload the  template only without entering any data it will shows/dump the column  names in template..
    Is there any way to upload the same excel file with MX7?
    Thanks in advance

    To answer your final question: yes of course it's possible to upload any file type with any version of CF.  One has no dependency on the other.
    As for the rest of it: without seeing some code, it's impossible to really:
    a) understand what you're asking;
    b) work out what might be causing the problem.
    Adam

Maybe you are looking for

  • Error when trying to sign documents

    I started getting the following message when trying to sign documents:The Windows Cryptographic Service Provider reported an error: Key not valid for use in specified state. Error Code 2148073403 . Any help would be appreciated Thank you

  • HT201343 MacBook Pro & Apple TV

    have an apple TV. My MacBook Pro sees the apple TV in iTunes, but no where else. how can i see my desktop on my apple TV?

  • Scrolling to Standard table in web dynpro abap

    Hi Frnds,           HI have created table i need for that scroll vertically and horizontally , as per frnds suggestion keeping in webdynpro application adding the parameters wddonavigator but its getting error can any please explain clearly and any s

  • [SOLVED]Wireless connection becomes deactivated 3 seconds

    Good day, I am new to Arch. I installed Arch successfully and have everything working except the wifi. My WLAN device is Broadcom's BCM4312 and I have installed b43 driver from AUR.  Wired eth0 connection works fine but when I connect using wireless,

  • NOKIA X6 PROBLEM!

    I'm having a problem with my Nokia X6. Whenever I get a phone call the number does not appear. It just says 'call'. If I get a missed call the number does not appear in the log either. Please help!