Some times when I'm trying to generate an instance of a schema I've got strange results. I have a record parameter "Max Occurs" = unbounded. Some times "Generate Instance" the command generates 3 records, some times only one.

I've made an investigation.

Results:

                                         0        1/default      2               n(>=3)
The number of the generated records3            1               2                n


Min Occurs:

 

 


 

The number of the generate records is limited from the upper bound by "Min Occurs".

Pretty logical, doesn't it?
Then why I was distracted?
I am waiting the number of the generated records should be equal the Max Occurs,
that's why!

Why I generate the instance? For testing my schema. And the behaviour of my schema for many records especially. If the test records would be in number of the Max Occurs it was more intuitive.

If you have a comment, please, give me a feedback!
Regards,

 


Leonid Ganeline
BizTalk Developer