Transaction Set Code 867 isnt working

Jan 20, 2016 at 8:45 PM
Edited Jan 20, 2016 at 8:52 PM
The providing company has changed their EDI file to conform with NAESB V3.0 including FERC order 809. The code is giving me the following error:
"Segment 'LCD**MTR***SV*4186-1' in segment position 8 within transaction 
'' cannot be identified within the supplied specification for transaction set 867 in any of the expected loops: PTD. 
Here is the example:
ISA*  *          *  *          *  *               *  *               *151228*1505**     *         * * *
GS****20151228*15052353
ST*867
BPT*00**20151211
DTM*102****DT*28122015 15052300
N1*41**1*006931794
PER*IC*YESI GORDON*TE*3039144952
N1*40**1*00123456
PTD*FG
LCD**MTR***SV*4186-1
LQ*SMB*AC
QTY*V2*6681
MEA***6454*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*4186-2
LQ*SMB*AC
QTY*V2*0
MEA***0*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*4186-3
LQ*SMB*AC
QTY*V2*0
MEA***0*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*4187-1
LQ*SMB*AC
QTY*V2*211335
MEA***202791*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*4187-2
LQ*SMB*AC
QTY*V2*214014
MEA***205362*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*4189-2
LQ*SMB*AC
QTY*V2*13492
MEA***13030*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*4189-3
LQ*SMB*AC
QTY*V2*14775
MEA***14270*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*900130-4
LQ*SMB*AC
QTY*V2*86807
MEA***84203*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*900130-5
LQ*SMB*AC
QTY*V2*44122
MEA***42804*TZ
DTM*405****RD8*20151130-20151130
PTD*FG
LCD**MTR***SV*900130-6
LQ*SMB*AC
QTY*V2*2687
MEA***2608*TZ
DTM*405****RD8*20151130-20151130
SE*67
GE*1
IEA*1*  
Coordinator
Jan 20, 2016 at 10:00 PM
You can inject your own specification for the 867 by following the instructions here

If you have a link to this companion guide than I can update the embedded specs, though I am surprised that it doesn't meet the generic X12 definition for an 867.
Jan 21, 2016 at 12:48 PM
Edited Jan 21, 2016 at 12:48 PM
Here is the link :
https://drive.google.com/file/d/0B8t13iO5MXfCOUhhRmFNdG50VTA/view?usp=sharing
Pages 251 and 252

My Code:
 X12Parser parser = new X12Parser();
 var interchange = parser.ParseMultiple(fileContents).First();
 var x12Xml = interchange.Serialize();
Coordinator
Jan 21, 2016 at 9:11 PM
I have checked in a change to add LCD and LQ to the spec at:
https://x12parser.codeplex.com/SourceControl/latest#trunk/src/OopFactory.X12/Specifications/Ansi-867-4010Specification.xml

You can either get the latest source code change and rebuild yourself or you can take the xml file linked above and follow the directions to inject your own specification.