Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
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
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>
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">
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
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
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