Author Topic: DAO.Field [3163] Error importing profile  (Read 3573 times)

Jan van Mastbergen

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
DAO.Field [3163] Error importing profile
« on: November 23, 2006, 06:58:34 am »
Subject says it all. Complete message text:

The field is too small to accept the amount of data you attempted to add. ...

Using build 800. Import was in a new blank database. Anyone seen this? The profile text is included below. Looks ok to me but I may be missing something. If the problem is precisely what the message says, can someone tell me which field we are talking about?

TIA Jan

---
<?xml version="1.0" encoding="UTF-8"?>
<UMLProfile profiletype="uml2">

<Documentation id="C261103B-C" name="(jvm) Enterprise architecture profile" version="1.0" notes="A UML profile for enterprise architecture components.

note: Tagged value names that refer to another model element must be uniquely named across the profile. If not, one of the two definitions is lost.  "/>

<!-- The profile content -->
<Content>
<!-- List of stereotypes used in this profile-->
<Stereotypes>
<Stereotype name="stddict" notes="Standard dictionary element" cx="122" cy="150" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Component">
<Property name="isIndirectlyInstantiated" value="true"/>
</Apply>
<Apply type="Attribute"/>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
<Apply type="Object"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues>
<Tag name="normid" type="char" description="Normative identifier. Identifier of object within normative reference" unit="" values="" default=""/>
<Tag name="suppref" type="char" description="Supplementary references" unit="" values="" default=""/>
<Tag name="businessname" type="char" description="Name of object for use in general texts." unit="" values="" default=""/>
<Tag name="synonym" type="char" description="Alternate names in use for object. Format: synonym (area of application)." unit="" values="" default=""/>
<Tag name="sourceapplid" type="char" description="source application identifier. Identifier of item in source application when not identical to object name." unit="" values="" default=""/>
<Tag name="format" type="char" description="Storage format of the element acc. IEC61630-1:2002." unit="" values="" default=""/>
<Tag name="example" type="char" description="Optional example values of an element are represented as UML objects of the corresponding class for composite elements or as a tagged value for scalar elements. " unit="" values="" default=""/>
<Tag name="acl" type="char" description="Access control list in the form {[crudg]*:<actor> [in <context>]}* where <actor> anems an individual, group or role in some context. Actors and contexts must be kept manually in sync with the remainder of the model." unit="" values="" default=""/>
<Tag name="resporg"/>
<Tag name="authority"/>
<Tag name="sourceAppl"/>
<Tag name="normref"/>
</TaggedValues>
<Constraints/>
</Stereotype>
<Stereotype name="orgunit" notes="Organization (unit). An internal or external (sub-)organization.  The stereotype identifies contact information." cx="100" cy="90" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
<Apply type="Object"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues>
<Tag name="contact" type="char" description="Contact person for orgunit" unit="" values="" default=""/>
<Tag name="funloc" type="char" description="Functional location code or any formal identifier for organization unit." unit="" values="" default=""/>
<Tag name="email" type="char" description="E-mail address as general point of contact for organization unit." unit="" values="" default=""/>
<Tag name="url" type="char" description="URL of organization's web site." unit="" values="" default=""/>
</TaggedValues>
<Constraints/>
</Stereotype>
<Stereotype name="id3" notes="Identifies an attribute as a tertiary (alternate) key element." cx="100" cy="80" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Attribute"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues/>
<Constraints/>
</Stereotype>
<Stereotype name="id2" notes="Identifies an attribute as a secondary (alternate) key element." cx="100" cy="80" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Attribute"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues/>
<Constraints/>
</Stereotype>
<Stereotype name="id" notes="Identifies an attribute as a primary key element" cx="100" cy="80" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Attribute"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues/>
<Constraints/>
</Stereotype>
<Stereotype name="extref" notes="External reference. Objects with this stereotype define sources of information outside the model. The external owning organization of a reference is identified by dependency relation with the trace stereotype to an object with the orgunit stereotype." cx="100" cy="80" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Object"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues>
<Tag name="contact" type="char" description="Contact person name for reference text." unit="" values="" default=""/>
<Tag name="url" type="char" description="URL where reference text can be obtained." unit="" values="" default=""/>
</TaggedValues>
<Constraints/>
</Stereotype>
<Stereotype name="application" notes="A application system type or specific instance thereof." cx="100" cy="80" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Component">
<Property name="isIndirectlyInstantiated" value="true"/>
</Apply>
</AppliesTo>
<Redefinitions/>
<TaggedValues/>
<Constraints/>
</Stereotype>
<Stereotype name="actor" notes="Identifies classes that represent actors which may be held responsible / accountable for specific activities. " cx="110" cy="80" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
<AppliesTo>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
<Apply type="Object"/>
</AppliesTo>
<Redefinitions/>
<TaggedValues/>
<Constraints/>
</Stereotype>
</Stereotypes>
<TaggedValueTypes>
<TaggedValueType property="resporg" description="Responsible organisation" notes="Type=Classifier;Stereotypes=actor;"/>
<TaggedValueType property="authority" description="Party responsible for item definition" notes="Type=Classifier;Stereotypes=actor;"/>
<TaggedValueType property="sourceAppl" description="" notes="Type=Classifier;Stereotypes=application;"/>
<TaggedValueType property="normref" description="Normative reference. Link to authorative definition when not in here." notes="Type=Classifier;Stereotypes=extref;"/>
<TaggedValueType property="normID" description="Unique identifier for element within normref."/>
<TaggedValueType property="format" description="Storage format of element acc. xxx"/>
<TaggedValueType property="suppref" description="Reference to supplementary information." notes="Type=Memo"/>
</TaggedValueTypes>
</Content>
</UMLProfile>

---
« Last Edit: November 24, 2006, 08:21:34 am by jvmastbe »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: DAO.Field [3163] Error importing profile
« Reply #1 on: November 23, 2006, 02:42:19 pm »
I get a different error: "The character '<' cannot be used in an attribute value." The line in questions is

Quote
<Tag name="acl" type="char" description="Access control list in the form {[crudg]*:<actor> [in <context>]}* where <actor> anems an individual, group or role in some context. Actors and contexts must be kept manually in sync with the remainder of the model." unit="" values="" default=""/>


When I fix that error, I get the same one you reported. That is caused by this line:

Quote
<TaggedValueType property="normref" description="Normative reference. Link to authorative definition when not in here." notes="Type=Classifier;Stereotypes=extref;"/>


The maximum length of the description field is 50 characters. I think you have 69 characters.

PS On this line:

Quote
<TaggedValueType property="suppref" description="Reference to supplementary information." notes="Type=Memo"/>


You probably need a ';' after 'Type=Memo'...
The Sparx Team
[email protected]

Jan van Mastbergen

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: DAO.Field [3163] Error importing profile
« Reply #2 on: November 23, 2006, 02:56:25 pm »
Ok, thanks. I'll play around with this tomorrow.
Note that the profile was not hand-edited. It was created as a package with <<profile>> stereotype in EA and exported. In the file  the < is actually &lt; but I think it got converted when pasting it into the message. I'll check the other remarks.

Jan

Btw, Is there a way to add files as attachments to posts?


KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: DAO.Field [3163] Error importing profile
« Reply #3 on: November 23, 2006, 03:17:06 pm »
Quote
Note that the profile was not hand-edited. It was created as a package with <<profile>> stereotype in EA and exported.

We need to fix the profile export then - I'll add it to the list.

Quote
Btw, Is there a way to add files as attachments to posts?

No. I think what others have done in the past is to post attachments to the EA user group site and then post a link here.
The Sparx Team
[email protected]

Jan van Mastbergen

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: DAO.Field [3163] Error importing profile
« Reply #4 on: November 24, 2006, 08:16:36 am »
Found it.

The issue occurs when you draw an association with the TaggedValue stereotype between 2 stereotypes and supply it with a large description in the Notes field. You would use this when you want to supply tagged values that refer to model elements with the target stereotype.

Would be nice when the field size matched the Notes widget size (indefinite?).

Regards, Jan