Skip to content

Commit

Permalink
Corrected bug in import tool
Browse files Browse the repository at this point in the history
  • Loading branch information
crisfervil committed Sep 22, 2018
1 parent 5e945af commit f29beea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/XrmCommandBox/Tools/ImportTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ public void Run(ImportToolOptions options)
_log.Info($"{dataTable.Count} '{dataTable.Name}' records read");

// Process Lookups
_log.Debug("Resolving Lookups...");
ProcessLookups(dataTable, options);
if(options.Lookups != null)
{
_log.Debug("Resolving Lookups...");
ProcessLookups(dataTable, options);
}

dataTable.Name = !string.IsNullOrEmpty(options.EntityName) ? options.EntityName : dataTable.Name;
if (string.IsNullOrEmpty(dataTable.Name)) throw new Exception("Entity name not prvided. Set the Entity Name parameter option or set the table name in the input file");
Expand Down

0 comments on commit f29beea

Please sign in to comment.