Skip to main content
September 23, 2021
Solved

Could not cast from Data Store Entity to KONE_Development_userinputsheet. Details: CastInvalidCould not cast from Data Store Entity to KONE_Development_userinputsheet. Details: CastInvalid

  • September 23, 2021
  • 9 replies
  • 1 view

as title

    Best answer by stefanhelzle0001

    Read the documentation !!!

    docs.appian.com/.../Query_Recipes.html

    9 replies

    stefanhelzle0001
    Brainy
    September 23, 2021

    https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/

    Your way of posting error messages without providing any details will not motivate others to support you. More details !!!

    September 23, 2021

    I am trying to publish it on site, however with any rule input interface can not do it, so i create another one and set the previous one interface as constant, and I have no idea to fill in that parameters.

    a!localVariables(
      local!userinputsheet:cons!KONE_Development_userinputsheet_Constant,
      local!userrole:cons!KONE_Development_userrole_Constant,
      a!sectionLayout(
        label: "Section",
        contents:rule!KONE_Development_update_Interface(userinputsheet:local!userinputsheet,userrole:local!userrole,delete:"true")
      )
    )

    stefanhelzle0001
    Brainy
    September 23, 2021

    The code seems to be OK.

    Regarding the actual values, it seems weird to store data in constants which you later plan to store to database. If that data should be fetched from DB, you should do that in lines 2 and 3.