locked
FFDasm.exe - Dont trim the string RRS feed

  • Question

  • Hello everyone in BizTalk forum, may I ask you a question?

    I am using FFDasm.exe in BizTalk to transform Flat File(positional) to XML, but it did trim the string in the FlatFile.

    For example, the first 10 characters of Flat File is "First Name", it's "     Kenny", but in XML file, it's just "Kenny".

    How can I prevent trimming when deassembling the flat file ?

    Wednesday, December 4, 2013 2:34 AM

Answers

  • Hi,

    pad_char_type = "none" this will work for whitespaces at both ends i.e. at the start and the end of string.

    I believe you are not able to see in XML file because explorer and other browsers(HTML based) don't show whitespaces.

    But if you view source of that file you will find the whitespaces.


    Thanks,
    Prashant
    ----------------------------------------
    Please mark this post accordingly if it answers your query or is helpful.

    • Marked as answer by Angie Xu Monday, December 16, 2013 1:43 AM
    Tuesday, December 10, 2013 11:06 AM

All replies

  • Adding, or changing, pad_char_type in the Schema level annotation should give you the desired output:

    pad_char_type="none"

    You should also remove default_pad_char.

    • Proposed as answer by namnl Wednesday, December 4, 2013 4:01 AM
    Wednesday, December 4, 2013 3:17 AM
    Moderator
  • Hi Boatseller, how about the empty string in the end. For example, "   Kenny   ". I would like to check exactly what they enter in the text file.
    Tuesday, December 10, 2013 7:47 AM
  • Hi,

    pad_char_type = "none" this will work for whitespaces at both ends i.e. at the start and the end of string.

    I believe you are not able to see in XML file because explorer and other browsers(HTML based) don't show whitespaces.

    But if you view source of that file you will find the whitespaces.


    Thanks,
    Prashant
    ----------------------------------------
    Please mark this post accordingly if it answers your query or is helpful.

    • Marked as answer by Angie Xu Monday, December 16, 2013 1:43 AM
    Tuesday, December 10, 2013 11:06 AM
  • So....did you try it?  Are you not getting the expected results?

    As noted by PRASHANT.1704, you have to view the file in a text editor.

    Tuesday, December 10, 2013 12:34 PM
    Moderator
  • Yes. Thank you every one for your time.
    Friday, December 13, 2013 6:16 AM