I enjoyed watching this video and recommend others to watch. Thanks for educating the community and appreciate your volunteership.
@BrianEvansracer4 жыл бұрын
Thanks for sharing this simple tutorial. Your formatting in the C# code was a little off as the IF condition is generally all on one line between the outer parenthesis...In C# you CAN have a single indented line below the IF condition and without the use of { ...}
@krismaly63008 жыл бұрын
I enjoyed watching this video. I would suggest you that try to use variable notations as per industry standard or your own method which makes sense. I am expressing this when you go to variables displaying dialog you have User and System to identify easily I would suggest Use vFileName, vFolderPath, and vFileExistsFlag instead FileName, FolderPath, and FileExistsFlag This help while writing code or picking variables. It's only suggestion not comment/criticism. You are doing good please proceed. As per video I created package and it works fine.
@TechBrothersIT8 жыл бұрын
+Kris Maly Hi Kris. Thanks for feed back. I agree with you. Will try next time. Thanks for watching.
@enigma_mysterium3 жыл бұрын
Hi @TechBrothersIT, I was wondering how to specify in the Script Task if a file exists that was created on certain date and time. Hopefully you can guide me through. Thanks in advance!
@apeethasrinivasan37125 жыл бұрын
Hi educator, I have done as you have said, but i am getting the below error. could you please help with this? Failed to load the package "Exception deserializing the package "Specified part does not exist in the package.".".
@krismaly63008 жыл бұрын
I enjoyed watching this video and recommend others. Thanks for educating the community.
@abdulqayoomvalizada8724 жыл бұрын
I faced this error during run time, [Exception has been thrown by the target of an invocation.] I appreciate your idea?
@alirezazare52244 жыл бұрын
I followed the step but I received this error: 'string' does not contain a definition for 'filefullpath'. Any idea what I'm doing wrong ?
@bbrocks55305 жыл бұрын
Hello, can we get a video on downloading specific PDF files based on filename column from SharePoint ?
@brinisoumaima28164 жыл бұрын
Hi, thanks a lot for this video; it helped me a lot but i have a question , i want to run this package not manualy using windows service can you help me ! thanks
@Haditheveryyday Жыл бұрын
hello yall how do i can check my file header using script task but my data flow task is in a foreach loop container?
@nibedey5 жыл бұрын
Please help I am getting this error Exception has been thrown by the target of an invocation.
@ArpanKarmakar4 жыл бұрын
Helpful video. In this example you created the package which will look for one specific file, I want to check if there are any .xlsx or .csv file exists then only the data flow task should proceed. How do I achieve this?
@periwinters89124 жыл бұрын
That is what I watched this video for, what I did (and it's working) is followed his instructions completely EXCEPT I put it in foreach loop and I left the File name blank
@ArpanKarmakar4 жыл бұрын
@@periwinters8912 I have a SSIS package which I want to schedule for regular refresh. I tried with a batch file but it failed. Can you help me, thanks
@periwinters89124 жыл бұрын
@@ArpanKarmakar what error did you get? did you make sure you put both readonlyvariables in the script task editor? did you add System.io to the namespace? and in the script, did you use the same case for the variables? it's hard to know what else to ask without knowing the error.
@ArpanKarmakar4 жыл бұрын
@@periwinters8912 Its working now. I created a SSIS Package and then created a batch file to execute the package. Then I scheduled the batch file from Windows task scheduler. In the task scheduler under the actions tab I selected the program (batch file) and on the options textbox I have put the path of the batch file. Now everything works fine.
@ArpanKarmakar4 жыл бұрын
@@periwinters8912 I have mentioned the variable name in the expression of flat file conntion and in the loop container *.CSV
@MuCh15104 жыл бұрын
Hi tech brothers, Thanks a million, I have one doubt, what if we have multiple files of same format and different names and we have to check all the files are present if present then only others tasks should perform, Kindly advice me.
@periwinters89124 жыл бұрын
That is what I watched this video for, what I did (and it's working) is followed his instructions completely EXCEPT I put it in foreach loop and I left the File name blank
@pokhreis9 жыл бұрын
Hi Amir, i guess the value for FileExistsFlag should be 1 instead of 0 under variable window. Coz if we are checking if File exists, i believe it has to 1 instead of 0. what do you think about it ?
@TechBrothersIT9 жыл бұрын
Ishwar Pokhrel In variable window you can have 0 or anything else beside 1. As we are setting the value in Script task to Flag =1 when file exists. You don't want to have in variable window to 1 otherwise the Data Flow Task will always run as expression will be true in precedence constraint. you want to set the value in Variable window to anything but not 1. Hope this answer your question.
@Raghavendra2583 жыл бұрын
@@TechBrothersIT I have same steps , its working in visual studio 2017 and its not working SSDT end, when I deploy packages into server . Its not working... my server version is 2016, Visual studio version is 2017.. can you please suggest me here
@oscarbolanos874 жыл бұрын
This solution worked great!!!! Thanks for sharing!
@devr2665 жыл бұрын
I am getting an " Exception has been thrown by the target of an invocation".
@arlmcl60833 жыл бұрын
Hi Dev just wondering if you got a reply on this? I am getting an exception as well
@krismaly12319 жыл бұрын
Dear Amir, I enjoyed watching this video and recommend others to watch. Thanks for educating the community and appreciate your efforts in publishing this series of videos. May I know what percentage of time you spent on writing the script for Packages? Thanks a lot
@avikjain12862 жыл бұрын
HELP!! For me file.exists always returns false even if the file exists
@kavi543216 жыл бұрын
My Foreach loop container did not run after the script task, its just got stopped. But the files are present in the folder
@TechBrothersIT6 жыл бұрын
your path could be wrong. check the path of folder.
@randolphvargas11186 жыл бұрын
Thanks. Helped me a lot.
@prasaddavange38378 жыл бұрын
Hello i followed the same as you giuded but i am facing runtime error while executing the scirpt task
@krismaly12318 жыл бұрын
What kind of errors. please share
@arlmcl60833 жыл бұрын
@@krismaly1231 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
@TOMRYANLUKE3 жыл бұрын
Thank you sir for this video....
@PitangusSulphuratus3 жыл бұрын
Thanks it was usefull
@nguyenhaithanh86949 жыл бұрын
thanks for shared
@TechBrothersIT9 жыл бұрын
+Nguyen Hai Thanh You are welcome and thanks for watching!