Output validation error!!

Home Page Forums BizTalk 2004 – BizTalk 2010 Output validation error!!

Viewing 1 reply thread
  • Author
    Posts
    • #12902

      hi!
      I got this problem when i was trying to test my map.

      Output validation error: The ‘BOKFDAT’ element is not declared. An error occurred at file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/x1_output.xml, (1, 311).

      OBS! that I have given a default value to BOKFDAT in my XML-schema.

      any clue on why this happens?[/code]

    • #12903

      I tried to reproduce this error, I created testSchemaDefault and added three elements A, B, C. I mapped A, gave B a default value, and tried mapping and not mapping C.

      I tried MinOccurs of 0 and 1 on B, and could not get your error.

      When I tried to not map C, I get this error which is entirely different from your error:

      Output validation error: The element ‘http://TestSchemaDefaultValue.TestSchemaDefaultVal:TestSchemaDefaultVal’ has incomplete content. Expected ‘C’. An error occurred at file:///C:/DOCUME~1/nwalters/LOCALS~1/Temp/_MapData/Map1_output.xml, (1, 118).

      Of course, you can turn off output validation, but that is not necessarily wise (right click map, then properties, \”Validate TestMap Output\” = False.).

      Also, what are you mapping in? Are you using a real XML document or are you letting Biztalk Generate a dummy one for you. I noticed that if I let Biztalk generate the dummy data, he uses the default in the schema for the incoming value. Hopefully you are using a real file in the map-properties \”TestMap Input Instance\”?

      What other properties are set for your BOKDFAT element?

      I tried this input:
      <ns0:TestSchemaDefaultVal xmlns:ns0=\”http://TestSchemaDefaultValue.TestSchemaDefaultVal\”>
      <A>1</A>
      <B>2</B>
      <C>3</C>
      </ns0:TestSchemaDefaultVal>

      and got this output:
      <ns0:TestSchemaDefaultVal xmlns:ns0=\”http://TestSchemaDefaultValue.TestSchemaDefaultVal\”>
      <A>1</A>
      <B>B-Default</B>
      <C>3</C>
      </ns0:TestSchemaDefaultVal>

      mapping A to A and C to C and no mapping for B.

      So it looks like it should work. Maybe you can create a simple example?

      Sorry, that’s all I can figure out for now.

      Neal Walters
      http://Biztalk-Training.com

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.