KB Article #178645
[XOB - 250]: Fail to initialize Business Document
Problem
-- Mapping Services crashes when building a project
-- getting this error in %TMP%\client.log
[XOB - 250]: Fail to initialize Business Document (MAPSERVICE.SE0067_B2B_DESADV_IN.despatchAdviceMessage) with xsd (C:\Users\xxx\Axway\workspace\SE0067_B2B_DESADV_IN\Business Documents\gs1\ecom\DespatchAdvice.xsd) and tag Root (despatchAdviceMessage)
Resolution
* open the client.log and search for the errors thrown before the error [XOB - 250]: Fail to initialize Business Document
Ex :
[XOB - 34000]: Document Type = MAPSERVICE.SE0067_B2B_DESADV_IN.despatchAdviceMessage at file 'C:\Users\xxx\Axway\workspace\SE0067_B2B_DESADV_IN\Business Documents\gs1\ecom\DespatchAdvice.xsd' , line 129, char 160, exception: element declaration in the all compositor must have minOccurs and maxOccurs equal 0 or 1
[XOB - 34000]: Document Type = MAPSERVICE.SE0067_B2B_DESADV_IN.despatchAdviceMessage at file 'C:\Users\xxx\Axway\workspace\SE0067_B2B_DESADV_IN\Business Documents\gs1\ecom\DespatchAdvice.xsd' , line 106, char 62, exception: all compositor that is part of a complex type definition must constitute the entire content of the definition
[XOB - 250]: Fail to initialize Business Document (MAPSERVICE.SE0067_B2B_DESADV_IN.despatchAdviceMessage) with xsd (C:\Users\xxx\Axway\workspace\SE0067_B2B_DESADV_IN\Business Documents\gs1\ecom\DespatchAdvice.xsd) and tag Root (despatchAdviceMessage)
* In this case, there are 2 possible errors in the schema. Open the schema in an XML editor and check if similar errors are detected. if so, it means that the schema is not valid. Otherwise, it may be a product issue
* After the schema has been fixed, reimport the schema the build should be fine