hansva opened a new issue, #1915:
URL: https://github.com/apache/hop/issues/1915

   ### Apache Hop version?
   
   SNAPSHOT-20221206
   
   ### Java version?
   
   11
   
   ### Operating system
   
   macOS
   
   ### What happened?
   
   When pressing export to excel button in preview grid an exception is thrown 
on converting dates.
   
   ### Stacktrace
   
   ```
   org.apache.hop.core.exception.HopValueException: 
   cell String : couldn't convert string [1989/09/22 07:45:00] to a date using 
format [yyyy/MM/dd HH:mm:ss.SSS] on offset location 19
   1989/09/22 07:45:00
   
        at 
org.apache.hop.core.row.value.ValueMetaBase.convertStringToDate(ValueMetaBase.java:1082)
        at 
org.apache.hop.core.row.value.ValueMetaBase.getDate(ValueMetaBase.java:2578)
        at 
org.apache.hop.core.row.value.ValueMetaBase.convertData(ValueMetaBase.java:4170)
        at 
org.apache.hop.ui.core.widgets.TableViewExportToExcelToolbarButton.copyToNewGoogleDocsSpreadsheet(TableViewExportToExcelToolbarButton.java:127)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.apache.hop.ui.core.gui.BaseGuiWidgets.lambda$getListener$1(BaseGuiWidgets.java:202)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4577)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4363)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3939)
        at 
org.apache.hop.ui.core.dialog.BaseDialog.defaultShellHandling(BaseDialog.java:513)
        at 
org.apache.hop.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:244)
        at 
org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.showTransformOutputData(HopGuiPipelineGraph.java:1219)
        at 
org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.showTransformOutputData(HopGuiPipelineGraph.java:1149)
        at 
org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.mouseUp(HopGuiPipelineGraph.java:913)
        at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:224)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4577)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4363)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3939)
        at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:464)
        at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:351)
   Caused by: java.text.ParseException: 1989/09/22 07:45:00
        at 
org.apache.hop.core.row.value.ValueMetaBase.convertStringToDate(ValueMetaBase.java:1065)
        ... 32 more
   ```
   
   ### Reproduction Path
   
   1. open sample pipeline samples/transforms/add-a-checksum-CRC32.hpl
   2. run the pipeline using local engine
   3. preview data grid date (bottom right button)
   4. press export to excel button
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Gui


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to