|
Home > Archive > BizTalk Server > July 2005 > Generated XML content not valid
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Generated XML content not valid
|
|
| Gerrit Hulleman 2005-07-19, 7:48 am |
| Anyone know a solution for a scenario where the input contains invalid
charakters in the XML?
Eg. a field with content "dog & cat" in flatfile input results after mapping
in "<name>dog & cat</name>" in XML. This generates an error.
System: Biztalk 2002 enterprise
Custom functiod to remove special chars?
| |
| Jan Eliasen 2005-07-20, 2:48 am |
| Hi
I had a similar scenario a while ago. Are you sure, that the "dog &
cat" and generated as "<name>dog & cat</name>"? In my case, I had a
flatfile with " in it. They were translated to " in the XML that
got into the mapper. This gave another problem, namely that using
"String Extract"-functoid doesn't work with that, as it sees " as
6 characters instead of one...
So, Try mapping the content of the field to a string-field in the
output... and make sure it isn't translated into & as I would
suspect.
Have you installed service pack 1?
Jan Eliasen
On Tue, 19 Jul 2005 15:01:57 +0200, "Gerrit Hulleman"
<hulleman@tip.nl> wrote:
>Anyone know a solution for a scenario where the input contains invalid
>charakters in the XML?
>
>Eg. a field with content "dog & cat" in flatfile input results after mapping
>in "<name>dog & cat</name>" in XML. This generates an error.
>
>System: Biztalk 2002 enterprise
>
>Custom functiod to remove special chars?
>
--
Jan Eliasen, representing himself and not the company he works for.
| |
| Jeff Lynch 2005-07-20, 7:47 am |
| I don't see this issue in BTS2004 but I do remember it in BTS2002 prior to
SP1. I would make sure you have installed the latest BTS SP and any other
XML related SPs (MSXML 3.0 & 4.0) required for BTS2002. The "&" should be
encoded to "&" by BTS2002.
--
Jeff Lynch
"A BizTalk Enthusiast"
http://codebetter.com/blogs/jeff.lynch
"Jan Eliasen" <eliasen@nospam.nospam> wrote in message
news:f5prd19dteflo6nbsuchg3ea54hv46frrd@
4ax.com...
> Hi
>
> I had a similar scenario a while ago. Are you sure, that the "dog &
> cat" and generated as "<name>dog & cat</name>"? In my case, I had a
> flatfile with " in it. They were translated to " in the XML that
> got into the mapper. This gave another problem, namely that using
> "String Extract"-functoid doesn't work with that, as it sees " as
> 6 characters instead of one...
>
> So, Try mapping the content of the field to a string-field in the
> output... and make sure it isn't translated into & as I would
> suspect.
>
> Have you installed service pack 1?
>
> Jan Eliasen
>
> On Tue, 19 Jul 2005 15:01:57 +0200, "Gerrit Hulleman"
> <hulleman@tip.nl> wrote:
>
>
> --
> Jan Eliasen, representing himself and not the company he works for.
| |
| Gerrit Hulleman 2005-07-22, 5:50 pm |
| Thanks for all the responses. Reinstalled the server, patched to the max.
Issue seems to be gone now. Perhaps I missed a patch or two...
Btw: for people out there using BizTalk with Axapta 2002 using the commerce
gateway: there is a (not-public known) issue with recid's. Do not use the
commerce gateway COM component, it may screw up your database. Create an
Axapta batch to poll a directory where BizTalk places it files.
--
Gerrit
"Jeff Lynch" <jeff.lynch@newsgroup.nospam> wrote in message
news:#VEMvlSjFHA.3256@TK2MSFTNGP12.phx.gbl...
> I don't see this issue in BTS2004 but I do remember it in BTS2002 prior to
> SP1. I would make sure you have installed the latest BTS SP and any other
> XML related SPs (MSXML 3.0 & 4.0) required for BTS2002. The "&" should be
> encoded to "&" by BTS2002.
>
> --
> Jeff Lynch
> "A BizTalk Enthusiast"
> http://codebetter.com/blogs/jeff.lynch
>
>
> "Jan Eliasen" <eliasen@nospam.nospam> wrote in message
> news:f5prd19dteflo6nbsuchg3ea54hv46frrd@
4ax.com...
>
>
|
|
|
|
|