Forum Replies Created
-
AuthorPosts
-
May 19, 2009 at 11:05 PM in reply to: How to set a default value to an destination schema element in BizTalk Map #22415
Hi, you can try this:
In this case, the clientCode from source schema is feed into an IsNil logical functoid, a “Logical Existence” logical functoid and a scripting functoid (S1). S1 is an Inline C# script type with this code:
public System.Boolean MyConcat(string param1)
{
return System.String.IsNullOrEmpty(param1);
}Then the result of IsNil function, “Logical Existence” and S1 functoids are feeded into a logical OR functoid. Then the result of the logica OR functoid is feeded into a logical NOT function, which in turn feeds into a ValueMapping functoid (VM1) as first input. And the ClientCode of the source schema is also feeded into the the same value mapping functoid (VM1) as the second input. The result of of VM1 is then feeded to the ClientCode in the destination schema.
The result of the logical OR functoid also feeds into ValueMapping functoid (VM2) as the first input, the 2nd input parameter is configured to “N/A”. then the result of VM2 is feeded to the ClientCode in the destination schema.
This way, DestinationSchema.ClientCode=SourceSchema.Client if SourceSchema.Client exist, not null, and not empty, otherwise, DestinationSchema.ClientCode=”N/A”.
Hope this helps.
May 19, 2009 at 12:46 PM in reply to: How to take leading zeros from a string in BizTalk mapper #22409[quote user="Zx7R"]
Hi, – he wants to remove leading zeroes, not to add.

[/quote]
The Math Add functoid will convert the string into a number add zero (number is unchanged) and outputs the number as a string without leading zeros.
This approach is easier than the custom functoid if you have a lot numbers in a message you need to convert. With the scripting functoid approach you will need a scripting functoid for each number, each with a different method name. Likewise, in an orchestration you could end up with a lot of xpath statements/distinguished fields to manage.The language is C#.
Each instantiated class exists for the life of the orchestration. It is serialized into the MessageBoxDb at certain persistence points. All the messages, variables and the processing state are saved. If your Biztalk server is switched off, the orchestration will restart from the last persistence point. If your orchestration has a long wait then it is persisted and removed from memory (dehydrated) and can be rehydrated when the event it was waiting for occurs.
My (limited) understanding is the orchestration is converted into class(es) in a C# like language, X# ?
Then each orchestration instance is a case of instantiating the class(es), in the same way your C# class is instantitated (assuming it’s not a static)
May 19, 2009 at 11:07 AM in reply to: How to set a default value to an destination schema element in BizTalk Map #22406What a coincidence i am facing the same problem
are you same santosh who sites behind me ?
May 19, 2009 at 8:55 AM in reply to: How to take leading zeros from a string in BizTalk mapper #22403Great, this works nice[<:o)]
Are you sure your wanting to receive data on that port before sending it or are you trying to achieve a send and receive a response?
May 19, 2009 at 4:51 AM in reply to: need help using custom component within receive pipeline #22400Diassembler (and assembler) stage can not run 2 components in the stage.
You can run two different pipeline components at different places: one in receive port and other in orchestration.
Let the FFDasm run normally by the pipeline manager in receive port and call the custom pipeline component from orchestration.
You maybe able to debatch using the standard FlatFile Disassembler. Do you have an example of your actual message?
Possible causes:
1. The element does not exist in the message. The xpath function will not create an element if it does not exist.
2. The xpath statement cannot be resolved. Do you have an sample message?May 19, 2009 at 4:19 AM in reply to: FILE receive adapter deleted the empty file without performing any processing. #22397I believe you will need a custom adapter to detect empty files.
When the file adapter creates a message from the file content. If the file is empty it does not create a message, so processing stops inside the adapter. So no pipeline is executed and no message is delivered to the messagebox.
There is an example file adapter in the SDK: C:\Program Files\Microsoft BizTalk Server 2006\SDK\Samples\AdaptersDevelopment\File Adapter
You could modify this code to create an error message and send to Biztalk if the file is empty. You could then have an orchestration that would consume this error message and send an emailMay 19, 2009 at 4:10 AM in reply to: Not able to invoke an orchestration via the Filer Criteria when using a Custom Pipeline #22396Some more information is needed.
1. In what stage does your custom pipeline component execute?
2. What other pipeline components are in the pipeline?
3. What is the filter criteria in orchestration receive shape?
4. Where are strMessageType1 and strMessageType defined and what values are assigned to them?You have to installed it along with biztalk.
Hi There!
More info required. How is the activation on your receive shapes set up? Correlation-sets? Etc.etc… Can it simply be that you’ve forgot to set activate=true on the receive-shape that is supposed to trigger your orchestration to run (the top-most one)?
// Niklas
the target name sapce for response is fixed and cannot be changed as BTS CRM adaptor always returns the orginal targetnamespace and not the one you have provided.
The adaptor was orginally designed for CRM3.0 and with minor tweaks can be used with CRM4.0. Response namespace cannot be changed USE the default namespace.
-
AuthorPosts
