cancel
Showing results for 
Search instead for 
Did you mean: 

File to AS2 File Name?

Former Member
0 Kudos

Hi Guys,

I have File -> AS2 scenario. I want to have the file name on the AS2 receiver same as sender File adapter.

1. I have checked the ASMA on the sender side with the File name option checked

2. I have checked the dynamic attributes in the AS2 receiver with the file name option checked. I have also checked the option Fail the message if ASMA is missing.

Currently I dont have any IR objects so i can't do a UDF. The message is failing with the below error

Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message

How can i get the same file name from the file sender to the AS2 receiver? any help or suggestions would be appreciated

Thanks,

Srini

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can not use ASMA for third party adapters, better way is by java mapping.

VS

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Srinivas,

It is not a direct mapping between the File Adapter file name and AS2 adapter file name. You have to do it manually. This is because the attributes are from different contexts. In general scenarios, you normally do the mapping using IR either Mesage mapping UDF or Java Mapping, etc... But in case you do not want to use IR objects, then you will have to write an adapter module for changing the attributes. It is very simple.

Cheers,

Sarath.

Former Member
0 Kudos

Better, Using Java Mapping....

Former Member
0 Kudos

Hi Guys,

Thanks for the quick reply. Seeburger has different modules to extarct the values dynamically. They have a Attributemapper module with the help of which you can retreive the file name dynamically but somehow it is not getting mapped to the target file name.

I am able to see clearly in the Audit Log File that the received file name is same as sender file name but it is not getting mapped to the AS2 file name.

any links to the Java mapping to rereive the file name would be appreciated

Thanks,

Srini

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Preeti,

Thanks for your quick reply. I have resolved the problem by using the seeburger AttributeMapper module where you can map the sender file name to the receiver dtAs2Filename. You dont need any UDF or Java Mapping.

Thanks,

Srini

Former Member
0 Kudos

Hi Srinivas,

We are also getting same for Receiver file name in AS2 adapter. Can you please tell us how did you solve?

Can you please give us more details.

Thanks for your help.

Thanks,

Hari Reddy

Former Member
0 Kudos

Hi Hari,

You need to use the attribute mapper module to map the sender file name.

1. set the ASMA in the sender channel

2. check dynamic attributes in the receiver AS2 adapter and check the file name

3. use Attribute Mapper in the module tab

4. Map the received file name to the dtAS2 file name is the configuration

Please let me know if anything is not clear so that i can explain you more briefly.

Thanks,

Srini

Former Member
0 Kudos

Srinivas,

Thanks a lot for your response. I couldn't understand 3 and 4th steps. Can you please explain me with screen shots.

Thanks for your help.

Regards,

Hari Reddy