diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index cc04a631..8f1ea4b1 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -167,7 +167,7 @@ namespace DataLoader entry.DTS = Dts; entry.UserID = Userid; } - cont.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq; + cont.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq.TrimEnd(" ".ToCharArray()); Item itm = null; // the stpseq for section records may include a space & some other data. This // was not part of what is stored in the transition records, so just look at diff --git a/PROMS/DataLoader/Steps.cs b/PROMS/DataLoader/Steps.cs index f6318374..b4722406 100644 --- a/PROMS/DataLoader/Steps.cs +++ b/PROMS/DataLoader/Steps.cs @@ -85,7 +85,7 @@ namespace DataLoader // 20000 flags step type item & 1 adjusts for 'base' in format files. int contenttype = (structtype == "R") ? 20040 : 20001 + int.Parse(newstptyp != null ? newstptyp : StepType); content = Content.New(null, stptext.Replace("", "\\\\"), contenttype, null, ci.ToString(), dts, userid); - content.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq; + content.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq.TrimEnd(" ".ToCharArray()); ; // Before we save it, handle RO & Transitions tokens. int tokrt = Textm.IndexOf('\x15');