I posted before about doing a conversion during mapping of bit value to boolean. I was told to use scripting which I tested and it works as inline C# script. I want to make the code more \”objectized\” so I want to build an external assembly to use in the map for all fields that require this code rather than retyping everytime.
I get an error that the transform failed. Here is the code I used to make my external assembly. I deployed to the GAC using GacUtil. The error is listed below the code.
[code:1:0c2cb0b191]using System;
using System.Collections.Generic;
using System.Text;
namespace BitToBoolean
{
public class BitToBoolean
{
public static void Main()
{
}
public static string BitCoversion(string bitval)
{
if (bitval == \"1\")
{
return \"True\";
}
else if (bitval == \"0\")
{
return \"False\";
}
else
{
return \"\";
}
}
}
}[/code:1:0c2cb0b191]
Error information:
Error encountered while executing the transform BizTalkFromWipToAC.WIPWebServiceMap. Error:Unable to create the transform..
Exception type: XTransformationFailureException
Source: Microsoft.XLANGs.Engine
Target Site: Void ApplyTransform(System.Type, System.Object[], System.Object[])
The following is a stack trace that identifies the location where the exception occured
at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Obj[/code]