on 10-03-2014 6:08 PM
Hi
I have an action block WriteFile that is working fine. But when this action block receives an invalid file path, it throws an exception and an error message in the server log. So I put a Catch action block to get the error message and handle it, the issue is that the error message is not setted in the catch action block.
I need the message that I found in the server log to send to the caller:
"/usr/sap/MID/integracao/ETON/DEV/ETON_RECEBE/_ETON_FICTICIO_1/OPLIST.ASC (No such file or directory)"
What is setup as the "Default File Path" set to in the MII Menu -> System Management -> System Properties page? The above path also does not exist as there's no drive letter and unless you specified a share location for usr it will never find the folder (plus if it's a share path you need a double slash).
Also, the catch block isn't ignored and that's why the trace action appears as green since it did run.
Sam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please share a picture of your transaction so that I can better understand the logical flow of what you are doing? Perhaps there is another way to achieve what you want.
The error message from the Write File action should be visible in the Catch action "Message" field which would look something like this:
"Error from action: " & Catch_WriteFile.Source & " was caught with message: " & Catch_WriteFile.Message
Then you can use the SAP MII XML Document -> Fatal Error block to report this back to the user.
Sam
PS: the Fatal Error block has to be used in conjunction with the Document action block.
Hi Michel,
You should be getting some error number right?
Warm regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.