added error message for invalid Unit RO
Fix for missing transitions that who’s ToNumber ends with “0S”
This commit is contained in:
parent
f06e9199e1
commit
d97582303f
@ -83,7 +83,12 @@ namespace DataLoader
|
|||||||
// add an annotation stating "Invalid Unit RO 'ROID'. Need an Item for this, so just add
|
// add an annotation stating "Invalid Unit RO 'ROID'. Need an Item for this, so just add
|
||||||
// it to a list of 'invalid ros' so that calling method can add annotations to the Item.
|
// it to a list of 'invalid ros' so that calling method can add annotations to the Item.
|
||||||
if (roval == "?")
|
if (roval == "?")
|
||||||
|
{
|
||||||
|
if (ROID.StartsWith("FFFF"))
|
||||||
|
InvalidROs.Add(string.Format("Invalid Unit RO '{0}'", ROID.Substring(0, 12)));
|
||||||
|
else
|
||||||
InvalidROs.Add(string.Format("Invalid RO '{0}'", ROID.Substring(0, 12)));
|
InvalidROs.Add(string.Format("Invalid RO '{0}'", ROID.Substring(0, 12)));
|
||||||
|
}
|
||||||
//if (roval.Contains("\r") || roval.Contains("\n"))
|
//if (roval.Contains("\r") || roval.Contains("\n"))
|
||||||
// Console.WriteLine("RO has new Lines");
|
// Console.WriteLine("RO has new Lines");
|
||||||
//string results = string.Format(@"\v <START]\v0 {0}\v #Link:ReferencedObject:{1} {2} {3}\v0 \v [END>\v0 ",
|
//string results = string.Format(@"\v <START]\v0 {0}\v #Link:ReferencedObject:{1} {2} {3}\v0 \v [END>\v0 ",
|
||||||
|
@ -40,6 +40,8 @@ namespace DataLoader
|
|||||||
{
|
{
|
||||||
List<string> migrationErrors = new List<string>();
|
List<string> migrationErrors = new List<string>();
|
||||||
string thekey = dr["TONUMBER"].ToString() + "|" + dr["TOSEQUENCE"].ToString();
|
string thekey = dr["TONUMBER"].ToString() + "|" + dr["TOSEQUENCE"].ToString();
|
||||||
|
if (thekey.EndsWith("0S"))
|
||||||
|
thekey = thekey.Substring(0, thekey.Length - 1);
|
||||||
string dti = dr["DTI"].ToString().PadRight(18, ' ');
|
string dti = dr["DTI"].ToString().PadRight(18, ' ');
|
||||||
string userid = dti.Substring(13, 5).Trim();
|
string userid = dti.Substring(13, 5).Trim();
|
||||||
int itype = 0;
|
int itype = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user