Material disappears when recording script

Trying to re-record a portion of a script, but when I do one of the materials disappears when the image is generated. I've re-synced the material to the library but no difference.  It recorded everything fine last week so I don't know what happened. The material also disappears from the objects after I cancel the script recording and click on an object in a view. Any Ideas??  Again thanks for the help