I have encountered a situation regarding an EDIFACT composite element being marked as mandatory, but with all conditional data elements.
I don't understand how this is possible as the composite will not be rendered if all data elements are not provided. If the first element 1001 was mandatory, then I can understand that, but as it is it doesn't make any sense.
Here is an example:
010 C002 DOCUMENT/MESSAGE NAME M 1
1001 Document name code C an..3
1131 Code list identification code C an..17
3055 Code list responsible agency code C an..3
1000 Document name C an..35
I find this quite confusing and not sure what to do about such situations. I am currently developing an API in C# to generate and process EDIFACT messages and I am not sure how to validate as well as render the above example.
Can any EDIFACT experts clarify this for me please?
** UPDATE **
I suspect that the composite being mandatory would require at least one of the data elements to be provided -- this is just an educated guess based on common sense and what I already know of EDIFACT.