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
8 replies
Subscribers
7 subscribers
Views
2251 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am facing an issue currently. I have used a CDT type specifier in an interface
chetany
A Score Level 1
over 8 years ago
I am facing an issue currently. I have used a CDT type specifier in an interface (type!MyCDT). I am trying to import the application to another environment. I have included the CDT as well as the interface in the application. But when I try to import it it gives me error message as: "Reference to datatype cannot be found."
I am unable to solve this issue. Please let me know a solution for the issue. Thanks.
OriginalPostID-154775
OriginalPostID-154775
Discussion posts and replies are publicly visible
0
chetany
A Score Level 1
over 8 years ago
Sorry, I meant when I try to "inspect" the application, I get that error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@chetany Hi, one of the ways for doing this is:
Step - 1: Use a separate application especially for data types and data stores and import this application first.
Step - 2: Import the actual application.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 8 years ago
@sikhivahans, Thank you. I will create a separate application for data types.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
Certified Lead Developer
over 8 years ago
You can also just import the application twice, but best practice is to do as Sikhi has suggested!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jennifer Durina
Appian Employee
over 8 years ago
The inspect error is a known error when using a type constructor. The problem is that the more complicated type! reference isn't picked up at the inspection time--technically that CDT doesn't exist yet. However, it's a false error--if you select import you should be fine and you would only have to import once. However it is best practice to create a separate application as Sikhi suggested.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marek
over 8 years ago
I've run into this issue previously, where you will only get that error "inspecting" an application, but not if you actually go ahead and "import" it. This is because, upon inspection, Appian sees that type!MyCDT does not yet exist on your target environment and complains. However, if you were to import that application, the reference to that datatype would be resolved because your interface will see the reference to MyCDT which has already been imported.
However, it is a best practice like @sikhivahans said to use a separate application to package your data types and data stores in.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marek
over 8 years ago
Sorry! Jennifer's comment didn't show up until the page refreshed once I submitted my comment, but it's basically the same thing.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 8 years ago
Thank you everyone for the inputs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel