How to use SKLEARN PIPELINE
Could you share the code? It is kind of hard to debug with out the code

When you do pipeline.predict it uses the transform method for all the steps. 

Might be that in the One Hot Encoding you have not specified how to handle the unknown.

from sklearn.preprocessing import OneHotEncoder
enc = OneHotEncoder(handle_unknown='ignore')