Log and Ignore Row Error: Difference between revisions
Jump to navigation
Jump to search
Jkuehlthau (talk | contribs) (Created page with "To log an error on a Row, we must ues the Starfish.ErrorMessage property. To continue running a job when a row errors, we need to set Starfish.SuppressError=true; in an "On R...") |
Jkuehlthau (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
First, create an "On Row Error" POST-PROCESS. In my post process, I use a globally created C# variable so I can use the Error Message later in the job. | First, create an "On Row Error" POST-PROCESS. In my post process, I use a globally created C# variable so I can use the Error Message later in the job. | ||
<syntaxhighlight lang="csharp"> | <syntaxhighlight lang="csharp"> | ||
//"On Row Error" POST-PROCESS | |||
void CSharpProcedure() | void CSharpProcedure() | ||
{ | { |
Revision as of 17:55, 7 December 2020
To log an error on a Row, we must ues the Starfish.ErrorMessage property. To continue running a job when a row errors, we need to set Starfish.SuppressError=true; in an "On Row Error" POST-PROCESS.
First, create an "On Row Error" POST-PROCESS. In my post process, I use a globally created C# variable so I can use the Error Message later in the job.
//"On Row Error" POST-PROCESS void CSharpProcedure() { sQuoteToNSError = Starfish.ErrorMessage; //Starfish.LogMessage(sQuoteToNSError); //There's also a boolean you can set called "SuppressError" which will swallow the error and allwo the process to continue //I could check the error message for something and then set that to true if I want to ignore it. Starfish.SuppressError=true; }