Parameter ' swing ' does not exist

Hello,
Im trying to animate my character bay making his hands either ‘swing’ or ‘shoot’
Like this:
anim

But I’m randomly getting this error:
error

Those are the inspector elements:


Those are the Animators:


Those are the transitions:
Idle-to Swing
Idle-to-Shoot
Shoot-to-Idle
Swing-to-Idle

And this is the code i attached:

public class Attack : MonoBehaviour
{

    void Start()
    {
        
    }

    void FixedUpdate()
    {
        if(Input.GetKeyDown(KeyCode.Mouse0))
        {
            GetComponent<Animator>().SetTrigger("swing");
        }

        if(Input.GetKeyDown(KeyCode.Mouse1))
        {
            GetComponent<Animator>().SetTrigger("shoot");
        }
    }
}

Sometimes it works, sometimes it doesn’t and I don’t know why or what is happening.
Any help is appreciated, thanks in advance.

It’s because you have a single script for two animators. In one animator you have only swing trigger, and in another you have only shoot trigger. Try making one animator on character object and add a script there. You would need to make new animations