Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
rstici
Contributor
Contributor

Unwanted generation of namespace prefix using tHMap after 7.2.1 upgrade

Hello,

 

Since the Talend upgrade to version 7.2.1 i'm experiencing some issues with the xml namespace, more precisely:

I'm having a job that generates xml's using a tHMap component based on a predefined schema and a namespace associated with that schema.
In the namespace configuration i have a URL="https://www.w3schools.com/" and the prefix="default". Since Talend Open Studio 7.2.1 that "default" prefix of the namespace is getting generated in the xml like this:

<default:Store xmlns:default="https://www.w3schools.com/">
    <default:BooksCollection>
        <default:Book>
            <default:Author>
                <default:Name>Some name</default:Name>
                <default:Country xmlns:default="https://www.w3schools.com/">
                    <default:Code>GB</default:Code>
                </default:Country>
            </default:Author>
            <default:Genre xmlns:default="https://www.w3schools.com/">Adventure</default:Genre>
            <default:Pages xmlns:default="https://www.w3schools.com/">200</default:Pages>
            <default:Language xmlns:default="https://www.w3schools.com/">English</default:Language>
		</default:Book>
	</default:BooksCollection>
</default:Store>

I tried to remove the prefix from the namespace configuration but i couldn't save the configuration because it couldn't be saved without a prefix.
One more thing related to this issue is that the attribute xmlns should be present only on the first element but it got generated on a "random" number of elements.

Here is the namespace configuration:

0683p000009M7nb.png

Labels (3)
6 Replies
rstici
Contributor
Contributor
Author

Hello,

 

I'm using a tHMap to generate an XML based on a structure. The problem i encounter is while removing the namespace container from that XML structure. 

Like this:

 0683p000009M7rR.png

 

After removing the namespace container, when trying to run the job I'm getting this error "The specified namespace container was not found. Please set the XML representation to refer to the correct namespace container".

 

My question is: How do i remove the namespace entirely from the XML

Anonymous
Not applicable

Hello,

We have redirected your TDM issue to our PMs and experts and then come back to you as soon as we can.

Thanks for your time.

Best regards

Sabrina

Anonymous
Not applicable

Hello,

Could you please file a jira issue and attach the project that used to work before 7.2.1.  Our TDM experts are going to investigate this issue by checking your job and TDM resources.

Best regards

Sabrina

 

rstici
Contributor
Contributor
Author

Hi Sabrina, thank you for your reply.

 

I tried to export the Hierarchical Mapper from the old studio(6.2.1) and import and overwrite it in the new studio(7.2.1) but there was no luck, the issue is still the same.

 

rstici
Contributor
Contributor
Author

Anonymous
Not applicable

Hello,

Thanks for posting the jira link here. Feel free to add your comments in it.

Best regards

Sabrina