cancel
Showing results for 
Search instead for 
Did you mean: 

File Receiver Adapter is not writing the file?

Former Member
0 Kudos

Hi All,

I am having a file to file scenario using NFS as both the source and destination are on server.

File is getting picked up from server but not reaching the destination.

In RWB for Receiver channel it only shows <b>Channel active and started correctly.</b>

In SXMB_MONI it shows the message scheduled for some later time.

On reaching that time it tries again and reschedules :(.

Please guide.

Regards,

Sumit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sumit,

What you can do is:

Check the target directory path in server by tcode <b>AL11</b>, if it exists and has the permision to read/write.

Regards,

Sarvesh

Message was edited by:

Sarvesh Singh

Former Member
0 Kudos

Hi Sarvesh,

Thanks for the reply.

Under which field should i look for the target directory in AL11.

I have the rights.

Please tell me.

And whom and what permissions to give if the target directory is not there?

Sumit

Former Member
0 Kudos

Sumit,

AL11 is used to see all directoies, now you just check the directory name which you have mentioned in your CC, if it exist then follow the path and chek if there are other .xml or test files.

Or else Chose some other directoy e.g. /temp and give the same directroy in CC and then test again. I am sure it will work.

Regards,

Sarvesh

***Reward points, if found helpful.

Former Member
0 Kudos

Hi All,

I have changed the directory but still the problem is same.

The message again scheduled for retry when i see in SXMB_Moni.

Please help.

Sarveh, Surely I will give u points when my problem is solved :).

Presently i have given u marks for helpful answer.

Sumit

Former Member
0 Kudos

Hi

I think the scenario looks fine except the permissions issue.

Try keeping it in any shared folder..

Thanks

Former Member
0 Kudos

Hi,

For using a directory on the XI server, an example of the format of the source directory is:

/Optitime/OT/QA/inbox

Does this format match the one you are using ??

Cheers

Colin.

Former Member
0 Kudos

Sumit,

Now do one thing, just for check the directory for read/write permission by putting the test file manually on your target directory.

The porcedure to put a file on server is as shown below:

1. Save your file in your local machine.

2. In <b>XI server</b>, enter the tranaction code "<b>SXDA_TOOLS</b>".

3. In the input screen, enter:

i) Object Type "DXPROJECT".

ii) Program Type "BAPI".

iii) Program "CREATE".

4. Press Copy (Ctrl+F5) button.

5. Now, you will get another screen in which you will see 3 blocks called as "Source", "Target" and "Copy with/without conversion".

6. In Source block, choose the radio button "Presentation Server" and then take F4 help to select your source file. (file which you have saved on your local machine)

7. In source block select the radio button "Application Server", check the box "Remote server" and take F4 help to select your application server.

8. In the same block under "File Type" select "P physical file name" and under "File Name" write the path/directory name which you have mentioned in your communication channel along with the file name.

Example: suppose file name in your Comm Chanel is "<b>demo.xml</b>" and directory path is <b>"/abc/testfiles/XML/</b>", then in step 8 write <b>"/abc/testfiles/XML/demo.xml</b>".

Note: need not to do any thing in 3rd block.

After doing all the above, let me know the results.

Regards,

Sarvesh

****Reward points, if it helpd you.

Former Member
0 Kudos

Hi Sarvesh,

Thanks a lot for your reply.

Your answers are always helpful :).

I have tried the thing you told.

But, the problem is I am having <b>.</b> as my source file name (as I am using <b>Dynamic Configuration</b>).

So when I am giving . as filename in that transaction it shows error.

Please tell me if u have any suggestions.

This is clear that there is some issue with Dynamic Configuration.

Thanks for making it clear.

Sumit.

Former Member
0 Kudos

Hi Sumit,

>>The message again scheduled for retry when i see in SXMB_Moni

Since the message is scheduled in IE. There`s no question of any permission issue (directory, or anything ).

Check if all the queues are registered (SMQR). Also check in SMQ1 if you can find any erorr.

If you see the message status as scheduled try restarting the message manually and see what happens.

Regards,

Sumit

Former Member
0 Kudos

Hi,

I tried the SMQR.

The queue is registered (XBTI1000).

When I displayed tht queue then it shows <b>XI Error UPDATE.XICACHE: Queue stopped</b>.

In SMQR no queue is having any destination.

Please tell me what u understand.

Need help!

Sumit

Former Member
0 Kudos

Sumit,

Tcode "<b>SXDA_TOOLS</b>" is just to put a file (at a time only one file) on server, so do not use <b>.</b> in the transaction.

Secondly as you have mentioned that your are getting and error of Cache updataion. You can try to update your cache by "<b>SXI_CACHE</b>" and then press <b>"</b><b>ShiftF6"</b> to update the cache and then press <b>"CtrlF6"</b> to display refress_error.

After this check once again your conditions for dyanamic configuration of CC. And then give a try.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

Sarvesh, when i have given the proper filename i was able to write the file in target directory.

This means tht there is no problem of permissions.

As per Sumit reply this is sure tht the message comes till Send Queue in XI.

There its getting failed.

Sumit I am giving you points for your helpful answer.

Please all help me solve my problem.

Sumit

Former Member
0 Kudos

Hi Sumit,

>>In SMQR no queue is having any destination.

That is okay..

Seems some Cache Issue . But wont be able to help you much with.

All i can suggest is go to SMQR de register the queue and register them again.

Also when you go to SMQR what is the queue status you can see .. Is it <b>Inactv or Waiting</b>.

Also as mentioned earlier try to refresh the cache.

Also ask your basis team if all the installed XI Components are at the same SP level.

If the above doesnt help you with .. Ask your basis team to restart the J2EE engine. Can say for sure your problem will be solved.

Regards,

Sumit

Message was edited by:

Sumit Khetawat

Message was edited by:

Sumit Khetawat

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Sumit,

This is the path of ping service.

SICF>default_host->sap->bc->

ping

I found this in the How to manage cache doc :).

Sumit

Former Member
0 Kudos

Hi Sumit,

Thanks .

Regards,

Sumit

Former Member
0 Kudos

Hi,

The Scheduler status is shown Inactive.

When I Activate it manually, it shows starting.

But after refreshin it again shows <b>Inactive</b>.

I am restarting the J2EE engine.

I hope this solves the problem.

I will revert back after the engine has started.

Please tell me one thing that : How to restart a scheduled message manually?

Regards,

Sumit Oberoi

Former Member
0 Kudos

Go to SXMB_MONI, select your message and press the Restart button F6)from the tool bar.

Regards,

Sarvesh

Message was edited by:

Sarvesh Singh

Former Member
0 Kudos

Hi Sumit,

The Scheduler status is shown Inactive.

That is not a problem.

Regards,

Sumit

Former Member
0 Kudos

Hi,

After restarting the server also the problem remains the same.

I do not know what is the problem.

Sarvesh, On restarting the Message manually is says: <b>Message 9244F930611A11DCB1E6001617ADF1CB still scheduled in queue XBTI0001</b>

Regards,

Sumit Oberoi

Former Member
0 Kudos

Just try to Regester the queue and activate, then give a try.

SXMB_ADM -> Manage Queues -> Register Queues

Also deleted entries in SMQ1 and SMQ2 and then restart messages

Regards,

Sarvesh

Message was edited by:

Sarvesh Singh

Former Member
0 Kudos

Hi Sumit,

Ran out of ideas ..

try deleting the entry from queue and then restart the message...

If that doesnt work raise a OSS message with SAP.s

Regards,

Sumit

Former Member
0 Kudos

Hi Guys,

I registered and activated queue.

While activating it said<b> Error while activating queue XBTI*</b>.

On pressinf ok it says activated.

On running the scenario it worked :).

But when I tried again it was again stuck.

And on trying to activate it again from XMB_ADM It shows Error and is not activating.

I think We r close to the complete solution.

As it ran once.

Just tell me what to do now?

Regards,

Sumit

Former Member
0 Kudos

Sumit,

Just check for any locked queues.

Go to <b>SMQ2</b> and on the top u will see a <b>unlock icon</b>, if you se any locked queue then unlock them and then try to Activate through <b>XMB_ADM</b>.

I know after a lots of errot we are very near to the solution, just try this also. May be we will get success this time.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

I have checked no queue is unlocked.

Just tell me how to delete the entries from queues?

As there are many entries in different queues.

May be this is causing new message to scheduled as there r earlier messages in queue.

Regards,

Sumit

Former Member
0 Kudos

Hi,

1. Go to SMQ2-> F8->Select/double click on queue and press the Activate button.

OR

2. Go to SMQ2-> F8->Select/double click on queue and Press <b>Unlock Immediatly.</b>

Do it for all your queues.

Regards,

Sarvesh

***Reward Points if found helpfull.

Former Member
0 Kudos

Hi Sarvesh,

i did tht and it again worked once.

But now again the scene is same.

My Basis person said he has done some change in some Directory_IHM

I dont know what it means,

please give ur suggestions if any.

Sumit

Former Member
0 Kudos

Hi,

Ask your basis guy what changes did he do..

Also read my earlier messages and test the destination.

integration_directory_hmi and see it it works.

Regards,

Sumit

Former Member
0 Kudos

Hi Sumit,

I checked the Integration_Directory_IHM.

Following test results were there:

Status HTTP Response : 500

Status text : Internal Error

Duration Test Call : 12342ms

Tell me what to do?

Regrads,

Sumit

Former Member
0 Kudos

Hi Sumit,

Sorry for writing Ihm instead of HMI.

I also checked the pipeline URL : http://blrkec114938d:8001/sap/xi/engine?type=entry

It shows following XML:

- <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP:Header />

- <SOAP:Body>

- <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<faultcode>SOAP:Client</faultcode>

<faultstring>Empty HTTP request received</faultstring>

<faultactor>http://sap.com/xi/XI/Message/30</faultactor>

- <detail>

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>XIProtocol</SAP:Category>

<SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Empty HTTP query received; message processing not possible</SAP:Stack>

</SAP:Error>

</detail>

</SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

Any Ideas to rectify the problem.

I am running short of ideas please help :(!

Sumit

Former Member
0 Kudos

Hi All,

I have solved the problem.

The ping service in SICF was not working.

I activated it and cleared all my queues and it worked :).

Thanks a lot for your support.

Sumit

Former Member
0 Kudos

Hi Sumit,

Great to know you managed to solve the problem.

Could you tell us the full path of the ping service.

Regards,

Sumit

Former Member
0 Kudos

Hi,

Also let us know if you get any error when you manually refresh Cache from t-code SXI_CACHE.

Incase you get error check in SM59 the destination INTEGRATION_DIRECTORY_HMI

Regards,

Sumit

Former Member
0 Kudos

Hi Sumit,

The Queue status is Inactive.

But, the cache is updated when I am looking in SXI_Cache.

Is restarting the J2Ee engine is the only option or there some other altertnative?

Regards,

Sumit

Former Member
0 Kudos

Hi ,

Did you refresh the cache using t-code SXI_Cache?.

If not refresh and then try to restrart the message manually and see what happens.

you can also go to SMQR .. Select all the queues .. Deregister them and then register them again.

If that doest work .. i think the best way out is restart of J2EE engine.

Regards,

Sumit

Former Member
0 Kudos

Please follow the systematic way to DEBUG the situation as explained below.

1. What type of system is sending the message to Integration Server?

2. What is the name space and message type of outbound interface associated with this integration scenario?

3. Check whether you can see a success full submission of messages from the business system into the IS server using outbound interface.

4. Check whether you have seen integration server used intermediate Queue to complete the transaction and save the message as part of the outbound operation.

5. Check whether IS could able fine the right receiver using the message namespace and interface type

6. Check whether inbounds side of this integration scenario using any mapping.

7. Check whether IS executed the mapping successfully

8. Check whether IS able to find a right receiver interface

9 Check whether IS could route the message to a proper receiver through the receiver agreement.

10. Step 10 complete another transaction. At this stage you will see message processed successfully in IS

11. However if Channel and associated adaptor have a problem the message may not be delivered to the consumer.

12. at this stage go to the channel monitoring in RWB.

13. Check whether the communication channel running successfully

14. If yes on step 13 check whether communication channel list an error on the particular invocation.

You will the error on step 14, if all previous steps cleared.

Former Member
0 Kudos

Hi Collin,

Thanks for this quick reply.

I need to give permissions to which user for creating file?

Please explain.

It says<b> 0 messages found</b> in Message Monitoring when i enter the particulars.

Regards,

Sumit

Former Member
0 Kudos

Hi

The target directory should be shared.All read and write should be possible

Thanks

Former Member
0 Kudos

Read/Write permission is handled by Basis person. Other wise for testing just change your target directory and then test.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

I thought you had said that message could be viewed in the transaction SXMB_MONI ??

Can the same message not been seen in the RWB - Message monitoring ??

I think the receiver communication channel will use an internal user if it is non-FTP.

Cheers

Colin.

Former Member
0 Kudos

Hi,

Does the user have the correct permissions for "create" in the destination directory ?

Check the communication channel for any message processing and see if there are any errors - it will tell you under communication channel monitoring.

Cheers

Colin.