on 2005 Apr 16 1:59 PM
Hi All
I created 2 DC's
I added DC A as a used DC to DC B .
When I try running a View from DC A everything work fine.
When I try to activate the my activity I get the following error:
Metadata of component Test is not valid! ComponentUsage
Role "UsedComponent": A minimum of 1 object(s) is required
Component Test [WDTest]: Component usage has no used component
What am I doing wrong
Thanks
Theo
Hi! I faced the same problem and solved it!
The way out is:
- After you add usage of used DC in DC MetaData, go to WD Components -> YourComponent -> Used WD Components -> RightClick -> Add Used Component. Add your used dc here.
IF YOU SIMPLY Embed an existing component on the diagram view of your wd component - IT DOESDN'T WORK and behave the way it was describe above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theo,
Delete the usage and recreate it. Make sure all files are added to the activity. Do a DC reload+rebuild. And if necessary, repair the window as the error suggests. Make sure the DC B is already checked into the DTR.
Thanks,
Rajit Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore
When you say never used the component , In my case the only task I perform with the used component is to render a view in an embedded view set.
Here the code which I use to create my component
wdThis.wdGetWDCLCompComponentUsage().createComponent();
wdThis.wdGetCreateComponent_WDCLCompAction().setEnabled(false);
wdThis.wdGetCreateComponent_WDCLCompAction().setEnabled(true);
wdThis.wdFirePlugOutbound_WDCLComp();
And Here the error log when I try to activate the code
[wdgen] [Warning] Metadata of component FindPatients is not valid! ComponentUsage "//WebDynpro/Component:com.aramco.sao.scc.mdfs.app.FindPatients/ComponentUsage:WDCLComp", Role "UsedComponent": A minimum of 1 object(s) is required
[wdgen] [Error] Component FindPatients: Has invalid component usage 'WDCLComp'
[wdgen] [Error] NavigationTargetReference com.aramco.sao.scc.mdfs.app.FindPatientsViewUsage1_Outbound_WDCLComp_1: Link has no target (Hint: Repair Window)
[wdgen] [Error] ViewUsage com.aramco.sao.scc.mdfs.wdcl.comp.WDCLWindowInterfaceViewWDCLCompUsage1: Embedded View/InterfaceView is missing (Hint: Repair Window)
[wdgen] [Error] Component FindPatients [WDCLComp]: Component usage has no used component
Thanks
Theo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes my CMS is configured correclty.
What I mean by test it . I can deploy the whole App to my local J2EE instance and it work. I only start getting errors when I activate my code by means of doing a checkin.
Theo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi theo
What kind of error do u get. Maybe it is not able to build the dependent components. Can you tell what error you get while doing a checkin. We have done it here and never faced the problem except in the case of a dependency check , it fails.
Check if your child component is deployed properly.
Also please post the error message you get when you do a checkin.
regards
Ravi
Hi Ravi
I follow these steps to add a use webdynpro component to my app. When I test it locally it works fine .
I get these build error when I do a CMS build avtivate my activity
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi theo
Let me know if you have done the following steps.
1. Build and Deploy DC A
2. Create a public part in DC A
3. Add the created public part as UsedDC's in DC B
4. In DC B under used webdynpro components define the usage of component DC A.
Then build and deploy DC B. It should work fine.
regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.