Portal produced HTTP 500 Invalid Rule UUID in expression:

I had published a portal and it worked correctly, but today this error appeared (image below), I checked the interface and the error occurs in all the "cast" functions

This is the line cast function at line 86: "Invalid Rule UUID expression"

local!perfildata: cast(
'type!{urn:com:appian:types:CWA}CWA_OEC_Perfil?list',
rule!CWA_OEC_PerfilNames_Integration().result.body),

help please...

  Discussion posts and replies are publicly visible

  • 0
    Certified Associate Developer

    If you made any changes in the interface or any items used in the interface  which is used in the portal without publishing it .

  • 0
    Certified Senior Developer

    Looks like either you have renamed some object which is being used in the expression and forgot to update it here ...

    Or an unpublished change in the interface to the portal.

  • The portal was working correctly, I have not made any changes, i republished the portal and again show me this error (image bellow)

    "cast" parameter 2 [line 75] refers to an integration 

    I use an integration to call values for the "dropdownField" at  [line 175] 

    This is the expression of my interface

    a!localVariables(
      local!coecstatus,
      local!coecnacionalidad,
      local!coeccedula,
      local!coecperfil,
      local!coecnombres,
      local!coecapellidos,
      local!coecgenero,
      local!coecedad,
      local!coeccorreo,
      local!coectelefono,
      local!coeccelular,
      local!coecnivelinstruccion,
      local!coecinstruccion,
      local!coecformacion,
      local!coecprovincia,
      local!coeccanton,
      local!coecparroquia,
      local!coecdireccion,
      local!coecdiscapacidad,
      local!coectipodiscapacidad,
      local!coecdeseasocioempleo,
      local!coecvalorpago,
      local!coecmediopago,
      local!coecbranding,
      local!coecnombreempresa,
      local!coectiempomeses,
      local!coecactividadcargo,
      local!coecultimotrabajo,
      local!coecautoidentificacion,
      local!coecactualmentetrabaja,
      local!coectipoocupacion,
      local!coecocupacionactual,
      local!coechorastrabajosemanal,
      local!coecareatrabajo,
      local!coecvaloringresomensual,
      local!coecrecibeporempleador,
      local!coeccambiopuestoascensoempresa,
      local!coecsatisfechoempleoactual,
      local!coecagotadoporcargatrabajo,
      local!coecrespetantrabajocapacidades,
      local!coecjefesreconocencalidadtrabajo,
      local!coectrabajoexistenriesgoslaborales,
      local!coecdeseariaccambiartrabajo,
      local!coecrazonesencuentradesocupado,
      local!coecmotivosdejoultimotrabajo,
      local!coectiempobusquedatrabajomeses,
      local!coecjefehogar,
      local!coecposeeseguromedico,
      local!coectienehijos,
      local!coeccuantoshijos,
      local!coechijosentretresymenoresdieciocho,
      local!coecasisteninstituconeducativa,
      local!coecpersonasmiembroshogar,
      local!coecvivienda,
      local!coecaccesoservicionbasicos,
      local!coecfile1,
      local!cwaaddedby,
      local!cwadateadded,
      local!cwalastmodifiedby,
      local!cwalastmodifieddate,
      local!coecfile2,
      local!coecfile3,
      local!coecdata1,
      local!coecdata2,
      local!coecdata3,
      local!CaErrorMessage,
      local!CaComplete,
      local!buttonSubmit: false(),
      
      
    
      local!perfildata: cast(
        'type!{urn:com:appian:types:CWA}CWA_OEC_Perfil?list',
        rule!CWA_OEC_PerfilNames_Integration().result.body),
      local!perfilname: local!perfildata.perfil,
      
    
      
      
      local!provincedata: cast(
        'type!{urn:com:appian:types:CWA}CWA_dropdown_Provinces_Ec?list', 
        rule!CWA_provinceEcuadorNames_Integration().result.body),
      local!provincename: property(local!provincedata,"province",null),
      local!provinceid: property(local!provincedata,"id",null),
      local!cityname: if(
        isnull(local!coecprovincia),{},
      cast(
        'type!{urn:com:appian:types:CWA}CWA_dropdown_Cities_Ec?list',
        rule!CWA_citiesEcuadorNames_Integration(provinceID: local!coecprovincia).result.body).city),
        
    
        local!listvendorsdata: cast(
          'type!{urn:com:appian:types:CWA}CWA_OEC_ListVendors?list',
          rule!CWA_OEC_ListVendors_Integration().result.body),
        local!listvendorsname: local!listvendorsdata.CWAName,
        
        
      a!formLayout(
        label: "",
        contents: {
          a!sectionLayout(
            label: "",
            contents: {
              {
                a!localVariables(
                  local!currentSurveyPage: 1,
                  local!totalSurveyPages: 9,
                  {
                    a!boxLayout(
                      label: "CORFOPYM",
                      contents: {
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!richTextDisplayField(
                                  value: {
                                    a!richTextHeader(
                                      text: { "Encuesta de Registro -Certificación-" }
                                    )
                                  }
                                )
                              }
                            )
                          }
                        )
                      },
                      style: "ACCENT",
                      shape: "SEMI_ROUNDED",
                      padding: "NONE",
                      marginBelow: "EVEN_LESS"
                    ),
                    a!columnsLayout(
                      columns: {
                        a!columnLayout(
                          contents: {
                            a!cardLayout(
                              contents: {
                                /* Visual indicator to show the current survey page */
                                a!richTextDisplayField(
                                  labelPosition: "COLLAPSED",
                                  value: a!forEach(
                                    items: enumerate(local!totalSurveyPages),
                                    expression: {
                                      a!richTextIcon(
                                        icon: "circle",
                                        color: if(
                                          fv!index = local!currentSurveyPage,
                                          "ACCENT",
                                          "SECONDARY"
                                        )
                                      ),
                                      "  "
                                    }
                                  ),
                                  accessibilityText: "Page" & " " & local!currentSurveyPage & " " & "of" & " " & local!totalSurveyPages
                                ),
                                choose(
                                  local!currentSurveyPage,
                                  /* Page 1 */
                                  {
                                    a!sectionLayout(
                                      label: "Sección 1 de 8",
                                      contents: {
                                        a!sectionLayout(
                                          label: "",
                                          contents: {
                                            a!columnsLayout(
                                              columns: {
                                                a!columnLayout(
                                                  contents: {
                                                    
                      
                                                    a!dropdownField(
                                                      label: "Perfil",
                                                      labelPosition: "ABOVE",
                                                      placeholder: "--- Perfil ---",
                                                      choiceLabels: local!perfilname,
                                                      choiceValues: local!perfilname,
                                                      value: tostring(local!coecperfil),
                                                      saveInto: local!coecperfil,
                                                      required: true,
                                                      validations: {}
                                                    )

  • 0
    Certified Associate Developer
    in reply to danna3499

    Hi,

    In the local!perfildata you are getting the list of items or not for the dropdown values. if yes it will be in dictionary format try indexing the value for choice labels and choice values

  • 0
    Certified Associate Developer
    in reply to danna3499

    It seems like you're getting dictionary data from integration, you might need to index the data.

  • The portal works a moment ago, load the page again and show me this error:

    The portal loads correctly, but when i try to complete a field in the form, show me this error

  • 0
    Certified Associate Developer
    in reply to danna3499

    Try republishing the portal or refresh the form which you are providing the details.