Error while publishing document in ES 4.5

Hi ,
We are getting the following error while publishing a document after all the fetches from SQL.
Error : Null Parameter (220-1400): The input parameter ‘value[?]’ is null. followed by a huge error stack.
We are using Enterprise Server 4.5.
Any help in this greatly appreciated.
thanks,