PDA

View Full Version : XML Email rejected by < and > and <unknown-fields>


itognet
February 1st, 2013, 03:54 AM
Hi Commit,

I would like to hear, how we are supposed to deal with this situation:

I am updating an asset via XML E-mail. And we are not always in control of the data collected.
An example on this is some collected data:

<IconPath>C:\Program Files (x86)\Hewlett-Packard\HP Connection Manager\hpConnectionManager.exe</IconPath><ID>1</ID><Path>C:\Program Files (x86)\Hewlett-Packard\HP Connection Manager\hpConnectionManager.exe<Path><Parameters>OpenMainWindow</Parameters></Toast></hpNotification>"

The e-mail will be rejected by the CommitCRM with following error:
*** Errors occurred while processing the attached Email.
You should process this Email manually.
Reason: Data import procedure halted due to an error in the field matching file.
Invalid value in field mapping settings, in field:TITLE Does not exist in the CommitCRM dictionary.
Invalid value in field mapping settings, in field:TEXT Does not exist in the CommitCRM dictionary.
Invalid value in field mapping settings, in field:ICONPATH Does not exist in the CommitCRM dictionary.
Invalid value in field mapping settings, in field:ID Does not exist in the CommitCRM dictionary.
Invalid value in field mapping settings, in field:PATH Does not exist in the CommitCRM dictionary.
Invalid value in field mapping settings, in field:PARAMETERS Does not exist in the CommitCRM dictionary.


Is there a way, to include this or ignore this?

Support Team
February 1st, 2013, 07:57 AM
The problem is that XML data is included inside the content of a field...

This should be resolved using the CDATA XML token.

Wrap the data field content section with it and it should work.

A CDATA section starts with <![CDATA[ and ends with ]]>

Hope this helps.