Book a Demo

Author Topic: EAP -> notes truncated value from API SQL Query (255 chars)  (Read 3900 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Hi,

In a VbScript, I set a local variable with the content from t_objectproperties.notes which I get by calling Repository.SQLQuery(SQL).
The script works well with a DBMS but not with an EAP: I figured out that the returned value is truncated after 255 chars.

Is this a known issue with EAP? Is there a workaround?

thanks
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: EAP -> notes truncated value from API SQL Query (255 chars)
« Reply #1 on: May 03, 2018, 10:55:15 pm »
Tagged Values have always been limited to 255 bytes. I guess you once changed your real database to have the limit removed (on your own risk). Now, that's what you get...

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EAP -> notes truncated value from API SQL Query (255 chars)
« Reply #2 on: May 03, 2018, 10:57:31 pm »
Yes, a known issue.

There is actually a difference between the SQL server database format and the .eap database format.

I once reported it as a bug, but I got the "it's a feature, not a bug" response  :-\

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: EAP -> notes truncated value from API SQL Query (255 chars)
« Reply #3 on: May 03, 2018, 11:05:07 pm »
Thanks for your replies. The tagged values store the definition of DB Views generated by EA via a DB Reserve.
So the full query is generated without any restriction on the number of chars.

It works ok if I use the API Object method as an alternative to queries (will use that..).

Guillaume

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