Author Topic: xmi 1.0 import fails with OCL expression  (Read 1704 times)

RIL

  • EA User
  • **
  • Posts: 142
  • Karma: +3/-0
  • -- There's always a solution --
    • View Profile
xmi 1.0 import fails with OCL expression
« on: December 09, 2013, 02:48:27 am »
Hi,
[Edit: EA 10.0.1006]

I try to import a xmi file containing the following node containing an OCL expression, but I get an error:
Code: [Select]
<Foundation.Extension_Mechanisms.TaggedValue.value>firstName + ' ' + lastName</Foundation.Extension_Mechanisms.TaggedValue.value>
Error message says (translated from Swedish):

Code: [Select]
DAO.Database [3075]

Syntax error (operator missing) i the query expression "firstName + ' ' lastName".

It doesn't make sense to me, but if there's a workaround I'd appreciate to know how I could 'armor' the expression as to not upset EA.

(BTW, is EA trying to evaluate the ocl-expression or what? Why would EA care? It should just treat the TaggedValue as a string).

// Rolf
« Last Edit: December 09, 2013, 03:31:53 am by Rolf_Lampa »
-- There's always a solution --

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7732
  • Karma: +103/-18
    • View Profile
Re: xmi 1.0 import fails with OCL expression
« Reply #1 on: December 09, 2013, 08:37:54 am »
Looks like the sql wasn't escaped.
Eve

support@sparxsystems.com

RIL

  • EA User
  • **
  • Posts: 142
  • Karma: +3/-0
  • -- There's always a solution --
    • View Profile
Re: xmi 1.0 import fails with OCL expression
« Reply #2 on: December 09, 2013, 09:04:10 pm »
Quote
Looks like the sql wasn't escaped.
No workaround?
-- There's always a solution --

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7732
  • Karma: +103/-18
    • View Profile
Re: xmi 1.0 import fails with OCL expression
« Reply #3 on: December 10, 2013, 08:22:39 am »
If the problem is what I've guessed then I would recommend reporting it as a bug through the support form at the bottom of this page.

But if you want a workaround for handling this now the best you can do is to pre-process the XMI to add the appropriate escape sequences.
Eve

support@sparxsystems.com