Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File Adapter Sync read with FileName = Prefix + wild card file name. Is this possible?

Hari SelvaMar 27 2019 — edited Mar 28 2019

Hi Experts,

Is there a way to do Sync Read a file using FileAdapter with jca.file.FileName = "ABC100815709_XY564630900*.pdf"

Please advise.

I am getting this error message:

Caused by: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/CompName/WSDLs/DBPoller/fileSyncRead.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: No Data to process.

No Data to process.

File /app/dev/utils/ABC100815709_XY564630900*.pdf to be processed was not found or not available or has no content

; nested exception is:

        BINDING.JCA-11007

No Data to process.

Workaround I think of:

1. Get the list of files on that directory using another File Adapter List.

2. Do a string compare based on the prefix and get the file name.

3.  Assign the file name to jca.file.FileName on the sync read.

Thanks

This post has been answered by vladodias on Mar 27 2019
Jump to Answer
Comments
Post Details
Added on Mar 27 2019
1 comment
1,328 views