Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Trigger API Fails on webGet Load

$
0
0

I have a Trigger API that is failing on the webGet Load process. I am looking for suggestions on how to troubleshoot this problem. I have many API pulls in my projects, so learning how to troubleshoot one will help me in the future. Any suggestions on how to trouble shoot this problem would be appreciated.

I am making an API call to Google Analytics data on Amazon Web Services. The connection to AWS works.

The error message is :

"Error: 0x1 at Trigger API 1: Exception has been thrown by the target of an invocation.
Task failed: Trigger API 1
Warning: 0x80019002 at ThomasBuilt_standard: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
Task failed: ecomm stats

Warning: 0x80019002 at thomasbuilt_call: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "D:\SSIS Projects\storeFrontETLThomasBuilt\ThomasBuiltETL\ThomasBuiltETL\ThomasBuilt_call.dtsx" finished: Failure.
The program '[7540] DtsDebugHost.exe: DTS' has exited with code 0 (0x0)."

The script we use is this:

public void Main()
        {
            var webGet = new HtmlWeb();
            var document = webGet.Load(Dts.Variables["User::processUrl"].Value.ToString());
            var status = document.DocumentNode.SelectSingleNode("//div[@class='alert alert-success alert-dismissible']");
           // MessageBox.Show(status.InnerText.ToString(), "Error Title", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            if (status.InnerText.Trim().Contains( Convert.ToString("Query ran successfully.")) )
            {
                Dts.TaskResult = (int)ScriptResults.Success;
            }
            else
            {
                Dts.TaskResult = (int)ScriptResults.Failure;
            }
        }

Here is the script task screen


Viewing all articles
Browse latest Browse all 24688

Trending Articles