Cannot create data type in App Studio

I have two applications - in one I was able to create a data type in the Wizard in App Studio, in the other I was not.

The difference appears to be the Advanced “reuse assets from” dropdown -

In the working version I see “implementation data class” as default (there are others as well)

In the non working version I see only “FormFamilyType” and “TemplateType” and if I try to create the class with that I get e.g.

  • Parent Class: Class Int-AgencyGrGov-FormFamilyType does not exist. Please define an existing parent class.

(Int-AgencyGrGov is another ruleset - that I have but am not using not sure why that is there)

I am still interested in an answer to my question - I have added two screenshots. In “IncorrectDropDown” app studio (Data ->New) looks like it is inheriting from the wrong Ruleset. Compared with the other screenshot (in a different application) which shows the correct classes.

How do I get AppStudio Data → New to inherit from the correct Ruleset - I don’t seem to have issues otherwise, with this and am able to create classes and data pages in Dev Studio, that seem to be inheriting correctly.

Thanks.

@NeilM6411

If you are saving in a ruleset which cannot resolve the current data type, you can overcome this by changing the validation mode to Application Validation.

This will allow the rule resolution of the data type and enable you to extend the data type.

More info here. This PCC question, and this PCC question also contain troubleshooting steps for the error you are encountering.

During rule resolution, the system considers only direct parent classes. For example, class C inherits from class B, and B inherits from A, but C does not inherit from A.

More info here.

@MarijeSchillern Thank you - changing the validation mode to Application Validation, from Ruleset Validation solved my problem.