Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I just unzipped the product template, i fond two xml TAG-0.xml and TAG_ContainerTemplate-0.xml. iam unable to load
Solved! Go to Solution.
Please @RaikarRaghu
can you understand that you use wrong container to load?
If you download something from Windchill do not expect that you can easily load it by load from file instantly.
share the XML and others can see where is your issue.
PetrH
Hi @RaikarRaghu,
Thank you for your question.
I’d like to recommend to bring more details and context to your initial inquiry.
It also helps to have screenshot(s) to better understand what you are trying to do in your process.
This will increase your chances to receive meaningful help from other Community members.
Regards,
Community Moderation Team.
I've done this before where I downloaded the product template, extracted the files, edited and want to import back in. Are you looking at updating existing contexts? Or are you looking at updating the product template for new products? If its the latter, I recommend zipping it back up and using the web UI.
You can provide the modified template file back again.
As an aside, once, a long, long time ago, I did take a product template, extract the files and make ACL changes that I want to propagate to all existing contexts. It only allowed me to add but I took a portion of the template, not the whole thing. I had to run it for each context. In hindsight, I was better off make the changes via the UI which is a PITA but I did not have to fight with the command line. I was able to create a check report in Excel that can help spot deviations between the ACLs which would in my case.
Hello @RaikarRaghu,
It looks like you have a response from a community member. If it helped you solve your question please mark the reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Community Moderation Team.
Thank you for your response.
Yah i tried by loading that xml through import in UI level its importing. Now i am trying to load through loaders.
In the below image, i import the Tag-0.xml through UI level, template get created , and same xml i tried through loader it was failing.
this is my bat file, once i run that bat file it will execute the load command from the windchill shell.
error message after the running the load command
Hi @RaikarRaghu
CONTH PATH is not correctly defined
https://www.ptc.com/en/support/article/CS384545
the argument has to be between " as example in the article.
In your case the " is missing
-CONT_PATH \"/wt.inf.container.OrgContainer=Demo Organization\"
put your parameter tmp_org between "".
PetrH
Hello @HelesicPetr
this is the command i am using :-
windchill wt.load.LoadFromFile -d D:\ptc\Windchill_12.1\Windchill\loadFiles\suprajith\sup_product\TAG-0.xml -u wcadmin -p wcadmin -CONT_PATH \"/wt.inf.container.OrgContainer=PTC\".
I modified and i tried it is not loaded.
this is the error message i am getting and i have one more query how the template name get created.
Thanks
This is the MS logs i found only this much
Please anyone can help me to load the product template through a loafromfile utility.
Hi @RaikarRaghu
the log says that you use organisation container instead of product container.
so your xml can be bad.
Hi @HelesicPetr
Thank you for your response, i tried by loading the same xml file from the UI Import action it is successfully creating template, but if i tried with the loadfromfile utility it was failing to create the template.
Please @RaikarRaghu
can you understand that you use wrong container to load?
If you download something from Windchill do not expect that you can easily load it by load from file instantly.
share the XML and others can see where is your issue.
PetrH