Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to Handle Exception handling on BizTalk server ?
- This topic has 5 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
July 8, 2008 at 2:13 PM #20090
Hi,
I am using biztalk server 2006 R2 edition. and i have make one application in which i get file from local machine and send it over different FTP server. Now my client want me to do some exception handling in the orchestration.
So I put RECEIVE and all SEND shapes in one SCOPE shape and i added one CATCH EXCEPTION shape in SCOPE shape, withing CATCH EXCEPTION shape i added one send shape which i configured with local folder
Now During uploading the file on FTP if any exception ll occur then that file wud be send back to origin folder (LOCAL FOLDER).
but if i try to access that MESSAGE in CATCH EXCEPTION shape i face following error :
Error 3 use of unconstructed message
‘TestMSG’ D:\TestSourceCode\Test\TestSolution\TestOrchestration\TransferTest.odx 432 61Please suggest me how do i send back that received message to local folder.
I appreciate your kind support.
Regards,
Dhaval M. -
July 8, 2008 at 2:46 PM #20091
So you are getting a “use of unconstructed message” error? That’s a compile time error, right? That usually means that you have a send shape that is sending a message that might not have been construted. To send a message from an exception handling block, you either need to construct (or receive) the message before the scope begins, or you need to construct the message within the exception handling block. The idea is that the exception could occur anywhere within the scope, so the exception might occur before you receive the message, and a null reference error would occur when you send the message.
Also, you might want to look at the ESB Guidance for a good exception handling model: http://www.codeplex.com/esb
-
July 9, 2008 at 7:59 AM #20098
Hi Russell,
Thanks for your kind support. I move receive share out of scope and its working fine.
But Orchestration is not working as per my expectation. If my FTP server is down or if i mention wrong username password then orchestration fire warning in event viewer but dint generate exception.
My message flow is as per following:
1. message receive from LOCAL folder (ex d:\GetXML)
2. Transfer to 3 differet FTP. I put all 3 FTP SEND shape in one scope if any send operation would be fail then i wish control goes to CATCH EXCEPTION shape and send that receive message back to local folder.
But Right now if any Send operation fail then flow does not go to CATCH EXCEPTION shape its just a filed warning message in event viewer and complete orchestration flow.
Please help me to figure out my problem.
Regards,
Dhaval M.
-
July 9, 2008 at 8:18 AM #20099
When an FTP send fails, BizTalk may be entering a retry process (the default number of retries is 3, 1 every 5 minutes). During this time, your messages will probably show up as dehydrated in the group hub page. Try setting the retry count on the FTP send ports to 0. This may make them throw an exception into the orchestration.
-
July 9, 2008 at 8:47 AM #20100
I have already make retries = 0 but still service instance go to dehydrated state and show me warning message. but i just tried BACKUP TRANSPORT and its work fine if FTP is down then its store that file back to Local folder but orchestration flow dint stop. orchestration upload that file to other 2 FTP server but i want that flow should be stop there.
I am really thankful for your great support to cleare some basic concept regarding biztalk
Best Regards,
Dhaval M.
-
July 9, 2008 at 9:08 AM #20101
Hey I just tested my application but BACKUP TRANSPORT ll send file back even if FTP is up 🙂 so i think BACKUP TRANSPORT is not helpful to me i think i need to find some other way.
Please let me know if you have any other idea where i can fulfill my requirements.
Regards,
– Dhaval M.
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.