PLM之家PLMHome-工业软件与AI结合践行者

[TC问题解决方案] 172. Teamcenter populatefsc 中止在 TRANSLATIN状态

[复制链接]

2019-8-19 15:47:15 1800 0

admin 发表于 2019-8-19 15:47:15 |阅读模式

admin 楼主

2019-8-19 15:47:15

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x

6 j; [+ }8 s0 u3 n/ T6 L. B171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
5 |$ v. G4 v6 |+ k0 D2 ?+ a2 W5 V3 f8 X
问题
& r4 X& y7 G* K& g7 z0 R- P6 }7 `默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
- N; K* w0 V: f+ s模块中的功能无法登录
% X+ \! Z. h& h7 |+ x+ i; w( _& z+ }3 M! Y: Z' a
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
, _  Q# K: ^0 p6 K& Cuser ID or the password is invalid.  
) h, r$ Q6 K9 Y1 o3 n. t! z7 D9 s0 P' U: J0 A; H' [# Z5 o; o4 I
方法 4 n% ]% l) Y4 i8 [
修改 populatefsc 脚本,增加登录信息
' `" n0 S" `: m  u( y在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 1 G9 P: S5 C! E, }7 ^7 |
set TC_DBA_USER=infodba 6 g0 {# M! @, N( f& W

$ ~8 K9 q& q( d3 O- @) }8 J( `在 populatefsc.pl 中 : : a) F3 K/ {  W8 t9 x
% o/ ^& a9 f- T, U( M' }" `) W
在 runPLMXMLExport 子程序下增加红色标记的代码
, P% _! G  O" p! f; b2 ^
' u% J6 P! J7 D% d# This will be the full path to the executable.
* ~: H1 u; I$ X+ o; q8 gmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
8 v9 _1 a% ~: f0 L$ Q% T5 ?my $tcdbauser= "$ENV{'TC_DBA_USER'}";     ) i5 c- `- B  C0 l
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
9 j" b0 \- U+ y5 x- }, z# Make sure we can find what we are executing.
0 {0 `& t! Z/ h+ o/ @! J. M" Wdie "The ${exe_name} executable was not found at the following location:
- r3 J! q6 x7 f0 z7 E, d0 }6 K${exe_path}\n" unless -x ${exe_path}; ( Y3 j* f- Y' L+ L( e* U: S
( ?  k/ ^1 j' [* ~1 U0 o1 r
# Start building the command line.
0 R. Z+ f4 S% }! a' Amy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); ' S0 k+ ~4 i+ j  S8 `
. k* Y) T; \, m: p' Z9 Y" n( S; S
# Take care of possible empty spaces in the argument values
) u# a7 {8 t+ H! Umy $outputFileStr = $hashRef->{'output_file'};
: Y, C# i, O  j/ K/ a, Y2 `8 M$outputFileStr = handleEmptySpaceInPath($outputFileStr);
4 G  X/ {; g9 P4 hmy $scoUid = $hashRef->{'uid'}; & }  y/ T: Z, g; `) m4 V
$scoUid = handleEmptySpaceInPath($scoUid);
. h2 {( J1 a6 Z' m5 p% Y7 G( y3 s
# Add the extra options.
$ q, l6 {2 D' N: @addOption(\@args, '-xml_file=', $outputFileStr, 1); " |5 P- O7 j- j; f
addOption(\@args, '-uid=', $scoUid, 1); $ Q# V; x' u# c0 F: Z0 r
addOption(\@args, '-u=', $tcdbauser, 1);     5 E+ I; @& y4 @7 U
addOption(\@args, '-pf=', $pwdfile, 1); * E- U' J8 W/ h8 X
7 f6 ^5 e+ Q! @- k5 A+ r
在 runLoadFscCache 子程序下增加红色标记的代码 - S! O' }6 r* o3 }

: [- x' d7 p1 z# n+ L# This will be the full path to the executable. 8 w+ E2 }4 ]& z! X' C
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ) F3 T1 @; I5 ~

8 s- b% b- u* v* T) x# t; a& Amy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ( \- x7 ?# z; v1 b$ J2 |
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; : a6 Z0 m6 U- N
# Make sure we can find what we are executing. 8 ?- ~1 P) Q8 f% p
die "The ${exe_name} executable was not found at the following location:
1 v! S% R  U: i( B${exe_path}\n" unless -x ${exe_path};
& v/ q! c5 N1 |9 e  n( Q
- Y6 F2 u" c& O* s" J; {6 d" {# Figure out output information from command line input
5 r) A/ W/ S& l' V: R) q. K( f% E/ M3 y7 Amy $outputFileStr = $hashRef->{'output_file'};
+ z- c& [/ C. e+ |my $fscUri = $hashRef->{'targets'};
" F" C1 P4 V' B6 V. g+ A: h" F$ Q0 t: L- X) {- [9 `$ g9 h6 F
# Check possible empty space in the string
' n! Y0 Z* F5 ], t, L3 l/ F6 l5 O$outputFileStr= handleEmptySpaceInPath($outputFileStr);
4 b: j& L8 K$ O2 v4 H$fscUri = handleEmptySpaceInPath($fscUri);
% f% p2 x+ g! u- y" Z& @) F# {% M2 d  Q. K/ \
# Add the extra options. / V) v7 n$ G; v$ P% r3 T0 ~3 f: S
my @args= ( $exe_path, '-f=load' );
2 m; M' ~2 B. |- taddOption(\@args, '-plmxml=', $outputFileStr, 1);
8 Q! b/ Y3 `  M& q6 q- saddOption(\@args, '-fsctargets=', $fscUri, 1);
3 t; B+ f) ^9 R9 LaddOption(\@args, '-u=', $tcdbauser, 1); , Y4 K& D6 T( O$ F7 n# i
addOption(\@args, '-pf=', $pwdfile, 1); . X; e) H6 C& F
2 i* W* w: s) p5 t( r
: }5 i. o+ U+ M

' w: q- t/ V; K
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了