ssmith-nova
7 months agoNew Contributor III
Capture No valid DataKeys Message
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
Hi, You can capture the exception and check the exception message
Try ImportInfo = BRApi.Import.Process.ExecuteParseAndTransform(si, wfClusterPk, String.Empty, Nothing, TransformLoadMethodTypes.Replace, SourceDataOriginTypes.FromDirectConnection, False) Catch ex As Exception log.AppendLine(ex.ToString) End Try
This is what I am doing.