|
|
||||||
|
#1
|
|
|
|
|
Hi Guys,
I am saving a xml notification in variable xmlNotification of XmlDocument type.For some reason if I get a exception I want to send the notification with failed status. But when I try to access the variable (xmlNotification) in the catch block I am getting an error telling that it is not intialized. Notification Xml file has unique identifier and I want to report filed status for that identifier when it fails. I have heard of succeded operator but I guess I cann't used that when I get the exception in that scope.I have tried this ....but I need more info on this. Thanks in Advance, Krishna Mohan Pothini |
|
|
|
#2
|
|
|
|
|
Hello.
I have seen this problem before as well. You will see this with variables using inside a parallel action shape or if logic. Anytime BizTalk can not guarantee it has been initialized. You should be able to solve the problem by initializing the variable before the scope shape inside an Expression Shape. The code would look like: xmlNotification = new System.Xml.XmlDocument; Let me know if this solves the problem. Stephen W. Thomas [url down] "krishna Pothini" wrote: [..] |
|
#3
|
|
|
|
|
Thank you very much for the reply.
I got the problem solved.I wasn't using any parallel action shape or if logic. The mistake I am doing was I didn't include the initialization in a additional scope.I wasn't using the succeeded operator correctly.I corrected myself after going through some documentation. Again thanks for the reply. Krishna Pothini Stephen W. Thomas wrote: > Hello. > > I have seen this problem before as well. You will see this with variables > using inside a parallel action shape or if logic. Anytime BizTalk can not > guarantee it has been initialized. > > You should be able to solve the problem by initializing the variable before > the scope shape inside an Expression Shape. The code would look like: > xmlNotification = new System.Xml.XmlDocument; > > Let me know if this solves the problem. > > Stephen W. Thomas > [..] >> "krishna Pothini" wrote: > > > Hi Guys, > > > > I am saving a xml notification in variable xmlNotification of > > XmlDocument type.For some reason if I get a exception I want to send > > the notification with failed status. > > But when I try to access the variable (xmlNotification) in the catch > > block I am getting an error telling that it is not intialized. > > Notification Xml file has unique identifier and I want to report filed > > status for that identifier when it fails. > > > > I have heard of succeded operator but I guess I cann't used that when I [..] |
|
|
| Similar Threads | |
| Exception error when accessing the class variable at the terminationof the program Hi All, Here is a sample piece of code with which I am having a problem, with Python version 2.4.4 class Person: Count = 0 # This represents the count of objects of this... |
|
| Member variable versus local variable access performance Lets say you have a method that is called hundreds of times a second and its job is to write data to a variety of variables (ints, doubles, strings, etc.). These values... |
|
| Word-Outlook error "Object variable or With block variable not set On the line with "objAttach.Add" below, I am trying to make an attachment to an e-mail created from the Word doc, but it throws the error "Object variable or With block... |
|
| VBA Access - Moving parts of a program to DLLs? Error 91.. "Object variable or With block variable not set" I am trying to move some of our large VBA Access front-end file into ActiveX DLL files. I created two DLL files so far, one was a module that contains code to integrate into... |
|
| Public variable not intialized hi all, i got two forms not auto generated. one is mdi and the other is a mdi child. unit form A (the mid parent) procedure OnClickButt; begin |
|
|
All times are GMT. The time now is 11:50 AM. | Privacy Policy
|