BizTalk Server General - BT2004 Test Map: Cannot use a prefix with an empty namespace

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2004 > BT2004 Test Map: Cannot use a prefix with an empty namespace





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 BT2004 Test Map: Cannot use a prefix with an empty namespace
Elizabeth Graham

2004-03-20, 9:23 pm

I am getting an error when trying to test a document using
the mapper in BT2004 RTM. This is the first non-lab
project that I have created. In the project I have two
schemas and a map that were migrated from BT2002. I have
made a couple of necessary changes to the schemas and
maps. When I validate a test document against the source
schema, it validates successfully. However, when I try to
run the same file through the Mapper, I am getting the
following error:

Native serialization error: Cannot use a prefix with an
empty namespace.

The following information might be useful:

1) Both schemas are Flat Files.
2) In both schemas the Attribute FormDefault is set to
Unqualified.
3) In both schemas the Element FormDefault is set to
Unqualified.
4) Target Namespace is set to http://project name.filename

Any help would be appreciated.

Thanks,
Elizabeth
Tomas Restrepo \(MVP\)

2004-03-20, 9:23 pm

Elizabeth,

> I am getting an error when trying to test a document using
> the mapper in BT2004 RTM. This is the first non-lab
> project that I have created. In the project I have two
> schemas and a map that were migrated from BT2002. I have
> made a couple of necessary changes to the schemas and
> maps. When I validate a test document against the source
> schema, it validates successfully. However, when I try to
> run the same file through the Mapper, I am getting the
> following error:
>
> Native serialization error: Cannot use a prefix with an
> empty namespace.
>
> The following information might be useful:
>
> 1) Both schemas are Flat Files.
> 2) In both schemas the Attribute FormDefault is set to
> Unqualified.
> 3) In both schemas the Element FormDefault is set to
> Unqualified.
> 4) Target Namespace is set to http://project name.filename
>
> Any help would be appreciated.


Can you show us what the document looks like?
Somehow, from the error, one would gather somewhere something like this
ended up:
<ns0:element xmlns:ns0="">....
which is invalid according to the XML Namespaces specification.
--
Tomas Restrepo
tomasr@mvps.org


Elizabeth Graham

2004-03-22, 11:39 am

I was able to fix the issue before this post. Before the
fix however, the output was <ns0:element
xmlns:ns0="value">. The xmlns:ns0 property was not blank.

In order to fix the problem, I had to modify my schemas.
The error seemed to be caused by the fact that I was
migrating the schemas from BT2002. Once I got the schemas
to resemble a BT2004 schema, every thing worked.

For information on how I got the schemas to work in BT2004
please see my post in the "BT2004 Migrated Schemas
question" thread.

Thanks,
Elizabeth
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com