The script that I shared several years ago should do exactly what you need. I suggest that you post your version of this script so that we can check it over for possible issues. You can post a script by using the picture icon in the tool bar above your reply to upload a screen shot of it or you can copy and paste the script text from a Database Design Report or from a PDF printout of the Script.
I had tried to adapt the same script whom the link you provided above. Before sending you my script, I tried some changes in the script and every time got different result. Now with this script I only get duplicate of parent record with out copy of portal data with a message that "this layout can not display the result". If I put the portal table in line 6 then it copy the record several times with same portal records taking ID of parent table. I experimented with only only
one record in the parent table with 2 records in portal so changed the line 4 also.
Very sorry phil
You are right. Your script was perfect. I was missing two lines after line no. 11. Omit Record was 2 times that I could not see. Thank you again.