cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.31 Sender File Adapter - file name containing space

former_member185846
Active Participant
0 Kudos

Dear Experts,

I need to read a file with file name say "ABC XYZ.txt" (there's a space between ABC and XYZ) with PI 7.31 sender file (FTP) adapter. I tackled it by specifying it as ABC?XYZ.txt. But, wondering if there's any better alternate option since this would pick up even say "ABC_XYZ.txt", which is a different file altogether. Any suggestions?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Using Regular expression to fix this issue. This is one approach. Also why don't you recommend sender system to trim that space in the middle. You might want to check this link

http://stackoverflow.com/questions/5531079/regex-check-for-white-space-in-middle-of-string

rajasekhar_reddy14
Active Contributor
0 Kudos

You have handled it in right way, if only one file going to avaible on Folder then you could tru ABC*.txt like that or you could try with some other patterns.