Monday, August 15, 2016

Use of PreventWhiteSpace Property in XMLPort Dynamics NAV

Hello Friends,

Recently I have face the issue in file import by XMLPort.
XMLPort has automatic replace the double space from item code by single space. Because of that I have got error message item code doesn’t exists in item table.

For example,
File has contain item code - HL330063A  REV.0 (it has contain double space)
While we import file the XMLPort has convert the item code as - HL330063A REV.0 (it has contain only single space)

There is one property in XMLPort – PreserveWhiteSpace

Determines whether white space should be preserved in documents that are imported through an XMLport.

By default, Microsoft Dynamics NAV supports the XML standard by normalizing white space in attribute names and values that are imported through an XMLport. It converts tabs, carriage returns, and spaces to single spaces. It also eliminates leading and trailing white space.
When this property is set to Yes, none of these normalizations is performed

So, avoid this issue we just need to set this property value = Yes






















I hope it will help in future.

Find the more detail  at - https://msdn.microsoft.com/en-us/library/ee909558.aspx?f=255&MSPPError=-2147217396

Thank you for reading.
Keep Sharing...Keep Growing....

2 comments:

  1. Hi, thanks for the post, how about when I want to preserveWhiteSpace when exporting. my data is in multiline fomart in Navision. but even when I set preserveWhiteSpace to yes upon exportiong shows everything as one line

    ReplyDelete

  2. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.

    bulletintech
    how tall is dababy
    henry sedgwick v
    justdubs
    citra emulator apk
    frank rocky fiegel
    how to program rca universal remote
    taylor olsen
    natalie 90 day fiance

    ReplyDelete