What´s the best way to work this and why does it gives me this error?

Hello, 

I'm not quite sure if  I'm working with this pickerFieldRecord correctly (it is not saving any value in the rule input) and I don't understand why it says that "idSkill" is type Text because it isn't... 





 a!localVariables(
  
  local!Skill,
  
  
 
 (...)
 
 
 
 
 
 a!pickerFieldRecords(
                    label: "Competências",
                    labelPosition: "ABOVE",
                    placeholder: "-- selecione uma ou mais competências --",
                    maxSelections: 3,
                    recordType: 'recordType!{b10f5f28-725c-4c8b-a211-776386be5222}RM_ref_Skill',
                   
                    value: ri!recordCandidateSkills.idSkill,
                    saveInto: {local!Skill, a!save(
                      ri!recordCandidateSkills.idSkill,
                      if(
                        a!isNullOrEmpty(local!Skill),
                        {},
                        a!forEach(
                          local!Skill.idSkill,
                          property(fv!item, "idSkill", null())
                        )
                      )
                    )},
                    
                    

  Discussion posts and replies are publicly visible