Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Equal Functoid question
- This topic has 7 replies, 1 voice, and was last updated 8 years, 4 months ago by
community-content.
-
AuthorPosts
-
-
January 2, 2007 at 3:01 PM #17106
Hi,
I’m trying to test a string field in the input XML, e.g. if the Freight field is equal to P put “Prepaid” in the output file, otherwise if it is C put “Collect”. I use the Equal functoid first and then the Value Mapping functoid (they are connected), and the order of the parameters is correct per the documentation. Nothing happens. The P or C are uppercase and I’ve even tried single quotes in the Equal functoid parameters. Anyone have any ideas?
Thanks,
Henry
-
January 2, 2007 at 9:59 PM #17107
1.You need to use Equal Functiod
—1st Parameter ….Input xml node( from Source Schema)
—2nd Paramter as custom paramter and just type P without any Quotes.
2.Pass on the output of this Equal functiod to Value Mapping Functiod.
—1st parameter Ouput of Equal to Functiod.
—2nd Parameter Custom parameter …….just type Prepaid without Quotes.
Output of Value mapping to the Destination node.
Same way for C…
-
January 3, 2007 at 8:16 AM #17110
Nishil,
thanks for the reply.
This is exactly how I set it up. After I wrote the post I checked another project (in the same solution) and discovered the Value Mapping was working perfectly – what would cause the *exact* same construct to work in one project and not the other?
Henry
-
January 3, 2007 at 10:26 PM #17117
Well "King" Henry,
Ru using the same input and Output Schemas in tht other project.
If yes then I think you have set some property within the Map itself which is causing this issue.
I think thrz a small mistake some where….
Can you just mail me the MAP,Input and Output Schema and the Input xml file u are facing problem with at [email protected]
-
January 11, 2007 at 8:00 AM #17206
Nishil,
Went back and looked everything over, the answer was right there and it was so simple! The field name's case in the inbound schema didn't match the XML, so the comparison failed. I corrected the typo and it works great.
Sorry for the delay in responding and thanks for your help!Henry
-
-
January 8, 2007 at 6:38 AM #17150
Nishil – check the order of the parameters, the logical must be the first parameter in the value mapper. It is easy to get these out of order when moving and hooking things up.
-weak architect
-
January 8, 2007 at 2:20 PM #17155
I just tested this scenario stated by NISHIL, and it worked exactly as you would expect. I have run into the problem as stated by "-weak architect" so he probably has loads of experience to recognize this.
After you verify that I think you should have it. You can always import the schema and map from the other project but I'm sure this would be a waste of time. If their suggestions don't work…which they obviously should, then I would recommend either deleting and replacing the functoids, or create a new map to test that one scenario. It only took me a few minutes to set this up with a project open already.
-
January 8, 2007 at 10:06 PM #17159
Well Anonymous.
Output of Logical functiod should be the first parameter to the Value mapping functiod.
I have mentioned the same.
Biztron….its true we should delete the MAP and create a new MAP..
Later in some other project while having free time one should try debugging wht went wrong.
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.