StrataFrame Forum

"Generate XML" in Message Editor throws an error.

http://forum.strataframe.net/Topic18238.aspx

By Philipp Guntermann - 7/30/2008

I have a localization project, including english and german language. upon generating xml for all languages, i get the error shown below. if i choose to only export german language tho it works.







By Trent L. Taylor - 7/31/2008

My German is a little rusty...what does it say?
By Philipp Guntermann - 7/31/2008

it reads:

"The index of 0 is either negative or above the total amount of rows."

By StrataFrame Team - 8/1/2008

Looks like a bug to me... we're calling NewRow(), then trying to access the CurrentRow property. There must be a filter on the business object that is preventing the NewRow() from being visible right after it's added. I'll see if it's by design and needs to be fixed within the Messaging Editor or if there is a way we can fix it within the CopyDataFrom() method.
By StrataFrame Team - 8/1/2008

Yep, as I suspected, a filter is being set before the CopyDataFrom method is called within the GenerateXMLDocuments method. I fixed the filter, and the changes will be available in the next build. Thanks for finding it Smile
By Philipp Guntermann - 8/1/2008

well, thanks for fixing it Smile

is there some workaround or something i can do in the meantime to get the xml files build ?

thanks.

By Trent L. Taylor - 8/1/2008

We are doing a build right now and you can just download that build once it is complete.  It will be posted in the Posted Releases section of the forum within the next hour or so.
By Philipp Guntermann - 8/1/2008

great !

thanks BigGrin

By Trent L. Taylor - 8/1/2008

Posted: http://forum.strataframe.net/FindPost18263.aspx