2024 Jul 05 11:15 AM - edited 2024 Jul 05 11:19 AM
Hello experts
I have the following integration scenario:
1. A synchronous proxy (service consumer) sends purchase order information, including a PDF as attachment to generic proxy dispatcher flow in the IS/CPI. Based on the header values of "SapInterfaceNamespace" and "SapInterfaceName" the processing flow is then called dynamically.
2. The processing flow extracts the attachment and puts it into a property which is thereafter cleared from the message (SAP note 3240138).
3. External REST APIs are called to process the message and also attach the PDF.
4. Based on the processing outcome, a success or failure is returned to the proxy call.
In generally, this works well, but sometimes the proxy call goes on error and the following "PART_BOUNDARY_NOT_FOUND" shows in SXMB_MONI:
In such a case, I see the following log in the proxy dispatcher flow:
Processing exchange ID-10a74212-bf95-45f5-46ff-fb9c-1719846917195-23-2626:
StartTime = Wed Jul 03 08:01:43.915 UTC 2024
StopTime = Wed Jul 03 08:02:04.623 UTC 2024
ChildCount = 5
ModelStepId = MessageFlow_5
StepId = MessageFlow_5
Activities [
{Activity=sap-processdirect:foo?address=/${header.SapInterfaceNamespace}/${header.SapInterfaceName}, StartTime=Wed Jul 03 08:01:43.915 UTC 2024, StopTime=Wed Jul 03 08:02:04.623 UTC 2024}
]
Processing exchange ID-10a74212-bf95-45f5-46ff-fb9c-1719846917195-23-2626:
StartTime = Wed Jul 03 08:02:04.623 UTC 2024
StopTime = Wed Jul 03 08:02:04.623 UTC 2024
Status = COMPLETED
ChildCount = 6
ModelStepId = EndEvent_2
StepId = EndEvent_2
Activities [
{Activity=setProperty[SAP_MarkMessageAsFailed], StartTime=Wed Jul 03 08:02:04.623 UTC 2024, StopTime=Wed Jul 03 08:02:04.623 UTC 2024}
{Activity=Exchange ID-10a74212-bf95-45f5-46ff-fb9c-1719846917195-23-2626 completed, StartTime=Wed Jul 03 08:02:04.629 UTC 2024}
]
Sent response from endpoint:
StartTime = Wed Jul 03 08:02:04.625 UTC 2024
Status = FAILED
ChildCount = 7
Cxf.EndpointAddress = /XiEntrySync
Error = Outbound processing in endpoint at /XiEntrySync failed with message "ClassCastException:java.lang.String (loaded by <bootstrap>) cannot be cast to java.lang.Integer (loaded by <bootstrap>)"
ModelStepId = MessageFlow_4
Activities [
{Activity=processEvent[SentResponse], StartTime=Wed Jul 03 08:02:04.625 UTC 2024}
{Activity=log Fault, StartTime=Wed Jul 03 08:02:04.625 UTC 2024, StopTime=Wed Jul 03 08:02:04.625 UTC 2024}
]
Nevertheless, I don't understand why this is happening once in a while but not all the time. When I look at the response payload from the processing flow back to the proxy dispatcher flow then they look exactly the same for the successful flow and the one in error.
Also, a boundary issue would also indicate some kind of issue with the attachment, but again it fails only once in a while when sending with the attachment and never when there's no attachment present.
Anybody having an idea what could be the issue or encountered the same and found a solution?
Thanks in advance,
Daniel
Request clarification before answering.
Hi, did u found any solution for this?
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
22 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.