Forum Discussion

ssmith-nova's avatar
ssmith-nova
New Contributor III
7 months ago

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 o...
  • franciscoamores's avatar
    7 months ago

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

  • ssmith-nova's avatar
    ssmith-nova
    5 months ago
    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.