No announcement yet.
  • Filter
  • Time
Clear All
new posts

    Export of List Grid giving error


    I am trying to export a grid and it exports an empty file with just have the headers.

    Attaching the snapshot of the grid I'm trying to export.

    I get the below error on the console.

    `java.lang.IllegalArgumentException: Invalid column index (-1). Allowable column range for EXCEL2007 is (0..16383) or ('A'..'XFD') at org.apache.poi.xssf.streaming.SXSSFRow.checkBounds( at org.apache.poi.xssf.streaming.SXSSFRow.createCell( at org.apache.poi.xssf.streaming.SXSSFRow.createCell( at org.apache.poi.xssf.streaming.SXSSFRow.createCell( at com.isomorphic.rpc.ExcelDataExport.outputHeaderSpans( at com.isomorphic.rpc.ExcelDataExport.outputHeaders( at com.isomorphic.rpc.ExcelDataExport.getExportObject( at com.isomorphic.rpc.DataExport.exportResultSet( at com.isomorphic.rpc.DataExport.exportResultSet( at com.isomorphic.rpc.RPCManager.completeResponse( at com.isomorphic.rpc.RPCManager.send( at com.isomorphic.rpc.RPCManager.processRPCTransaction( at at$$FastClassBySpringCGLIB$$e4c0cd01.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke( at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint( at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation( at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction( at org.springframework.transaction.interceptor.TransactionInterceptor.invoke( at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept( at$$EnhancerBySpringCGLIB$$6a9e5af7.processQueue(<generated>) at com.assaabloy.common.server.servlet.IDACallWithErrorsAndTransactions.processRPCTransaction( at com.isomorphic.servlet.IDACall.processRequest( at com.isomorphic.servlet.IDACall._processRequest( at com.isomorphic.servlet.IDACall.doPost( at javax.servlet.http.HttpServlet.service( at com.isomorphic.servlet.BaseServlet.service( at javax.servlet.http.HttpServlet.service( at org.eclipse.jetty.servlet.ServletHolder.handle( at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter( at at org.springframework.web.filter.OncePerRequestFilter.doFilter( at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter( at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal( at org.springframework.web.filter.OncePerRequestFilter.doFilter( at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter( at com.isomorphic.servlet.CompressionFilter._doFilter( at com.isomorphic.servlet.BaseFilter.doFilter( at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter( at org.eclipse.jetty.servlet.ServletHandler.doHandle( at org.eclipse.jetty.server.handler.ScopedHandler.handle( at at org.eclipse.jetty.server.session.SessionHandler.doHandle( at org.eclipse.jetty.server.handler.ContextHandler.doHandle( at org.eclipse.jetty.servlet.ServletHandler.doScope( at org.eclipse.jetty.server.session.SessionHandler.doScope( at org.eclipse.jetty.server.handler.ContextHandler.doScope( at org.eclipse.jetty.server.handler.ScopedHandler.handle( at org.eclipse.jetty.server.handler.HandlerWrapper.handle( at org.eclipse.jetty.server.handler.RequestLogHandler.handle( at org.eclipse.jetty.server.handler.HandlerWrapper.handle( at org.eclipse.jetty.server.Server.handle( at org.eclipse.jetty.server.HttpChannel.handle( at org.eclipse.jetty.server.HttpConnection.onFillable( at$ at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( at org.eclipse.jetty.util.thread.QueuedThreadPool$ at`

    There are only 20 columns on the UI, but still, this gives an error. This used to work perfectly in the previous version.

    If I remove 5 columns from the grid, namely: "Used, Modifiers, UOM, Attachment, Cost+Modifiers, Attachment(one with pin icon)" this works fine.

    SmartgwtVersion: 12.1-p20201118

    Attached Files

    any update on this?


      Sorry for the delay: no, we have not imposed a new 20 column limit (obviously), in fact, nothing relevant has changed in the export code in a long time, no other users are reporting a similar problem, and much larger exports are working fine, as you can also readily determine by adding more columns to Showcase examples.

      Our only guess is that one of your field definitions is invalid and has always been invalid (for example: perhaps is not a valid JavaScript identifier, or field.title has garbage high-ascii characters) and this is the first time you've noticed the problem.

      We will need a way to reproduce the problem if you want us to look further.


        This error came due to Header Spans in the grid. Remove custom fields from header span that are not in Datasource. and use
        ; property


          Thanks for finding the source of the problem. Now we are working on a fix to address it.

          Isomorphic Software


            Are you calling exportData()? If you want fields which are not in the DS to appear in the export, you need to use exportClientData() instead, and that seems to work as expected in our testing.

            If you're already calling exportClientData() and still see this problem, please show test-code we can run to see the issue.

            In the meantime, we'll look into handling this situation better.


              Note that we've made a framework change to deal with this - client-only fields (not in the DataSource) will now be ignored by exportData(), along with client-side formatting - we've updated the doc to cover this.

              If you want client-only fields to be included, use exportClientData() instead of exportData().

              You can test the changes in builds of 12.0 and higher, dated February 21 and later.