Winscp batch file will not run from scheduler - ssis

I created a batch file to download a file from a client. I am running windows server 2012. I am using a execute process task in ssis 2014. Both the batch file and my package run fine manually. When I run via the ssis scheduler it gets the following error: Exeute Process Task Error- In Executing C:\Windows\System32\cmd.exe""/C E:\Scripts\Nationwidebatch.bat"at"". the process code was "1" while expected was "0".
#echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Users\jfrench\AppData\Local\Temp\4\!S.log" /ini=nul ^
/command ^
"open sftp://ecafxxxx:xxxxxxx#tower.nationwide.com/
-hostkey=""ssh-rsa 2048 a6:e9:1a:b0:0d:09:0f:2d:2b:92:82:00:d3:87:9b:36""" ^
"cd /FromNationwide/icafarmb" ^
"option transfer ascii" ^
"get allied.txt \\CFBF-SQL\Insurance\Download\AlliedNW\" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%
I have run it manually from a batch file, manually from visual studio , and manually from ssis catalog db and they all run successfully. As soon as you add it to the scheduler it dies.

Related

avoid error in ssis package using winscpcommand

Hi I have doubt in ssis using winscp commands on excuteprocess task
I need download/move .zip file from remote server to local server machine.
Here I follow few steps:
step1:I install winscp software in local server .
step2: I configure winscp settings with hostnameand username and pwd it working fine.
step3: I tried to implement ssis package using executeprocess task
there I given like below seetings in execute process task
executable:
C:\Program Files (x86)\WinSCP\WinSCP.exe
Arguments:
WinSCP /command "open ""sftp://uesrname:pwdhostname""" "get ""remoterservrpath"" localpath" "exit"
after that I ran execute process task.then file is moved from remoteserver to localserver path location
then imedentaily package failed with below error message
[Execute Process Task] Error: In Executing "C:\Program Files (x86)\WinSCP\WinSCP.exe" "WinSCP /command "open ""
sftp://usernamepwdhostname""" "get ""test.zip""
C:\Users\test\Desktop\Test\test.zip" "exit"" at "",
The process exit code was "1" while the expected was "0".
here usernamepwdhostname I did not share orignal.I mention similay format.
zip file is moved from remote to local server location.its fine.but I am getting package error after move the .zip file
please tell me how to avoid this error in ssis package level
In the arguments field, remove the WinSCP part at the start
executable:
C:\Program Files (x86)\WinSCP\WinSCP.exe
Arguments:
/command "open ""sftp://uesrname:pwdhostname""" "get ""remoterservrpath"" localpath" "exit"

MySQL silent install fails

I am trying to install mysql-installer-community-5.6.20.0.msi through batch file.
In the first step I try to unpack the manifest which gives me access to installer console. Passive install works alright however, if I try to install it quietly the batch file exits without unpacking the manifest.
Here is the 1st step batch file code:
#echo off
color 0a
cls
echo ==========================================
echo MySQL Server - Installation - v.11/02/2015
echo ==========================================
echo .
echo .
rem ------------------------------------------------
echo Installing MySQL (This may take a few minutes)
msiexec /i mysql-installer-community-5.6.20.0.msi /q /norestart /L*v "mysql-installer-community-5.6.20.0.msi.log"
echo Done.
Do anyone have a way around this error?
/q may be raising an error since it's the the first character of user interface level options (/qn for example). Try using the full quiet option, /quiet
Finally found the solution, found out that the log file was showing 1729 and the next line showed configuration failed message.
Searching for error code 1729 in MySQL error codes. I found
Error: 1729 SQLSTATE: HY000 (ER_NO_SUCH_PARTITION)
Message: partition '%s' doesn't exist
Figured it may be as cmd was launching from System32. Adding %~dp0 (current directory) solved the issue.
I hope this may help others.

VS2012: xcopy error with cocos2dx

I have a solution on VS 2012 that has been building without errors, then out of no where the build started failing with the following error :
Error 106 error MSB3073: The command "if not exist "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\Debug.win32\" mkdir "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\Debug.win32\"
xcopy /Y /Q "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\..\..\..\external\libwebsockets\win32\lib\*.*" "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\Debug.win32\"
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 129 5 undeifned
This solution is created by Cocos2d-x tool.
How to fix bug ?
The encrypted message mean the folder/files are in use.
I just have the same error a few minutes ago.
Close all the program and reopen.
Reboot if the above failed.

dtexec error "The connection xxx is not found" with Project deployment model

When running DTEXEC I am getting "The connection xxxx is not found".
I beleieve this is because the connection managers are located at Project level and not within the package itself.
When running DTEXECUI - these connection managers are not displayed.
Is the only way to move them into the package - seems a bit weird as what is the point of allowing them a project level if you then have to move them to use them with DTEXEC.
Thanks
Here is the command line syntax you asked for:
C:\Users\Administrator>dtexec /FILE "\"F:\SSIS Projects\HESA\HESA\01 - Upload Metadata Files To Oracle.dtsx\"" /SET "\Package.Variables[User::varYear.Properties
[Value]";"1999" /CHECKPOINTING OFF /REPORTING EW /CONSOLELOG SMT
Your assumption that
the connection managers are located at Project level and not within the package itself
is exactly the problem. But there is a solution:
build the project to get a .ispac file
instead of invoking dtexec with /FILE you have to invoke it with /Project and /Package, like this:
/Project "path to you .ispac file, resulting from building the project"
/Package "Name of your package.dtsx"
Please, be aware that if you provide the whole path to your .dtsx package the execution will fail with very criptic SQLDUMPER error messages.

xilinx: Failed executing Tcl generator during memory synthesis

I am trying to produce a memory (simple dual port ram) using core generator in xilinx 14.2. The problem is that during synthesis says :
ERROR:sim - Failed to run command ' -p xc3s100e-5cp132 -sd
"C:/Users/ORiON/register_file/ipcore_dir/tmp/_cg/_dbg/" -sd
"C:/Users/ORiON/register_file/ipcore_dir/tmp/_cg/" -dd
"C:/Users/ORiON/register_file/ipcore_dir/tmp/_cg/_dbg/" "MEM_aRd_sWr_16x32"
"C:/Users/ORiON/register_file/ipcore_dir/tmp/_cg/MEM_aRd_sWr_16x32.ngc"
-intstyle xflow'. Executable file not found.
ERROR:sim - Failed executing Tcl generator.
Wrote CGP file for project 'MEM_aRd_sWr_16x32'.
Core Generator create command failed.
ERROR:sim - Failed to generate 'MEM_aRd_sWr_16x32'. Failed executing Tcl
generator.
The command itself is missing.
Failed to run command 'A_COMMAND_SHOULD_BE_HERE -p xc3s100e-5cp132 -sd
I assume it's a kind of script or makefile who is calling this command and the command is defined as a variable. And the variable is not assigned. Something like that?