none
BizTalk 2010 migration

    問題

  •  Hi

    I have migrated my BizTalk 2009 application to BizTalk 2010 and after migration I am getting following in send pipeline. Same process is working fine in BizTalk 2009 environment.

    Unable to read the stream produced by the pipeline. Details: Value cannot be null. Parameter name: format

    I have compared the XML's from both the environments and they looks same. The send pipe is using Flat File assembler.

    Thanks!

    2012年6月5日 下午 05:20

解答

  • Are you doing any mapping in the send pipeline?  Is the XML input to the flat file assembler complete (contains all child field elements)?  Try the following to determine where your process is failing (MAP or Assembler).

    1. Change the send assembler to pass-through.
    2. Change the transport location to file.
    3. Run a test to see if it fails.  If it does fail and you're doing mapping, you might need to modify your map to account for missing non-nullable field elements.
    4. If it doesn't fail, use the output XML from 3. above as input to the command line flat file assembler utilityFFAsm.exe.  You can find it in <BTS install directory>SDK\Utilities\PipelineTools.  If it fails in the flat file assembler, post your schema and the sample input XML for us to take a look at.

    An example of running the FFAsm.exe utility is:  FFAsm.exe SampleInput.xml -bs SampleInputSchema.xsd

    Using FFAsm.exe and FFDasm.exe are very efficient when debugging flat file schemas.


    David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.

    • 已標示為解答 Harbir 2012年6月7日 下午 02:40
    2012年6月6日 下午 04:34

所有回覆

  • Hi,

    It is probably that we need set default values for some nodes or make them nillable. Could you please run FFAsm tool against the xml file to see if it give more detailed error message?

    Pipeline Tools

    http://msdn.microsoft.com/en-us/library/aa547988.aspx

    Thanks.


    Leo Tang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2012年6月6日 上午 06:20
    版主
  • are you sending to SQL? if sql column is nullable then either you need to pass isnil attribute or need to set minoccurs to 0 to make the element as optional. 



    KiranMP

    2012年6月6日 上午 09:31
  • Are you doing any mapping in the send pipeline?  Is the XML input to the flat file assembler complete (contains all child field elements)?  Try the following to determine where your process is failing (MAP or Assembler).

    1. Change the send assembler to pass-through.
    2. Change the transport location to file.
    3. Run a test to see if it fails.  If it does fail and you're doing mapping, you might need to modify your map to account for missing non-nullable field elements.
    4. If it doesn't fail, use the output XML from 3. above as input to the command line flat file assembler utilityFFAsm.exe.  You can find it in <BTS install directory>SDK\Utilities\PipelineTools.  If it fails in the flat file assembler, post your schema and the sample input XML for us to take a look at.

    An example of running the FFAsm.exe utility is:  FFAsm.exe SampleInput.xml -bs SampleInputSchema.xsd

    Using FFAsm.exe and FFDasm.exe are very efficient when debugging flat file schemas.


    David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.

    • 已標示為解答 Harbir 2012年6月7日 下午 02:40
    2012年6月6日 下午 04:34