Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
2957 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I added two text fields and a number(integer) field to an existing CDT, publishe
Navajith K
over 11 years ago
I added two text fields and a number(integer) field to an existing CDT, published it, updated datastore, made necessary changes to the process modeler; however the values are not written to the text fields in database (MySql), number field works fine. Any thoughts?...
OriginalPostID-87411
OriginalPostID-87411
Discussion posts and replies are publicly visible
0
Patty Isecke
Appian Employee
over 11 years ago
How did you add the additional fields? Did you do it through portal or download the XSD? Can you provide a snippet of the two new fields?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkats533
over 11 years ago
check you JPA annotation for any duplicate column names (usually happens when you do copy and paste for new fields)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 11 years ago
Hi Patty, I have downloaded the XSD and have amended it to add the new fields.
Please find the entry in the xsd file for these three new fields I mentioned before.
</xsd:element>
<xsd:element name="shiplist" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
@Column(nullable=true)
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="farlocation" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
@Column(nullable=true)
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="other" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
@Column(nullable=true)
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Patty Isecke
Appian Employee
over 11 years ago
1. Check your process variables to see if the values were actually mapped.
2. Did you delete the old CDT and upload the new one? After publishing, did you run Impact Analysis to propagate the updated CDT?
3. Do you see the new table in your database?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 11 years ago
Hi Venkat, These are new fields and I have checked and confirmed that the column names are unique.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 11 years ago
Hi Patty, The answer is yes for all your 3 questions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Patty Isecke
Appian Employee
over 11 years ago
Please change nullable to nillable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Patty Isecke
Appian Employee
over 11 years ago
Let me rephrase my last comment, please change the tag to <xsd:element name="other" type="xsd:string" nillable="true"> for each element
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
In addition to Patty's recommendation it seems there's still something pointing to the old version of the CDT where these fields didn't exist. To fix it:
1. Create an application with your problematic model
2. Use the "Check Missing Dependencies" tool to add the data store and data types
3. When the dependencies are listed you may see CDTs of type ^1 meaning they are old versions. This will confirm the theory
4. At this point you have two options:
---> 4.1 Expor the application and re-import it (to automatically remap)
---> 4.2 Or go to the Data Management tab to see all the CDTs this application reported with the ^1, ^2, etc suffix, select them and run Impact Analysis. There will be a report at the end telling you what items will be updated, just click "update" and wait.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 11 years ago
Thank a lot for all your comments Patty, Venkat and Eduardo.... The suggestion from Eduardo worked, I reran the imapact analysis for the CDT with new fields and only my Datastore was shown in BOLD. This started working once I updated the entity in datastore.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel