locked
Validating flat files with BizUnit RRS feed

  • Question

  • Hi

    Does anyone know if there is a way to validate flat files with BizUnit? Validating it against its schema..., looking for chunks of data...

    Thanks!

    Thursday, September 27, 2012 2:35 PM

Answers

  • Use BizUnit 4.0

    TestableSchemaBase _Schema = new SchemaName();
                bool result = _Schema.ValidateInstance(@"FilePath", OutputInstanceType.XML);
                Assert.IsTrue(result, "Validation Failed");
    
    TestableSchemaBase _Schema = new SchemaName_FF();
                bool result = _Schema.ValidateInstance(@"TextFilePath", OutputInstanceType.Native);
                Assert.IsTrue(result, "Validation Failed");
    

    Thursday, September 27, 2012 2:49 PM

All replies

  • Use BizUnit 4.0

    TestableSchemaBase _Schema = new SchemaName();
                bool result = _Schema.ValidateInstance(@"FilePath", OutputInstanceType.XML);
                Assert.IsTrue(result, "Validation Failed");
    
    TestableSchemaBase _Schema = new SchemaName_FF();
                bool result = _Schema.ValidateInstance(@"TextFilePath", OutputInstanceType.Native);
                Assert.IsTrue(result, "Validation Failed");
    

    Thursday, September 27, 2012 2:49 PM
  • Thank you for your answer. The problem is that I use Biztalk 2006 and the class that you talk about, TestableSchemaBase ,  exists since Biztalk 2009, doesn't it?
    Thursday, September 27, 2012 3:40 PM