Question
Paster-Bachar Gadi · Sep 12, 2016

ErrGeneral: Object is immutable

Hi All

 

I have a BP which has a transformation. 

when I run the process I end up with the following error: 

----

ERROR <Ens>ErrBPTerminated: Terminating BP Propirion.BP.GetServices # due to error: ERROR <Ens>ErrGeneral: Object is immutable
+
ERROR <Ens>ErrGeneral: Object is immutable 

----

I have created a context named : HL7Message  type of: EnsLib.HL7.Message  and in the start of the BP assigned the request to it  (using set in assigned activity)

 

What did I miss ?

 

Thanks 

Gadi

0
0 759
Discussion (2)1
Log in or sign up to continue

My guess is that  your transformation is attempting to set a field value in the request (source) message, or you're using  the SetValueAt() method against it somewhere. You can't modify the request, but you can clone it (%ConstructClone() method)  and modify the clone.

Hi Jeffry 

Thank for the advice.

I have replaced the assigned+set activity with a transfomation+DTL and it did the trick for me.