SSIS - Flow doesn't continue to next task in control flow - ssis

I have the following flow:
The script TASK "GET PROJECTS FROM SQL" returns around 7000 rows.
So the foreach loop should loop through all the result lines.
Somehow, it goes only one time to the "GET REFRESH TOKEN" and does not continue to the 'GET DEMANDES TO SQL". After a while it stops with no error. The constraint between "GET REFRESH TOKEN" and "GET DEMANDES TO SQL" is just SUCCESS. I don't know why it can't continue.
Here is the content of the GET REFRESH TOKEN:
I'm just making a JSON request an setting the values of the request response to variables via a Script Component. I've verified, the Script Component runs only onces and the variables are correctly set.
It looks like the script component is not notifying when it finishes.
Any idea ?

Related

"Script Error Displaying unprocessed Data

I am currently following the mulesoft fundamentals 4 module 5. as i have been following the guide i should be able to Make requests to the API proxy from Exchange. However, every-time i click send i get an Error; Script error. Displaying unprocessed data"
The Error message Below:
Script error. Displaying unprocessed data.
''''''
The image displays the error code
Thank You for your help
This is because the server is unreachable or bad gateway (502).Make sure the implementation URL which you provide to create proxy is working.In my case I have used https instead of http.

Trying to make JMeter login gives 500 error

I'm trying to setup JMeter to do some stress testing on one of our applications.
So far I've been able to make it go to the login page, login to see the list of projects but when I try to make it go into a project the URL gets messed up and gives me a 500 error.
After loggin in, the URL has parameters like
?Client_Id='CLIENT'&Project_Id='PROJECT'&System_Id=2
When it tries to go into the project, it opens a page index.asp which builds some frames dynamically.
When building the frames, the response and the URL for each frame look fine. But, when making the actual call for each of the frames the HTTP request gets called like this:
?Client_Id='CLIENT'<<oject_Id='PROJECT'
Resulting in invalid query and 500 error from the server.

Jmeter - HTTP request run one time when find out right result

After i pass issue by modify condition in "while" in Jmeter - Stop reading CSV file after find out right item
Now i want to run "http request" one time only when i find out right product. Currently, number of "http request" is equal number of loop in while.
How can i run HTTP request one time?
not sure if I understand your question correctly but would not https://jmeter.apache.org/usermanual/component_reference.html#Once_Only_Controller help?
It is triggered only once per each thread. Usually used for logins.
I used "IF controller" in "While Controller" and resolve this issue.
While ("${Error}"=="Response Error")
CSV file (brandid,brandurl,producturl)
if ("${brandOfWH}"=="${brandid}")
-- Http request
-- -- BSF Preprocessor
-- -- Get "Error" extractor

How to send ONLY one mail from OnError event handler in SSIS

I have a package which contains several contains and tasks in it.I have used Send Mail task in Error Event handler to send mail if any error occurs during the load. But whenever error occurs in package, Send Mail task has been executing twice or thrice(sending mails) with different error description.
I need to receive ONLY one mail with all the error description instead of multiple mails.
Please let me know how to achieve this.
Do not immediately send a mail in your Event Handler, instead, accumulate all the errors first to a string array, then using another script task in your control flow, compose the mail body by "stitching" the items in the string array. Finally, use the "stitched" message in a send mail task in the control flow.
Create a variable of type object.
In your control flow, put all tasks inside a sequence container except the Send Mail Tasks.
Add an event handler for the On Error event of the sequence container created in #2, then add a script task that will store the value of System::ErrorDescription into a string array. Ensure that you don't overwrite the contents of the string array from the last error. Store the string array to a variable of type Object.
In the control flow, add a script task to "stitch" the contents of the string array into a single variable to use as the body of the Send Mail Task. Connect the script task to the Sequence Container via a Failure precedence constraint.
Add a Send Mail Task after the script task.

Invoke-WebRequest: Error fetching Ajax content

I have a problem, that no one on google seemed to have before:
I'm trying to fetch the content of a webpage in PowerShell 3 with
Invoke-WebRequest -Uri $myUri -DisableKeepAlive
but I get a pop-up everytime that says Error fetching Ajax content.<br/>Server Response: undefined. I click OK and my script continues without complaint, but it pauses the execution, which is a problem.
I tried to run it with PowerShell.exe -windowstyle hidden {myScript.ps1}, and it suppresses the pop-up, but script execution stops, when it normally would appear.
I tried a Try Catch block, but it doesn't seem to get it.
It would be great if someone here had an idea.
Try using the -UseBasicParsing switch on Invoke-WebRequest to avoid DOM processing of the returned HTML.