XML Job Key Issue

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
VijayDS
Participant
Posts: 38
Joined: Thu Jun 18, 2009 3:50 am

XML Job Key Issue

Post by VijayDS »

Hi,

I am trying to read the XML file but getting the below issue.

XML_Input_1,0: Error: No repetition element specified for link "DSLink4". Please make sure a column that contains the repetition path is set as key in the output link table definition.

Please let me know what is repetetion path set as key and suggest how I can resolve this.


My Job design is

ExternalSource---------->XML Input--------------->File
Thanks
Vijay
Kayalbaskaran
Participant
Posts: 10
Joined: Tue Jun 24, 2008 4:27 am

Post by Kayalbaskaran »

You need to specify any one column (based on your requirement) as Key in the OUTPUT COLUMN tab.
VijayDS
Participant
Posts: 38
Joined: Thu Jun 18, 2009 3:50 am

Post by VijayDS »

Thanks Bhaskaran for your quick reply. I have specified int he Output columns now it's thrown another issue like below.

XML_Input_1,0: Error: The prefix 'bdt' is not declared.
expression = '/bdt:ExportRoot' Remaining tokens are: ('/')


Can someone help me on this how to declare this?


Kayalbaskaran wrote:You need to specify any one column (based on your requirement) as Key in the OUTPUT COLUMN tab.
Thanks
Vijay
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

that is a namespace prefix. How did you import your metadata...if you imported via the xml metadata importer, and you "loaded" your column names from the "load" button, be sure also to use the "load" button also in the Transformation settings/namespace tabs to include the namespace prefixes on your output link..........

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
parag.s.27
Participant
Posts: 221
Joined: Fri Feb 17, 2006 3:38 am
Location: India
Contact:

Post by parag.s.27 »

Have you ever worked with HTML or XML tags.

Actually you have to define the hierarchy structure.

For e.g

Customer Info/Cust Name
Customer Info/Cust Name/First Name
Customer Info/Cust Name/Last Name
Customer Info/Cust Addr
Customer Info/Cust Addr/Addr1
Customer Info/Cust Addr/Addr2

The output would be something like : -

<Customer Info>
<Cust Name>
<First Name>PHILLIP</First Name>
<Last Name>FERNANDES</Last Name>
</Cust Name>
<Addr>
<Addr1>123 XYZ road</Addr1>
<Addr2>LMN State</Addr2>
</Addr>
</Customer Info>

I've told you XML usage in very detailed manner. I think now you can decide upon type of data and data definition. Hope this helps.
Thanks & Regards
Parag Saundattikar
Certified for Infosphere DataStage v8.0
VijayDS
Participant
Posts: 38
Joined: Thu Jun 18, 2009 3:50 am

Post by VijayDS »

Thanks for all. It's worked fine after loading namespace declaration in the stage properties and also in the Output properties also.


eostic wrote:that is a namespace prefix. How did you import your metadata...if you imported via the xml metadata importer, and you "loaded" your column names from the "load" button, be sure also to use the "load" button also in the Transformation settings/namespace tabs to include the namespace prefixes on your output link..........

Ernie
Thanks
Vijay
Post Reply