Problems publishing documents from Integration Server

Hi …

We’ve created an integration that receives an incoming document, reads some fields and then publishes another document (different docs. depending on values of input fields) with the same structure as the incoming document.

Now I get an error message when IS tries to publish the document, using wm.enterprise.Admin:PublishDocument. The error message is: [B2BUNKW.WMENTE.9999] [BEBWBPK.0001.0000]Exception in converting values: header: null (and I also get it for other fields than null).

Now I’ve tried to debug this by saving the pipeline for the incoming document, and then restoring it and tracing the process, and I can see that all the variables that I can see has values, none of them are null, so why do I get this error ?

Any help appreciated …