Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Biz Talk SDK > BizTalk Bug? Sc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 575 of 642
Post > Topic >>

BizTalk Bug? Scripting ****toid Inline Regular Expression Not Working

by heatherbergeron@[EMAIL PROTECTED] May 2, 2007 at 06:35 AM

My Environment - BizTalk 2004, BizTalk 2004 HIPAA Accelerator 3.0

Hello,

I have a map that uses a script functoid (inline VB.NET) with a
regular expression. I have created the function in a separate VB .NET
project to ensure that it compiles (it does). However, when I add the
function to the scripting functoid and try to compile, I get the
following error:

Inline Script Error: Type 'System.Text.RegularExpresssions.Regex' is
not defined.

I have tried two versions of the function (both compile in my VB .NET
project), and both receive the same error in BizTalk on compile:

Version 1
---------------
Function fnSetSrvTypeCode(ByVal strServTypeCode As String)
       Dim _Regex As Object
        _Regex = new System.Text.RegularExpressions.Regex()
        Dim pattern As String
        Dim strInput As String
        Dim strOutput As String
        pattern = "1[^37]|2[^09]|3[^01]|4[^789]|5[46789]|6[^026]|
7[^389]|8[^67]|9[0125]|A[^0]|B[^JKLMNPQS]"
        strInput = strServTypeCode
        If  _Regex.IsMatch(strInput, pattern) Then
            strOutput = "L"
        Else
            strOutput = "S"
        End If
    End Function

Version 2
----------------
Function fnSetSrvTypeCode(ByVal strServTypeCode As String)

        Dim pattern As String
        Dim strInput As String
        Dim strOutput As String
        pattern = "1[^37]|2[^09]|3[^01]|4[^789]|5[46789]|6[^026]|
7[^389]|8[^67]|9[0125]|A[^0]|B[^JKLMNPQS]"
        strInput = strServTypeCode
        If  System.Text.RegularExpressions.Regex.IsMatch(strInput,
pattern) Then
            strOutput = "L"
        Else
            strOutput = "S"
        End If
    End Function

Has anyone else encountered this before? If so, what your resolution
or workaround?

Thanks for any help you can provide,
H
 




 3 Posts in Topic:
BizTalk Bug? Scripting Fuctoid Inline Regular Expression Not Wor
heatherbergeron@[EMAIL PR  2007-05-02 06:35:30 
Re: BizTalk Bug? Scripting Fuctoid Inline Regular Expression Not
Jan Eliasen <eliasen@[  2007-05-04 15:29:07 
Re: BizTalk Bug? Scripting Fuctoid Inline Regular Expression Not
Jan Eliasen <eliasen@[  2007-05-04 15:38:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 7:02:13 CST 2008.