Excel/CSV Import shows error "null" on Import Data step

Other topics that do not fit in any of categories.

Moderator: Moderators

Excel/CSV Import shows error "null" on Import Data step

Postby ahlstrom_christopher@bah.com » Wed Dec 19, 2018 10:34 am

I have a simple set of Excel data (name and cost) and want to import the data into OperationalActivityProperties elements. I am following the steps related at https://docs.nomagic.com/display/EI182/ ... from+Excel

The mapping is shown in the attached diagram; I made the two connections manually.

When I "Finish" the third step, importing the data, I get a simple timestamp and "Error: null". Here is the log at that time:

-------------------------------------
2018-12-19 11:16:57,373 [AWT-EventQueue-0] INFO MODELSESSION - Starting session
2018-12-19 11:16:57,373 [AWT-EventQueue-0] INFO COMMANDS - CLOSE COMMAND IN COMMAND HISTORY - 'Move Property PropCost'
2018-12-19 11:16:57,375 [AWT-EventQueue-0] INFO MODELSESSION - Closing session
2018-12-19 11:17:00,074 [AWT-EventQueue-0] INFO MODELSESSION - Starting session
2018-12-19 11:17:00,074 [AWT-EventQueue-0] INFO COMMANDS - CLOSE COMMAND IN COMMAND HISTORY - 'Move Property PropID'
2018-12-19 11:17:00,076 [AWT-EventQueue-0] INFO MODELSESSION - Closing session
2018-12-19 11:17:02,442 [AWT-EventQueue-0] INFO MODELSESSION - Starting session
2018-12-19 11:17:02,443 [AWT-EventQueue-0] INFO COMMANDS - CLOSE COMMAND IN COMMAND HISTORY - 'Move Property PropActivity'
2018-12-19 11:17:02,445 [AWT-EventQueue-0] INFO MODELSESSION - Closing session
2018-12-19 11:17:05,054 [AWT-EventQueue-0] INFO MODELSESSION - Starting session
2018-12-19 11:17:05,054 [AWT-EventQueue-0] INFO COMMANDS - CLOSE COMMAND IN COMMAND HISTORY - 'Move Property PropName'
2018-12-19 11:17:05,056 [AWT-EventQueue-0] INFO MODELSESSION - Closing session
2018-12-19 11:17:06,023 [AWT-EventQueue-0] INFO MODELSESSION - Starting session
2018-12-19 11:17:06,023 [AWT-EventQueue-0] INFO COMMANDS - CLOSE COMMAND IN COMMAND HISTORY - 'Move Property PropActivity'
2018-12-19 11:17:06,025 [AWT-EventQueue-0] INFO MODELSESSION - Closing session
2018-12-19 11:17:51,576 [AWT-EventQueue-0] INFO GENERAL - Action SAVEASJPGALL execution time: 29.495
2018-12-19 11:18:11,566 [AWT-EventQueue-0] INFO MODELSESSION - Starting session
2018-12-19 11:18:32,693 [AWT-EventQueue-0] INFO COMMANDS - CLOSE COMMAND IN COMMAND HISTORY - '[Excel Import] Create elements'
2018-12-19 11:18:32,695 [AWT-EventQueue-0] INFO MODELSESSION - Closing session
2018-12-19 11:18:32,813 [pool-MagicDraw-thread-134:Import data from file.] ERROR com.nomagic.magicdraw.excelimport.excel183o.excel183g - Unsupport element from profile: com.nomagic.uml2.ext.magicdraw.classes.mdkernel.impl.DataTypeImpl@d69159c4
2018-12-19 11:18:32,813 [pool-MagicDraw-thread-134:Import data from file.] ERROR com.nomagic.magicdraw.excelimport.excel183o.excel183g - Cannot find target element of class mapping element _19_0_4290135_1545236189662_367602_143457
2018-12-19 11:18:32,814 [pool-MagicDraw-thread-134:Import data from file.] ERROR com.nomagic.magicdraw.excelimport.excel183n.excel183a - [EXCEL IMPORT] null
2018-12-19 11:18:32,814 [pool-MagicDraw-thread-134:Import data from file.] ERROR com.nomagic.magicdraw.excelimport.excel183h.excel183g -
java.lang.NullPointerException
at com.nomagic.magicdraw.excelimport.excel183f.excel183b.excel183b.excel183a(excel183b.java:71)
at com.nomagic.magicdraw.excelimport.excel183h.excel183g.excel183c(excel183g.java:167)
at com.nomagic.magicdraw.excelimport.excel183h.excel183g$excel183a.execute(excel183g$excel183a.java:109)
at com.nomagic.task.Task.construct(Task.java:191)
at com.nomagic.task.SwingWorker$2.call(SwingWorker.java:213)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.nomagic.task.SwingWorker$SwingWorkerFuture.run(SwingWorker.java:600)
at com.nomagic.task.BackportedThreadPoolExecutor$Worker.runTask(BackportedThreadPoolExecutor.java:1583)
at com.nomagic.task.BackportedThreadPoolExecutor$Worker.run(BackportedThreadPoolExecutor.java:1614)
at com.nomagic.task.PooledThread.run(PooledThread.java:64)

-------------------------------------

I did verify that the whole process as described at the link does work for importing to the Requirements class.

This is on MagicDraw 19.0, UAF 19.0, JVM 1.8.0_172, and Excel Import 19.0.

Is this a bug, or a restriction of the plugin?

Thanks!

Chris
You do not have the required permissions to view the files attached to this post.
ahlstrom_christopher@bah.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Thu Dec 13, 2018 10:37 am

Return to Other

Who is online

Users browsing this forum: No registered users and 1 guest