on 01-13-2015 12:50 PM
Hi All,
My scenario is Idoc to File and we have encountered a problem where 2 files are getting created for 1 Idoc sometimes.
Ideally it should create only 1 file from 1 Idoc but sometimes it is creating 2 files, in our scenario we using ICO.
The file is created with name FD_Timestamp and the 2 files which are created are with 2 different timestamps
Can you please comment on this?
Regards,
Rahul Kulkarni
Hi Rahul,
Can you check your mapping, If the mapping is such a way that it creates Multiple Files.
Refer to this blog, it speaks about creating multiple files from single idoc. Check if such mapping is used in your interface.
--
Sendhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rahul,
What are the differences between two files (content, file-name)?
Do you see anything which is not normal in IE and AE?
Message ID in PI is same for both files?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
Sounds strange....I would suggest:
1. Check if you have another Interface / CC that is writing the file in same dir.
2. Check if the Cache is Up-to-date
3. If same error persists, I would suggest you to delete the existing ICO and create a New one (with slightly different/new Receiver CC name).
Regards,
Azhar
Hello Hareesh,
In my further analysis I found that only 1 message is creating 2 files, I know it is strange.
The scenario goes as below -
The receiver channel is trying to create a file on FTP server as - write to FTP server "XX" directory - "XX" , file - FD_Timestamp1
now there is an error on channel -
Transmitting the message to endpoint <local> using connection IDoc_AAE__http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error occurred while connecting to the FTP server "XX": java.lang.IllegalStateException: Error during STOR/APPE epilogue: com.sap.aii.adapter.file.ftp.FTPEx: 426 Unexpected reply codeConnection closed; transfer aborted.
Exception caught by adapter framework: Error during STOR/APPE epilogue: com.sap.aii.adapter.file_.ftp.FTPEx: 426 Unexpected reply codeConnection closed; transfer aborted.
and then after some time there is again a retry and now the connection and everything is successful and now the file is sent to FTP server but with a new time stamp - FD_Timestamp
According to my understanding at first time when there is an issue the file (FD_timestamp1) should not have been sent to FTP server and only the second file should be sent.
But the FTP server has received both the files and they contains same data.
Can you please let me know if there is any solution available to avoid this issue?
Regards,
Rahul Kulkarni
>>>so is it the permanent solution to avoid this issue?
I can't guarantee that but just to let you know
Possible reason for that error :
In any of the above cases, If you use temp file option
You should always have one target file. So may be you can change your configuration and see if that fix your problem permanently.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.