Book a Demo

Author Topic: CSV import/export - strange behaviour  (Read 3661 times)

andykennelly

  • EA User
  • **
  • Posts: 54
  • Karma: +0/-0
    • View Profile
CSV import/export - strange behaviour
« on: October 21, 2014, 05:28:41 am »
I have a component with a single provided interface called IF01.
I run an extract to a CSV file to which I subsequently want to add new rows and then import back, so I carry out the following:-
I copy/paste a new row from the IF01 row.
I change the name of IF01 in the new row to IF02.
I delete the GUID on the (new) IF02 row.
I then change the Type from ProvidedInterface to Interface on both rows - (there's no good reason why I do this - I do it purely to re-create a scenario I find puzzling).
I run an import from the CSV.

Now, in the project there is a new interface (not provided interface), which is what I'd expect.
However, the original IF01 row remains a provided interface - I'm not sure  if I expect that or not. However, the really confusing thing (and the purpose of this post) is that the name of that original provided interface been updated from IF01 to IF02!!! Not what I was expecting!!
In other words, there are 2 interfaces (one provided, one "regular") in the project both called IF02.

I should, of course, have not changed the type of the original row - so the problem is one of my own making. But I'm surprised how Sparx processed the file. And, anyway, might I not legitimately be trying to update the element type via CSV import???

Anybody been here before? Is this a feature of CSV export/import when used in this way?

Sparx Help doesn't seem to cover this specific (unusual) scenario.
« Last Edit: October 21, 2014, 04:32:17 pm by andykennelly »