GridPlus Component Error

Certified Senior Developer

Hi All,

I set up the Grid Plus component using the code provided in https://docs.appian.com/suite/help/25.2/grid-plus.html. However, when I try to submit the changes, I receive the following error: "class [Lcom.appiancorp.suiteapi.type.TypedValue; cannot be cast to class [Ljava.util.Map; ([Lcom.appiancorp.suiteapi.type.TypedValue; is in unnamed module of loader com.appiancorp.tomcat.loader.AppianWebappClassLoader @14151bc5; [Ljava.util.Map; is in module java.base of loader 'bootstrap')". Any suggestions?

a!localVariables(
  local!submitChanges: {},
  local!creates: {},
  local!edits: {},
  local!deletions: {},
  gridPlusLayoutField(
    queryRuleName: rule!RE_queryRule,
    queryRuleInputs: {
      recordFields: gridrecordfield( < RecordField > , < RecordField > ),
      batchSize: 25
    },
    columnConfigs: rule!RE_columnConfig(),
    createDataValue: local!creates,
    createDataSaveInto: local!creates,
    editDataValue: local!edits,
    editDataSaveInto: local!edits,
    deleteDataValue: local!deletions,
    deleteDataSaveInto: local!deletions,
    submitChangesValue: local!submitChanges,
    submitChangesSaveInto: a!save(
      target: local!submitChanges,
      value: gridsubmitchanges(
        queryRuleName: rule!RE_queryRule,
        colConfigRuleName: rule!RE_columnConfig,
        createData: local!creates,
        editData: local!edits,
        deleteData: local!deletions,
        createModel: cons!RE_CREATE_OR_UPDATE,
        editModel: cons!RE_CREATE_OR_UPDATE,
        deleteModel: cons!RE_DELETE
      )
    )
  )
)

Thanks & Regards,

Someshwar

  Discussion posts and replies are publicly visible

Parents
  • Hi ,

    Did you get the chance to go through the documentation of Grid Plus Component Grid Component and Helper Documentation ?

    It is a common issue when configuring the Grid Plus plugin in Appian. It indicates a data type mismatch: the underlying plug-in or interface expects a List of Map but is receiving a List of TypedValue (typically from Appian's record or data type system).

    To resolve this you can try passing the data in the map format.
    You can convert your data (Creates/Edits/Deletes) from their original types into a list of maps before processing with Grid Plus component.

    If you go through the documentation which I have attached you will find the implementation for the Grid Plus component.

Reply
  • Hi ,

    Did you get the chance to go through the documentation of Grid Plus Component Grid Component and Helper Documentation ?

    It is a common issue when configuring the Grid Plus plugin in Appian. It indicates a data type mismatch: the underlying plug-in or interface expects a List of Map but is receiving a List of TypedValue (typically from Appian's record or data type system).

    To resolve this you can try passing the data in the map format.
    You can convert your data (Creates/Edits/Deletes) from their original types into a list of maps before processing with Grid Plus component.

    If you go through the documentation which I have attached you will find the implementation for the Grid Plus component.

Children
No Data