# GS05 Length Validator in X12 Envelope URGENT

**URL:** <https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [September 14, 2005, 2:00am UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199 "2005-09-14T02:00:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shazafar](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Shazafar](https://techcommunity.softwareag.com/u/Shazafar)\
**Post date:** [September 14, 2005, 2:00am UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199/1 "2005-09-14T02:00:21Z")

</div>

Hi All,  
I have a strange situation.  
As per ANSI standards, the min/max values for the GS05 (Time) element of the GS segment is 4/8, which is the UTS time HHMMSSDD format allowed.  
A trading partner sent us a file X12 4010 810 yesterday and the length of GS05 was 6 digits HHMMSS and the IS when trying to convert X12 to Values, complained that the GS05 element is too long and generated an error.

Upon further research I found out that this error was being caused when wm.b2b.edi:convertToValues service is called.

As an input parameter to this service, the EDIFFSchema is wm.b2b.edi.EDIFFSchema:ICS4X12

When I looked at this schema, I found out that the GS05 length validator is set at min = 4 and max = 4!!!

Can someone tell me if this is the case with the schemas in their systems as well? I am using the webM IS 6.0.1 and the WmEDI Package has these patches applied to it  
WmEDI-6\_0\_1-Fix10  
WmEDI-6\_0\_1-Fix7  
WmEDI-6\_0\_1-Fix1

Awaiting a reply!

Thanks  
Shazafar

---

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [September 14, 2005, 2:22am UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199/2 "2005-09-14T02:22:06Z")

</div>

Shazafar,

Someone might have messed up with the schema or the Dictionary.usually the length validator of GS05 is min:4 and max:8.As a work around,you may try changing wm.b2b.edi.EDIFFSchema:Dictionary and set the max to 8.

ramesh.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [September 14, 2005, 2:46am UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199/3 "2005-09-14T02:46:07Z")

</div>

Shazafar,

I have checked in our system IS/WmEDI6.1 module the wm.b2b.edi.EDIFFSchema:ICS4X12 schema shows GS05 lenght validator is min=4,max=8.

The fixes which we have  
WmEDI-6\_1-Fix18  
WmEDI-6\_1-Fix25

So may be WM provided fix for 6.01 also,check it in advantage.

yes according to X12 4010 standard guideline GS05 is allowed for min=4,max=8.

If it is urgent then contact tech support or customize the schema as a last option for avoiding of validation error.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Shazafar](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Shazafar](https://techcommunity.softwareag.com/u/Shazafar)\
**Post date:** [September 14, 2005, 3:07am UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199/4 "2005-09-14T03:07:57Z")

</div>

Thanks guys!!!  
I had to convince my manager that it was indeed min/max 4/8.  
I dont know who changed it in our systems. We have 4 IS’s and its the same in all of them.

I changed the settings on the schema and bingo!!

Appreciate all your help.

Shazafar

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [September 14, 2005, 8:12pm UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199/5 "2005-09-14T20:12:23Z")

</div>

Good to go then…Thanks for update…

goodluck,

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:04pm UTC](https://techcommunity.softwareag.com/t/gs05-length-validator-in-x12-envelope-urgent/107199/6 "2021-04-02T15:04:43Z")

</div>

Closed on April 2, 2021, 3:04pm UTC


