Skip to main content

I started using the new Branch connector with an existing AS2 connector. The Branch connector will be used to save specific messages based on the Filename to a different folder.

I've setup the Branch connector as shown in the image provided in the Help for the Branch connector.
IF Filename matches glob CUS*.*

But instead of the output being send to the provided File Connector to save the message in a different folder, the message is forwarded to the ELSE clause and forwarded to that attached connector.

The log-file shows the following information (not really helpful at the moment):

o2023-08-25T15:36:47.403] 0Info] CUSDEC325-0000000000062014 is routed to File_SHPP2MEP_Test (which is the ELSE clause). n2023-08-25T15:36:47.403] 0Info] Message CustomerAS2_TEST-20230825-153646575-eCIr is finalized. Name: CUSDEC325-0000000000062014, Type: Output, Status: Success, Message: , Processing Time: 16ms. m2023-08-25T15:36:47.403] 0Info] Arc Version: 23.2.8606.0 62023-08-25T15:36:47.403] 0Info] System Version: Microsoft Windows Server 2022 Standard a2023-08-25T15:36:47.403] 0Info] VM Version: 4.0.30319.42000 02023-08-25T15:36:47.403] 0Info] Message CustomerAS2_TEST-20230825-153646575-eCIr is finalized. Name: CUSDEC325-0000000000062014, Type: Input, Status: Success, Message: , Processing Time: 16ms.

 

 

Some additional info in the files/messages that we receive:

The message format is EDIFACT, so I have to use the Filename selector.
The message has no file extension.

 

Hey @RichardG 

The New Branch connector should allow you to add multiple Branch logic with a single Branch connector. It looks like the challenge you are facing has more to do with configuration. Can you please share a screenshot of your workflow that explains the current logic you have created?


Hey @Ankit Singh,

This is the workflow:

Workflow

And these are the settings for the Branch connector:

Branch Connector Settings

And this is the Input(/output) page, where you can see the processed files:

Input tab

 

The files that start with CUSDEC325 should have been sent to the File_SHPP2ES_Test connector.
 


PS.
I noticed this morning that another connection has the same issue.

In that case we check for the extension of the file. I've recently replaced the now discarded FileMatch connector with the new Branch connector, but all files are sent via the Else clause, instead of the case selector.

For that Branch connector i've used the same IF filename matches glob setting.


Hi @RichardG 

Can you replace the filter condition with ‘CUS*’ ?

I believe setting it to ‘CUS*.*’ is expecting the Branch connector to look for a ‘.’ in the filename which includes extensions.
So ideally, the Branch connector will only pass a file named CUSXXXX.XXX which is NOT matching the input files you are expecting it to pass.


@Ankit Singh 

That was the solution for the issue with this connector. By removing the ".*” the files without a file extension are checked as well.


Thank you very much


Reply