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....

No comments:

Post a Comment