Skip to Content
avatar image
Former Member

Files are skipping after execution of Command Line in SAP PI 7.1

Hi Friends,

The scenario is Like Third party to PI To ISU.

I am using File adapter and it is picking the files from third party and putting the Encrypted files to PI Inbound folder. The command is executing and picking the files from PI Inbound folder and putting the decrypted files in the decrypt folder and Pi is picking the files from decrypt folder and sending it to ISU.

Now I have analyzed that some files are getting skipped. Like if there are 20 files came from third party to Pi Inbound folder , only 19 files are getting picked from PI Inbound folder and putting 19 files to decrypt folder. Also there are only 19 files in Archive folder.

I have written the below command line- G:\XIServer\SBM\IDD0011_BillingData_SBM\Inbound\script\batch.bat -D %f Dec%f >> G:\XIServer\SBM\IDD0011_BillingData_SBM\Inbound\script\temp\error%f.txt

Please Suggest me how can I handle this issue and how I can solve this skipping of files issue. Let me know if you nee dmore information.

Thanks,

Sherwin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 10, 2013 at 10:04 AM

    Hi Sherwin,

    If PI picked 20 files from third party sytem and put in the Inbound folder then the issue is not in the PI sender adatper. but the script running to pick the files from Inbound folder picked only 19 files then do you see the missing file in the inbound folder. if yes then the isssue is in the script.

    Cheers

    Hidayat

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2013 at 12:10 PM

    Hi Shervin,

    It's script unless the remaining file has a weird character , can you check if there is any difference with the others?, like if it is empty.

    Also, If you want to copy files from one path to another in a windows system you can use the example developed by Michal Krawczyk : http://scn.sap.com/community/pi-and-soa-middleware/blog/2007/02/08/xipi-command-line-sample-functions

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 13, 2013 at 07:07 AM

    Hi,

    Thanks for the help. The file was having wrong encryption. The file was not getting decrypted due to wrong encryption.

    Add comment
    10|10000 characters needed characters exceeded