Skip to main content
March 18, 2021
Question

Error using TypeService getType() method

  • March 18, 2021
  • 2 replies
  • 0 views

Hey, I am using the TypeService interface and calling the getType() method to return Appian DataType value for a CDT passed into a smart service.

cdt variable is of class TypedValue

Long cdtTypeId= cdt.getInstanceType();
Datatype cdtType= ts.getType(cdtTypeId);

But I get this error.. The type com.appiancorp.cache.CoupledValue cannot be resolved. It is indirectly referenced from required .class files

This shows up in in the IDE during build for the line ts.getType(cdtTypeId).

Does anyone know what is needed to get this to work. Or another way to get Datatype from the TypedValue class

    2 replies

    mayura3465
    February 28, 2022

    Facing the same issue, did you find any solution now?

    petert214Author
    March 1, 2022

    Was going to try getInstanceType() from a NamedTypedValue or TypedValue object. THis project became a lower priority so haven't tested yet.