|
Home > Archive > WebSphere Commerce suite > October 2005 > Problem in id resolution using id resolver
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 |
Problem in id resolution using id resolver
|
|
|
| Hello,
I have a problem in Id resolution from one xml file to another.
catalog.xml has catgroup_id. I am using id resolver to resolve the id.The store-catalog.xml is naother file which refers the catgoup_id. I used the same alias name in both the files
catalog.xml has contents
<catgroup
catgroup_id="@catgroup_id_12"
member_id="&MEMBER_ID;"
identifier="Test Load zz12"
markfordelete="0"
/>
and store-catalog has
<storecgrp
storeent_id="10051"
catgroup_id="@catgroup_id_12"
/>
I ran the id resolver command the catalog. xml first and then for store-catalog.xml.
But an error is generaed for store-catalog.xml as
<storecgrp catgroup_id="" storeent_id="10051">
<error id="UnresolvedID" locus="com.ibm.wca.IdResGen.Handler.Foreign">
<message>The attribute "CATGROUP_ID" is
unresolved. </message>
</error>
</storecgrp>
Can anyone say, how can i resolve this dependency. I only wnat to load the catalog data through id resolution and mass loader
| |
| Robert Brown 2005-10-24, 4:26 pm |
| Combine the two source files and run idresgen on both at the same time.
I read that you are trying to run the tool twice perhaps on two files.
R
> Hello,
> I have a problem in Id resolution from one xml file to another.
> catalog.xml has catgroup_id. I am using id resolver to resolve the id.The store-catalog.xml is naother file which refers the catgoup_id. I used the same alias name in both the files
>
> catalog.xml has contents
> <catgroup
> catgroup_id="@catgroup_id_12"
> member_id="&MEMBER_ID;"
> identifier="Test Load zz12"
> markfordelete="0"
> />
>
> and store-catalog has
> <storecgrp
> storeent_id="10051"
> catgroup_id="@catgroup_id_12"
> />
>
> I ran the id resolver command the catalog. xml first and then for store-catalog.xml.
> But an error is generaed for store-catalog.xml as
>
> <storecgrp catgroup_id="" storeent_id="10051">
> <error id="UnresolvedID" locus="com.ibm.wca.IdResGen.Handler.Foreign">
> <message>The attribute "CATGROUP_ID" is
> unresolved. </message>
> </error>
> </storecgrp>
>
> Can anyone say, how can i resolve this dependency. I only wnat to load the catalog data through id resolution and mass loader
>
| |
|
| Thanks Robert
But if i am combining the sourc files, i will have to run the id resolver only once, i guess.The other alternative what i did is, i had combined the dtd, as wll as created a single source xml and ran the id resolver once.
SO I am not still clear about the reply you gave, about combining the source file and running id resolver twice.Can you give you mail id, so that i can contact you through mail.
| |
| Robert Brown 2005-10-24, 4:26 pm |
| I didn't mean to imply that you run the idresgen twice. Just run it
once on both sets of tags (catgroup and storecat). You combined the two
xml files which is what I was getting at...sorry I wasn't clear.
We mostly deal with multiple CSV files that are combined into one large
XML for XSL translation. After the generic xml file is run against
xmltransform the output file looks like what you posted. In my opinion
it is easier to work with a CSV format (raw data) and
transform/translate it to the WC xml format rather than build an XML for
the resolver and massloader from scratch.
R
=====
rbrown@redbaritone.com
Robert Brown
Senior WebSphere Commerce Consultant
817-938-6402
www.redbaritone.com
resonance, harmony and economy in e-business
> Thanks Robert
> But if i am combining the sourc files, i will have to run the id resolver only once, i guess.The other alternative what i did is, i had combined the dtd, as wll as created a single source xml and ran the id resolver once.
> SO I am not still clear about the reply you gave, about combining the source file and running id resolver twice.Can you give you mail id, so that i can contact you through mail.
| |
|
|
|
|
|