nolihayati isma
9th May 2016, 10:57
Dear All,

Please assist me

I using above session ttaad5205m000 to execute \\my00sb05\export\Salesforce\Products\tccom010.cmd but i facing error 1 in running shell script. But if i manully execute the tccom010.cmd, i have no issue.

How to check the error?

bdittmar
9th May 2016, 12:20
Dear All,

Please assist me

I using above session ttaad5205m000 to execute \\my00sb05\export\Salesforce\Products\tccom010.cmd but i facing error 1 in running shell script. But if i manully execute the tccom010.cmd, i have no issue.

How to check the error?

Hello,

ttaad5205m000 opens a new Shell for running the Shell script.

Maybe the Environment for the opened Shell is'nt correct.

Use complete paths in tccom010.cmd.
Check permissions for different users.
---------------
There are three categories of errors:

Error numbers 1-99 are operating system errors
Error numbers 100-899 are database errors
Error numbers 900-999 are network errors
Notes
To retrieve errors with error codes greater than 1000, subtract 1000 from the error number. The result is the database error code. For example, the error code 1510 represents the database error code 510 (that is, 1510 – 1000).

When a fatal error occurs, information about the error is stored in the log files in the directory $BSE/log. For example, if bdbpost6.2 causes an error, this is reported in the file log.bdbpost6.2.

UNIX errors
1
EPERM
Not owner

This indicates an attempt to modify a file that cannot be modified, except by its owner or by a super user. This is also generated when ordinary users attempt an action that only a super user is permitted to carry out.


Regards

nolihayati isma
11th May 2016, 04:54
Hi,

Thank you for yr advise.

I have update the access as full control and already try full path name but the error still there.

Below the content of the cmd. Any found not suitable for w2012?

REM bfi#100203, Bernhard Frei, 2010-02-03
REM Add headers to exported item data Exchange files

d:
cd d:\export\salesforce\products

del tccom010.csv
copy tccom010.tmpl tccom010.csv /Y
more tccom010>>tccom010.csv

del tccom012.csv
copy tccom012.tmpl tccom012.csv /Y
more tccom012>>tccom012.csv

del tccom013.csv
copy tccom013.tmpl tccom013.csv /Y
more tccom013>>tccom013.csv

del tccom010st.csv
copy tccom010st.tmpl tccom010st.csv /Y
more tccom010st>>tccom010st.csv

bdittmar
11th May 2016, 10:24
Hello,

Looks like on WIN OS,

update your Profile, please.

Regards

bhushanchanda
11th May 2016, 10:55
Hi,

First try with single command if that works. Also, put full path of the files instead of changing the directory.

Add the following line in your file and see if that works.


del D:\export\salesforce\products\tccom010.csv

Also, if this doesn't work, you can generate the log file using -

del D:\export\salesforce\products\tccom010.csv 2> D:\export\salesforce\products\err.txt

nolihayati isma
12th May 2016, 06:42
Dear All,

Thank you to all.
I am able to resolved the error already by adding C:\Windows\System32\ at more command.


d:
cd d:\export\salesforce\products

del tccom010.csv
copy tccom010.tmpl tccom010.csv /Y
C:\Windows\System32\more tccom010>>tccom010.csv

del tccom012.csv
copy tccom012.tmpl tccom012.csv /Y
C:\Windows\System32\more tccom012>>tccom012.csv

del tccom013.csv
copy tccom013.tmpl tccom013.csv /Y
C:\Windows\System32\more tccom013>>tccom013.csv

del tccom010st.csv
copy tccom010st.tmpl tccom010st.csv /Y
C:\Windows\System32\more tccom010st>>tccom010st.csv