Book a Demo

Author Topic: DAO.Recordset [3077] error: XML Schema import  (Read 5331 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
DAO.Recordset [3077] error: XML Schema import
« on: August 20, 2015, 12:27:00 am »
Hi,

I starting using the Schema composer and XML Schema import features as I need to import XSD files (not generated with EA).
As I had error messages, I created my own XSD using the Schema composer (using Rodrigo's blog http://bit.ly/1E3ylWs).

When I run an XML Schema import from the EA generated XSD, I still get the following error:
DAO.Recordset [3077]
Syntax error (missing operator) in expression.

I'm using the latest 1215 build from EA12 with an EAP file.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: DAO.Recordset [3077] error: XML Schema import
« Reply #1 on: August 20, 2015, 08:25:57 am »
The error is bad sql. You'll need to get %appdata%\Sparx Systems\ea\DBError.txt and send it to Sparx support.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: DAO.Recordset [3077] error: XML Schema import
« Reply #2 on: August 20, 2015, 05:00:29 pm »
Thanks Simon, I wasn't aware of this file which is handy.
I noticed that it is reset everytime there's a new error (it is only possible to see the previous SQL error).

I will send the error to support.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: DAO.Recordset [3077] error: XML Schema import
« Reply #3 on: August 28, 2015, 05:34:07 pm »
I keep getting the same error with the following information showing in DBError file:

28/08/2015 09:24:59
DAO.Recordset [3077]

Syntax error (missing operator) in expression.

Context:
      SQL: select * from t_object where Stereotype='XSDschema' and Object_Type='Package'

Sparx Support hasn't been able to reproduce this issue so I'm still stuck :(

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: DAO.Recordset [3077] error: XML Schema import
« Reply #4 on: August 31, 2015, 08:43:08 am »
Just looked up that query.

I'm reasonably confident that the issue is that your file path contains an apostrophe.

Edit - Just tested it, adding an apostrophe when importing into an eap file that already contains XSDschema packages causes the problem.
« Last Edit: August 31, 2015, 08:59:49 am by simonm »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: DAO.Recordset [3077] error: XML Schema import
« Reply #5 on: August 31, 2015, 05:50:03 pm »
Well spotted!

Removing the apostrophe from my folder's name fixed the issue.

Thanks Simon.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DAO.Recordset [3077] error: XML Schema import
« Reply #6 on: August 31, 2015, 06:07:22 pm »
Hmm, sounds like the input is not properly escaped.
You better not name your file ';drop table t_object  ;D

Geert