Parameter does not exist

I have two identical animations. Both have different bool parameters. One works but the other says “Parameter does not exist”. I deleted the second and I still get the message even though there isn’t any animation with that parameter. I tried closing the animator tab and restarting but that doesn’t work.
Any ideas?
Thanks

I found the problem but I don’t know how to resolve it. When the script tries to run the second animation it is calling the animator for the first animation. I haven’t been able to find a way to force it to call the correct animator. The correct controller is set in the inspector. Confused.

Ok, I solved this. Sorry i posted this as I was able to solve it myself.

I came to the console that the parameter did not exist, my problem was that I was not getting the animator component well.

I am now using: Animator _anim = GetComponentInChildren ();

before I used: Animator _anim = GameObject.Find (“Sprite”). GetComponent ();

I think that in my case the error happened because I added a child object to the gameObject that already had the Animator, I guess it caused confusion and could not find the parameter.