Unable to match the data in the input stream

by eliasen 14. januar 2007 12:41

Hi

I was trying to help someone in the BizTalk newsgroups, creating a flat file schema, and I ran into this very annoying error message: "Unable to match the data in the input stream.". I got the error message after having created the schema and trying to validate an instance, using VS.NET 2005.

I searched and searched...

  • Someone needed to set the "parser_optimization" to "complexity" - I had allready done that.
  • Someone else needed to set the "lookahead_depth to 0 - I had also tried that.
  • Someone needed to set the input type to "Native" instead of XML. Had that been my problem, I wouldn't have blogged about it - I'd be too embarassed :-)

No, the problem was that I had created parts of the schema using the flat file wizard. It had set one of my records to have "minOccurs" = 18 and "maxOccurs" = 18 as well. Since my test instance didn't have that many records in it, I got this error message. Changing the two 18's to the default 1 solved my problem.

I hope Microsoft considers this and perhaps in future releases find a better error description :-)

In order to test it, you can just download the working schema: Exolit_FlatFileSchema.xsd (91.59 KB) and the test instance: Instance.txt (.72 KB) - it will validate. But try to change the minOccurs and maxOccures of the "Invoices"-record to "18" - and revalidate.

Anyway... Hope this helps someone in the future.

--
eliasen

Tags:

BizTalk 2006

Comments (8) -

Genuine Basil
Genuine Basil
26-03-2008 16:27:58 #

Even I also faced such a problem with a sap idoc schema.. got resolved by setting look ahead depth to 0.. Your artical was helpful to find out the possible causes.. Smile

MS article on this..
http://support.microsoft.com/kb/884622

Reply

Sure as heck helped me! Mine put in minOccurs=6 and maxOccurs=6 for whatever reason. odd balls!

Reply

Jan Eliasen
Jan Eliasen
04-06-2010 06:25:54 #

Hi

Glad I could help. Yes, very strange... but hey, many things are strange... Smile

--
eliasen

Reply

무이자
무이자 United States
16-03-2024 19:11:11 #

<a href="https://www.yjmusic.co.kr/아름다운조건만남전국업소지점(카톡:po03)24시간영업-고객만족1위/>아름다운스웨디시업소</a></br>

Reply

올리지오
올리지오 United States
17-03-2024 13:51:53 #

<a href="https://p0ellj.tistory.com/골프조인방무료채팅엔조이친구만들기부산채팅유료채팅건전한채팅아줌마[KaKaotalk:za31]부산출장안마-부산역할머니,부산출장사이트,부산출장홈타이서비스/">전신스타킹</a></br>

Reply

bengal school madam vs student xxx bangla ra
bengal school madam vs student xxx bangla ra United States
22-03-2024 00:21:14 #

<a href="https://ajaedotcom.tistory.com/영등포출장안마-오빠나죽어[카톡:oJ22]/">영등포안마살롱</a></br>

Reply

커플요가섹스마사지
커플요가섹스마사지 United States
05-04-2024 02:11:37 #

https://honeytiplabs.com/카카오톡-친구-추가-거부/

Reply

이태원출장섹스마사지
이태원출장섹스마사지 United States
19-04-2024 19:20:05 #

<a href="https://dday.tistory.com/이태원게이바-원하는쵸이스-설렘가득-미남오빠들대기중[카카오톡:B021]/">이태원게이바</a></br>

Reply

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Jan Eliasen is 37 years old, divorced and has 2 sons, Andreas (July 2004) and Emil (July 2006).

Jan has a masters degree in computer science and is currently employed at Logica Denmark as an IT architect.

Jan is a 6 times Microsoft MVP in BizTalk Server (not currently an MVP) and proud co-author of the BizTalk 2010 Unleashed book.

BizTalk Server 2010 Unleashed


Buy from Amazon

Microsoft MVP


6 times: July 2004, July 2008, July 2009, July 2010, July 2011, and July 2012. Not currently an MVP.

MCTS

Image to show

Month List

Page List