Error in Java Action OverlayPdfDocument in 9.24.27: Trying to change value of MendixBinary from two different contexts

0
Hi all,   Using the Java Action "OverlayPdfDocument" to combine an overlay document with a document template results in an error: trying to change value of MendixBinary from two different contexts.   Details: com.mendix.webui.WebUIException: Exception while executing runtime operation    at com.mendix.webui.actions.client.RuntimeOperationAction.$anonfun$apply$1(RuntimeOperationAction.scala:62) Caused by: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Trying to change value of MendixBinary from two different contexts.       at MutatiesKoppeling.Toepassen_OverlayPDF (JavaAction : 'Overlay pdf document')    at MutatiesKoppeling.DossierItem_Create_stap2 (SubMicroflow : 'Toepassen_OverlayPDF')    at MutatiesKoppeling.DossierItem_Create_stap1 (SubMicroflow : 'DossierItem_Create_stap2')       at MutatiesKoppeling.DossierItem_NieuwVanZelfdeType (SubMicroflow : 'DossierItem_Create_stap1') Advanced stacktrace:    at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:83)   Any ideas why this happens and how to solve this?   Thanks in advance!
asked
2 answers
0

Hi Martijn,

 

Try clean the deployment directory in Mendix Studio Pro, then try to build the application again.

 

Hope it helps!

Thanks & Regards,

Manikandan K

answered
0

Hey Martijn,

 

As the error says, there is an issue with the context object which is used by the document template.

Somehow template is receiving 2 values of MendixBinary attribute for the same guid object which shouldn't be the case.

 

We need more explanation on how step 1 and step 2 microflows were designed and how the context object is used within the template.

 

Regards,

Naman

answered