Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to joaoc1131

    I'm guessing the issue you're facing is in your a!forEach() statement at the bottom here.  When you reference ri!recordCandidateSkills[fv!index], Appian can be finnicky about addressing an index in an array that does not [yet] exist.  What you should do instead is think of this in terms of assembling the entire array you want ri!recordCandidateSkills to contain, and saving the whole assembled thing all at once.  I'll attempt to freehand what i'd suggest you re-write it as, though this might need further refining:

    a!save(
      ri!recordCandidateSkills,
      
      if(  /* note, this is somewhat unnecessary as a!forEach returns an empty set in this case anyway */
        a!isNullOrEmpty(local!skill),
        {},
        
        a!forEach(
          local!skill,
          fv!item.idSkill
        )
      )
    )

Children