Microsoft BizTalk Server 2002 - Add a channel filtering expression

Add a channel filtering expression

  1. On the Inbound Document page of the Channel Wizard, select the Filter inbound document check box and click Filtering.

    The Channel Filtering Expressions dialog box appears.

  2. In the Select field tree, double-click any node to expand the view.

  3. Click a specification field that you want to use to create a filtering expression and click Add.

    The Expression Properties dialog box appears.

  4. In the Operator list, click an operator:
    Equal to (Default)=
    Not equal to!=
    Less than<
    Equal to or less than<=
    Greater than>
    Equal to or greater than>=

  5. In the Value box, type a value for the expression and click OK.

To continue setting inbound document properties, go to Set inbound document properties.

Ee274711.important(en-US,BTS.10).gif Important

  • A channel filtering expression must be a valid XPath expression. The Add button can be used to create a clause that contains a specification field and to insert it into an expression; however, it does not generate the correct syntax needed for a valid XPath expression. For more information about XPath expressions, see Channel Filtering; you can also go to the MSDN Online Library Web site ( and search on the keyword "XPath."

Ee274711.note(en-US,BTS.10).gif Notes

  • You can type an expression directly into the Expressions list.

  • To select a specification field for a channel filtering expression, the field must have a data type assigned in the specification. For more information about assigning a data type to a field, see Set declaration properties.

  • If the specification field that you are using to create an expression has a Boolean data type, you cannot use the text string "true" or "false" in the expression value. You must use a numerical value instead, "-1" for true and "0" for false.

  • If the specification field that you are using to create an expression has a date data type, you must type the value in the following format, including the hyphens: YYYY-MM-DD.

  • If you want to use a filter for a date/time type (dateTime,, time,, you must type it manually in the XPath expression. For example, self::node()[@ATTDATETIME = "2000-03-15T10:10:10"] where ATTDATETIME is the date/time format type.

Related Topics

Create channels

Edit a channel filtering expression

Edit channels

Remove a channel filtering expression

Set Channel Filtering Properties

Set Channel Properties

Did you find this information useful? Please send your suggestions and comments about the documentation to BizTalk Server Documentation