how to create groups using LoadFromFile utility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
how to create groups using LoadFromFile utility
hi,
I tried to create a groups by LoadFromFile Utility, but i got the errors like
these,
C:\ptc\Windchill_9\Windchill\loadFiles>windchill wt.load.LoadFromFile -d groups.xml
Error detected in createUserGroup <ast authors=">
Loader method wt.load.LoadUser.createUserGroup reported a failure
No objects were imported due to the error.
Unexpected problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported a failure Error loading data from file.
data file = <groups.xml,c:\ptc\windchill_9\windchill\loadfiles\groups.xml>
map file = <null,null>
token separator = <null,null>
method = <null,create>
user = <null>
Command line = <{}>
Unexpected problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported a failure
and my groups.xml file :
<nmloader>
<csvusergroup handler="wt.load.LoadUser.createUserGroup">
<csvuser></csvuser>
<csvgroupname>Authors</csvgroupname>
<csvusername>ast</csvusername>
</csvusergroup>
<csvusergroup handler="wt.load.LoadUser.createUserGroup">
<csvuser></csvuser>
<csvgroupname>Authors</csvgroupname>
<csvusername>ddb</csvusername>
</csvusergroup>
</nmloader>
What am I missing?
- Shreyas Atre
- Labels:
-
Other
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Shreyas
The xml you're using is supposed to add existing user to existing group. So you're probably getting the error because you have no 'ast' user and/or have no 'Authors' group in the container you're trying to load data (Site level in your case, since you're not using the -CONT_PATH)
To just create a group, use the following:
<nmloader>
<csvgroup handler="wt.load.LoadUser.createGroup">
<csvuser></csvuser>
<csvgroupname>TestGroup</csvgroupname>
<csvdescription>TestDataLoadGroup</csvdescription>
</csvgroup>
</nmloader>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thanks Dmitry,
Now I m able to create group, but how to add existing user to group I am using<nmloader>
<csvgroup handler="wt.load.LoadUser.createGroup">
<csvgroupname>TestGroup</csvgroupname>
<csvdescription>TestDataLoadGroup</csvdescription>
<csvusername>approver1</csvusername>
</csvgroup>
</nmloader>
it gives error
C:\ptc\Windchill_9\Windchill\loadFiles>windchill wt.load.LoadFromFile -d groups.xml -u wcadmin -p wcadmin -CONT_PATH \"/wt.inf.container.OrgContainer=Royal"
Error in XML input file Error loading data from file.
data file = <groups.xml,c:\ptc\windchill_9\windchill\loadfiles\cust\groups.xml>
map file = <null,null>
token separator = <null,null>
method = <null,create>
user = <null>
Command line = <{CONT_PATH=/wt.inf.container.OrgContainer=Royal}>
Error in XML input file
Approver1 is existing user in Royal org,what I am missing?
- Shreyas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Everything you need to know is in the example xml load files, just open them up and you'll figure this out in no time.
Sent from my Verizon Wireless BlackBerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try this for loading users into groups.
<csvusergroup handler="wt.load.LoadUser.createUserGroup">
<csvuser></csvuser>
<csvgroupname>PDMLink Users</csvgroupname>
<csvusername>cd03882</csvusername>
<csvdirectoryservice></csvdirectoryservice>
</csvusergroup>
This is what I used to load users into groups.
HTH,
Alexius C. Chukwuka
JDPS Division SAP BASIS Team
John Deere Power Systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Shreyas, use
<nmloader>
<csvusergroup handler="wt.load.LoadUser.createUserGroup">
<csvuser></csvuser>
<csvgroupname>TestGroup</csvgroupname>
<csvusername>approver1</csvusername>
</csvusergroup>
</nmloader>
to add existing user to existing group.
Also, since you're using -CONT_PATH \"/wt.inf.container.OrgContainer=Royal" when adding approver1 to the group TestGroup, make sure you have the group created in the Royal org, not on the Site level.
In Reply to Shreyas Atre:
thanks Dmitry,
Now I m able to create group, but how to add existing user to group I am using<nmloader>
<csvuser></csvuser>
<csvgroup handler="wt.load.LoadUser.createGroup">
<csvgroupname>TestGroup</csvgroupname>
<csvdescription>TestDataLoadGroup</csvdescription>
<csvusername>approver1</csvusername>
</csvgroup>
</nmloader>it gives error
Approver1 is existing user in Royal org,what I am missing?
- Shreyas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
I'm trying to load and existing user to an existing group using the LoadFrom File utility and i'm getting an error
G:\PTC\Windchill_10.0\Windchill\loadFiles>windchill wt.load.LoadFromFile -d C:\Kiran\User_List\05-16-2013\testgroup.xml
Error detected in createUserGroup <emp00264 norma_applications_engineers=">
Loader method wt.load.LoadUser.createUserGroup reported a failure
No objects were imported due to the error.
Unexpected problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported a failure Error loading data from file.
data file = <c:\kiran\user_list\05-16-2013\testgroup.xml,c:\kiran\user_list\05-16-2013\testgroup.xml>
map file = <null,null>
token separator = <null,null>
method = <null,create>
user = <null>
Command line = <{}>
Unexpected problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported a failure
This is my xml file.
<nmloader>
<csvusergroup handler="wt.load.LoadUser.createUserGroup">
<csvuser></csvuser>
<csvgroupname>NORMA_Applications_Engineers</csvgroupname>
<csvusername>emp00264</csvusername>
<csvdirectoryservice></csvdirectoryservice>
</csvusergroup>
</nmloader>
Any suggestions would be helpful.
Thanks,
Kiran Lakshminarayanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
>
> Hi All,
>
> I'm trying to load and existing user to an existing group using the LoadFrom File utility and i'm
> getting an error
>
> G:\PTC\Windchill_10.0\Windchill\loadFiles>windchill wt.load.LoadFromFile -d
> C:\Kiran\User_List\05-16-2013\testgroup.xml
> Error detected in createUserGroup <emp00264 norma_applications_engineers=">
> Loader method wt.load.LoadUser.createUserGroup reported a failure
> No objects were imported due to the error.
> Unexpected problem in export/import process.
> Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported
> a failure Error loading data from file.
> data file = <c:\kiran\user_list\05-16-2013\testgroup.xml,c:\kiran\user_list\05-16-2013\testgroup.xml>
> map file = <null,null>
> token separator = <null,null>
> method = <null,create>
> user = <null>
> Command line = <{}>
> Unexpected problem in export/import process.
> Nested exception is: wt.util.WTException: Loader method wt.load.LoadUser.createUserGroup reported
> a failure
>
> This is my xml file.
>
>
>
> <nmloader>
>
> <csvusergroup handler="wt.load.LoadUser.createUserGroup">
> <csvuser></csvuser>
> <csvgroupname>NORMA_Applications_Engineers</csvgroupname>
> <csvusername>emp00264</csvusername>
> <csvdirectoryservice></csvdirectoryservice>
> </csvusergroup>
>
> </nmloader>
>
> Any suggestions would be helpful.
>
Leave out the csvDirectoryService?
When I loaded existing users into existing groups I used the following format for csvUserGroup
<csvusergroup handler="wt.load.LoadUser.createUserGroup">
<csvuser></csvuser>
<csvgroupname>Corporate</csvgroupname>
<csvusername>dougjone</csvusername>
</csvusergroup>
> Thanks,
>
> Kiran Lakshminarayanan
>
>
> -----End Original Message-----
--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------