Creating a Record

Hi,
I have an xCBL document and I want to generate the corresponding record from the document. Now I am using stringToDocument
DocumentToRecord
In the DocumentToRecord step, I specify makearrays = false and recordName = the reference to the record under the corresponding package. This step is giving me a record without proper format - The recordLists come up as records and all kinds of problems.
If I take out the makearrays argument and the recordName argument everything works fine.
Is this the right way to create a record?
Thanks in advance