Cancel
Showing results for 
Search instead for 
Did you mean: 

BMIDE: model.xml problem - deploy model failed

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Good morning guys,

my customer work with tcx53 and now i setting a test environment to test a migration.

I've try to run a deploy of their datamodel package but  when tem running i've a lot of problem: is same the model.xml and model_lang.xml is not alligned as model_backup.xml and model_backup_lang.xml

When TEM run the command "bmide_pretemplateinstall.bat -u=infodba -p=infodba -g=dba -templates=xxx" return some error like "Error! Model Error: C:\Siemens\TC53\TCDATA\model\lang\model_backup_lang.xml Line:4597 Column:77 Undefined Business Object PDF (id) in key." and " C:\Siemens\TC53\TCDATA\model\model_backup.xml Line:30338 Column:262 Undefined Business Object PDF (objectTypeName) in TcDeepCopyRule.".

I would clean up the situation for have a correct situation.

 

I've tried to run other command:

bmide_generatetcplmxmlschema.bat

bmide_processtemplates.bat

but i've ever the same result with the error described under.

 

How can heal the situation?

 

I've found this tips on GTAC:

1. Set the environment variables PASSWD and TEMP_WORKING_DIR

2. Copy all of the template files into the temporary directory:



copy %TC_DATA%\model\*_dependency.xml %TEMP_WORKING_DIR%
copy %TC_DATA%\model\*_template.xml %TEMP_WORKING_DIR%
copy %TC_DATA%\model\lang\*_template_*.xml %TEMP_WORKING_DIR%\lang
copy %TC_DATA%\model\master.xml %TEMP_WORKING_DIR%

3. Consolidate the template files:
%TC_ROOT%\bin\bmide_consolidator -dir=%TEMP_WORKING_DIR% -file=model_consolidated.xml -consolidate=all
image.png
4. Extract from the database:
%TC_ROOT%\bin\business_model_extractor -u=infodba -p=%PASSWD% -g=dba -outfile=model_extracted.xml -mode=all
image.png
5. Compare templates vs. database:
%TC_ROOT%\bin\bmide_comparator -compare=all -old=model_extracted.xml -new=model_consolidated.xml -delta=check_delta.xml -log=compare_model.log
image.png

On the step 5 i've problem and in a log file i find this error:
image.png

Matching the 2 files i can find immediatly that are different by dimensions.

 

Can you help me?

 

Thank you very much,

Francesco

4 REPLIES 4

Re: BMIDE: model.xml problem - deploy model failed

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
Does tcx53 mean Teamcenter Express? Looks like someone tried to deploy a fix for PDF previously that is causing problems.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: BMIDE: model.xml problem - deploy model failed

Phenom
Phenom

I seem to remember a bug in an early version of Teamcenter Express where siemens missed out the PDF dataset and you had to create it manually.  This would then cause problems on upgrade as PDF would have been craeted using custom template and not the COTs one.

Richard Bennett
PLM Consultant
www.ProspectPLM.co.uk

Re: BMIDE: model.xml problem - deploy model failed

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

@RandyEllsworth Yes is Teamcenter Express 5.3 version.

I think is the same problem that you describe but despite my attempts I have not been able to fix this.

 

Have you some tips for repare the model.xml and solve this problem?

 

Thank you very much to all,

you're very kind.

 

Francesco

Highlighted

Re: BMIDE: model.xml problem - deploy model failed

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hi guys,

i've study the problem and after a lot of tests i've found the solution to fix the situation.

The steps to solve the problem are these:

1. Create XML file (i've called the file deltamodel.xml) where i've put a configuration for the objects that needs added\updated and deleted. In my situation were the PDFs

<?xml version="1.0" encoding="UTF-8"?>
<!--
@<COPYRIGHT>@
==================================================
Copyright 2009.
Siemens Product Lifecycle Management Software Inc.
All Rights Reserved.
==================================================
@<COPYRIGHT>@
-->
<TcBusinessData xmlns="http://teamcenter.com/BusinessModel/TcBusinessData"
    Date="Fri Jun 14 10:12:03 AM 2019" TcVersion="">
<Delete>
   <TcDatasetReferenceAttach datasetType="PDF">
      <TcDatasetReference name="Adobe-pdf">
         <TcDatasetReferenceInfo template="*.pdf" format="BINARY"/>
      </TcDatasetReference>
   </TcDatasetReferenceAttach>
    <TcDatasetReferenceAttach datasetType="PDF">
			<TcDatasetToolAction tool="PDF_Tool" action="Open">
				<TcToolActionReference export="true" referenceName="PDF_Ref"/>
				<TcToolParameter name="$PDF_Ref"/>
			</TcDatasetToolAction>
   </TcDatasetReferenceAttach>  
    <TcDatasetReferenceAttach datasetType="PDF">
			<TcDatasetToolAction tool="PDF_Tool" action="OpenUsing">
				<TcToolActionReference export="true" referenceName="PDF_Ref"/>
				<TcToolParameter name="$PDF_Ref"/>
			</TcDatasetToolAction>
   </TcDatasetReferenceAttach>  
</Delete>
</TcBusinessData>

2. Run the following command to clean the db

%TC_ROOT%\bin\business_model_updater -u=infodba -p=xxx -g=dba -mode=upgrade -update=all -process=delete -file=C:\Temp\deltamodel.xmlimage.png

3. Create a package and retry the deploy: Install Features: Successfull

image.png

 

I hope this solution could be usefull.

 

Have a nice day and thank you guys.

Francesco