infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
CIS 6.1 TCL 8.5 problem with open
Paul Bishop
We are in the process of upgrading our windows version of CIS from 5.8 to 6.1.1 and have a problem with a TCL script that opens for write a file on a different server. under 5.8, the command is:
set ofileid [open \servernameobdg_prd$AMBULATORYMedflowDIPtest.PDF w]
and it works fine under 5.8. When I try to run it under 6.1.1, I get:
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] result = 'couldn't open "\servernameobdg_prd$AMBULATORYMedflowDIPtest.PDF": invalid argument'
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] errorInfo: '
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] couldn't open "\servernameobdg_prd$AMBULATORYMedflowDIPtest.PDF": invalid argument
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] while executing
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] "open $path_file w"
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] (procedure "tpsConvertMedflowPDF_prod" line 78 )
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] invoked from within
[xlt :xlat:ERR /0:medflow_prod_xlate:--/--/---- --:--:--] "tpsConvertMedflowPDF_prod {MSGID message0} {CONTEXT xlt_raw} {ARGS {}} {MODE run} {VERSION 3.0}"'
[xlt :rout:ERR /0:medflow_prod_xlate:06/05/2015 11:20:06] Xlate error in route detail 'RAW' under Trxid '_HCI_static_route_' to Dest 'f_mdflwp_pdf_t'
Any ideas on what changed so that I can't explicitly set the server/path?
Thanks,
Find more posts tagged with
Clovertech
Comments
Paul Bishop
note to self: make sure that the services is started up with the right user/password.... :oops:
This is why I don't like working on window servers.
Charlie Bursell
Paul:
Glad you found the problem. But I am confused. Are you sure that is the string in your open statement? If I ask Tcl to evaluate that string I get:
servernameobdg_prd$AMBULATORYMedflowDIP est.PDF
I am not sure that is what you want. However you say it works. I just wonder how. Am I missing something here?
Paul Bishop
I have a set for the path and file name prior to the open:
set path "\\server_name\obdg_prd$\AMBULATORY\MedflowDIP\"
set file_name "$doc_uid.PDF"
set path_file "$path$file_name"
set ofileid [open $path_file w]
All the special characters are escaped in the set.