Capture No valid DataKeys Message

ssmith-nova
New Contributor III

I have a BR that runs a load process using ExecuteParseAndTransform.  When the data source is empty for that profile it throws the "No valid DataKeys" error and stops the job.  I don't even get the opportunity to check the status code of the import. 

Is there a way to catch that error when using the ExecuteParseAndTransform method? 

Thanks,

Scott

1 ACCEPTED SOLUTION

franciscoamores
Contributor II

Hi, You can capture the exception and check the exception message

View solution in original post

2 REPLIES 2

franciscoamores
Contributor II

Hi, You can capture the exception and check the exception message

ssmith-nova
New Contributor III

Thank you, I missed the obvious.  I was catching the error, but then I was throwing an exception.  If I just capture the error and move on, I am good.  

Please sign in! ssmith-nova