Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi,
I've been trying to implement the "Structured Authoring and Automated Assembly and Publishing Practice Test Cases".
This requires some data loading with the "windchill wt.load.LoadFromFile" utility, but it seems to generate
errors and I'm unable to continue.
Below is a transcript of what went on in the Windchill shell (showing the error 'createContainer: The value of
"Template Reference" cannot be set to null, since it is a "required" attribute'.
Has anyone been able to use these test cases without error?
Thanks,
Richard Steadman
C:\ptc\Windchill_9.1\Windchill>windchill wt.load.LoadFromFile -d loadfiles\Custom\SAAP_Loaders\SAAP_91_02_Organization.xml -u xxx -p xxx
createContainer: The value of "Template Reference" cannot be set to null, since it is a "required" attribute.
Loader method wt.inf.container.LoadContainer.createOrgContainer 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.inf.container.LoadContainer.createOrgContainer reported a fai
lure Error loading data from file.
data file = <loadfiles\Custom\SAAP_Loaders\SAAP_91_02_Organization.xml,C:\ptc\Windchill_9.1\Windchill\loadfiles\Custom\S
AAP_Loaders\SAAP_91_02_Organization.xml>
map file = <null,null>
...
Richard
Seems you are using Windchill with loaded localized data so your template name is not "General" as specified in the SAAP_91_02_Organization.xml (in the <csvcontainerTemplateRef> tag). Edit the .xml with actual name and try again.
See the attached screenshot - I have Russian localized data loaded and my template name for Organization is in Cyrillic. If I were loading the xml, I'd have to modify the tag from <csvcontainerTemplateRef>General<csvcontainerTemplateRef> to <csvcontainerTemplateRef>Общее<csvcontainerTemplateRef>
Hi Dmitry,
Thanks a lot for your response. I do not have localized data as far as I know, only English.
However, originally I was only using "Windchill PDMLink", and I have since installed
"Windchill ProjectLink", which seems to be what these test cases need (though it
doesn't say so in the documentation).
With ProjectLink installed the LoadFromFile command which failed before now works.
I no longer have the original environment to check if there was anything funny (or missing)
with the "General" template, thought I suspect it was there in the basic PDMLink installation.
Thanks again for your help,
Richard.