ACLI not importing CSV

Started by Stanley, June 12, 2018, 21:00:39 PM

Previous topic - Next topic

Stanley

Hi!

We are using Archi 4.2 ACLI with the following CL:

Archi -application com.archimatetool.commandline.app -consoleLog -nosplash --loadModel Metamodel.archimate --csv.import elements.csv

receiving the messages:

[Core] Loaded model: 'Metamodel'
[CSV] Importing csv from elements.csv to 'Metamodel'
[CSV] CSV Imported!

However

elements.csv are not imported at all!

Are we missing something?

Phil Beauvoir

How do you know that the file is not imported?

Please provide more information about what you expect to happen, and what actually happens.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Jean-Baptiste Sarrodie

Hi,

You don't seem to use any option to actually save the model after importing the CSV.

Can you retry with a save ?

Regards

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Phil Beauvoir

It's probably worth importing that csv file into Archi itself to see what's going on.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Stanley

Quote from: Phil Beauvoir on June 12, 2018, 21:04:45 PM
How do you know that the file is not imported?

Please provide more information about what you expect to happen, and what actually happens.

Because the model has not the information provided in elements.csv.

Actually, we expected all the data in csv loaded into the model.

Phil Beauvoir

> It's probably worth importing that csv file into Archi itself to see what's going on.

> You don't seem to use any option to actually save the model after importing the CSV. Can you retry with a save ?
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Stanley

Quote from: Jean-Baptiste Sarrodie on June 12, 2018, 21:23:34 PM
Hi,

You don't seem to use any option to actually save the model after importing the CSV.

Can you retry with a save ?

Regards

JB

Well, that could be the cause of the problem, how do I save it?
I found no option at the documentation.

Phil Beauvoir

If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Stanley

Quote from: Phil Beauvoir on June 13, 2018, 13:18:04 PM
> It's probably worth importing that csv file into Archi itself to see what's going on.

> You don't seem to use any option to actually save the model after importing the CSV. Can you retry with a save ?

I did it, and by using the GUI it imported CSV without a glitch.
However, ACLI does not import it.


Stanley

Is there a way to import CSV keeping ANSI encoding?

Jean-Baptiste Sarrodie

June 13, 2018, 13:33:10 PM #11 Last Edit: June 13, 2018, 13:37:07 PM by Jean-Baptiste Sarrodie
Hi,

Quote from: Stanley on June 13, 2018, 13:31:05 PM
Is there a way to import CSV keeping ANSI encoding?

Have you tested this:
--csv.exportEncoding <encoding>


Maybe worth reading this wiki page in depth ;-)

Edit: Maybe worth me reading your message in depth as obviously this option is for export while you're looking at import ;-)

Regards

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Phil Beauvoir

Quote from: Stanley on June 13, 2018, 13:31:05 PM
Is there a way to import CSV keeping ANSI encoding?

Imported file to be UTF-8 encoding.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Stanley

Quote from: Phil Beauvoir on June 13, 2018, 13:34:21 PM
Quote from: Stanley on June 13, 2018, 13:31:05 PM
Is there a way to import CSV keeping ANSI encoding?

Imported file to be UTF-8 encoding.

UTF-8 did not work but UTF-8 BOM did.