community-content

Forum Replies Created

Viewing 15 posts - 2,596 through 2,610 (of 9,648 total)
  • Author
    Posts
  • in reply to: how to avoid multiple instances of one application ? #22731

    To implement a singleton orchestration pattern you will need to build a convoy orchestration. These can be sequential or parallel. To determine which one is best for you, you will need to be more specific about how you will be processing the incoming files. See  Brunchey’s  questions in the previous reply. 

    in reply to: How to resume a suspended service instance after error #22730

    Once an orchestration has suspended, it can only be resumed with exactly the same code that it started with.

    There is a cheat, but this can be risky and can cause worse problems. It should only be used in absolute emergencies and make sure you save all your messages first. You can rebuild your assembly, stop the host instance that uses it, remove the original assembly from the GAC, add the new assembly to the GAC and restart the host instance.  This should only be tried if you are changing a schema or a map. Changes to orchestration code will typically crash and burn.

    You best option is to design your orchestrations so they do not fail/suspend. Make use of the Scope shape with exception handlers to take corrective action. Check out the ESB Guidance (called ESB Toolkit on Biztalk 2009). It has a number of Exception handling components that help in building robust orchestrations.

    in reply to: Handling Validation #22729

    There are a number of ways of validating an Xml message.

    1. You can use schema validation, by defining the schema with the exact rules you require
    e.g. using a regex pattern to constrain content
    <xs:element name=”FirstName”>
      <xs:simpleType>
        <xs:restriction base=”xs:string”>
          <xs:pattern value=”([a-zA-Z])*”/>
        </xs:restriction>
      </xs:simpleType>
    </xs:element>

    You can then use a number of ways of performing the validation. The XmlDisassembler and XmlValidtor pipeline components will both perform validation, however they will both throw an exception on the first error and you will need to implement Route Message on Error functionality.

    You can implement your own validation component (C# class library) that will continue past the first error and produce a list of all errors discovered, This can be run as a pipeline component (you will need to use Route Message on Error functionality) or from an orchestration.

    2. An alternative is to use a Schematron pattern http://www.schematron.com/
    This is my preferred approach as it provides more scope for validation, especially with loosely defined schemas that used for a number of different functions i.e. some elements may be defined as minOccurs = 0 but they may be reuired for some functions but not others – for example an Id field that is not required on a Add but is required for an update.
    I typically skip using the Schematron language and processors (they don’t produce the output I require) and code my own Xslt.
    I perform the validation inside an orchestration using a Transform shape or a dynamic transform. The put message is like this
    <validation report errorcount=”1″>
    <validationerror><xpath>/Employees/Employee/FirstName</xpath><message>Can only contain alpha characters</message></validationerror>
    </validation report>

    After the map you can use a decide shape on errorcount and either send an error message or continue processing using the original message.

    in reply to: BizTalk Administration Console Weird Error #22728

    Dear

    I had the same issue with a different application that updates the “Path” envrionment variable,

    in reply to: how to avoid multiple instances of one application ? #22726

    Can you give more information?

    Will all of the files you want to process be in the directory at the same time?  Or will they arrive within a given time period, say every 15 minutes?  Is there anything in the files that tells us this is file 1 of n so we know how many there are in a batch?  Is there a batch identifier in the files?

     

     

    did you manage to solve it? i have a similar problem

    message looks like:

    Header
    Details
    Trailer
    Header
    Details
    Trailer

     

    in reply to: Create Orchestration which runs every hour #22721

    An orchestration will only start on the receipt of a message, unless it is called from another orchestration.
    You need to send a trigger message every hour. Here is one way of doing that:   http://biztalkscheduledtask.codeplex.com/

    in reply to: Installing of LOB Adapter pack is failed #22713

    I’ve found a solution here and posted post (Yonathan) here

    in reply to: saving complete XML in XML element? #22710

    already tried this.

    Looks like the error occurs somwhere between 200 and 100 bytes.

    in reply to: Could not enlist Send Port – Exception 0xC00CE558 #22709

    It could be caused by the hidden newline characters \r\n in the manually edited XML binding file.

    ————————————————————————–

    148,150c148,152
    <       <ReceivePipelineData xsi:nil=”true” />
    <       <Tracking>0</Tracking>
    <       <Filter />
    —
    >       <ReceivePipelineData xsi:nil=”true”>\r\n
    >       </ReceivePipelineData>
    >       <Tracking>0</Tracking>
    >       <Filter>\r\n
    >       </Filter>
    191,193c193,197
    <       <ReceivePipelineData xsi:nil=”true” />
    <       <Tracking>0</Tracking>
    <       <Filter />
    —
    >       <ReceivePipelineData xsi:nil=”true”>\r\n
    >       </ReceivePipelineData>
    >       <Tracking>0</Tracking>
    >       <Filter>\r\n
    >       </Filter>
    223,225c227,231
    <           <ReceivePipelineData xsi:nil=”true” />
    <           <SendPipeline xsi:nil=”true” />
    <           <SendPipelineData xsi:nil=”true” />
    —
    >           <ReceivePipelineData xsi:nil=”true”>\r\n
    >           </ReceivePipelineData>
    >           <SendPipeline xsi:nil=”true” />
    >           <SendPipelineData xsi:nil=”true”>\r\n
    >           </SendPipelineData>
    257,259c263,267
    <           <ReceivePipelineData xsi:nil=”true” />
    <           <SendPipeline xsi:nil=”true” />
    <           <SendPipelineData xsi:nil=”true” />
    —
    >           <ReceivePipelineData xsi:nil=”true”>\r\n
    >           </ReceivePipelineData>
    >           <SendPipeline xsi:nil=”true” />
    >           <SendPipelineData xsi:nil=”true”>\r\n
    >           </SendPipelineData>
    291,293c299,303
    <           <ReceivePipelineData xsi:nil=”true” />
    <           <SendPipeline Name=”AE.Integration.Biztalk.AXElsmart.Pipelines.Snd_FiledropPassthruPipeline” FullyQualifiedName=”AE.Integration.Biztalk.AXElsmart.Pipelines.Snd_FiledropPassthruPipeline, AXElsmart.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a4c34afd4b0d4edb” Type=”2″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
    <           <SendPipelineData xsi:nil=”true” />
    —
    >           <ReceivePipelineData xsi:nil=”true”>\r\n
    >           </ReceivePipelineData>
    >           <SendPipeline Name=”AE.Integration.Biztalk.AXElsmart.Pipelines.Snd_FiledropPassthruPipeline” FullyQualifiedName=”AE.Integration.Biztalk.AXElsmart.Pipelines.Snd_FiledropPassthruPipeline, AXElsmart.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a4c34afd4b0d4edb” Type=”2″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
    >           <SendPipelineData xsi:nil=”true”>\r\n
    >           </SendPipelineData>

    Hi Scott,

    Are you trying to deploy the solution within Visual Studio directly to Dev and QA? Although this is supported but it’s not the recommended way for deploying BizTalk applications.

    Anyhow, you could try to add the Microsoft.Adapters.SAP.BiztalkPropertySchema.DLL as reference to your solution and then deploy. Doing this should add the DLL as resource for your application. When exporting the MSI file, you need to select the DLL (if it’s not already selected) to be exported in the “Select Resources” step.

    Hope this helps. 

    in reply to: Biztalk Server Load Balancing #22707

    I personally think that shouldn’t be an issue. you could use the low end server to handle process that doesn’t require a lot of computing power such as receive port or send port, and use the high end server to handle process that require a lot of computing power such as orchestration etc.

    I found a solution adding the Optional attribute, set the Use Requirement property to Optional, then at the schema level I set this properties:

    Allow Early Termination = yes

    Early Terminate Option Field = yes

    Parser Optimization = Complexity

     

    Here the article where I found the solution: http://blog.solidsoft.com/blogs/russells_blog/archive/2006/06/15/39.aspx

    Hope this helps!

    in reply to: saving complete XML in XML element? #22702

    Hi again,

    Don’t seems that there’s restriction for CDATA size. Message size? Not sure but sounds like possebility. Try insert as CDATA smaller messages, and then you will see on what size you get your exception.

     

    in reply to: Dynamic database action in BizTalk 2009 #22699

    Thank you Brunchey, I will try to read through out.

     

    Regards

    Matheu

Viewing 15 posts - 2,596 through 2,610 (of 9,648 total)