Libxlsxwriter for Clarion

I just created a source procedure(image below), and this is called on another dll.
I tried creating the same procedure on the same dll it was calling but still getting call stack error.

Here is sample code I’m using to call that procedure

   DATA
xlsx              xlsxwriter
   CODE
     xlsx.NewWorkbook(LOC:FileName)
     xlsx.AddSheet('General Inventory Count (' & CHOOSE(REP:ReportFormat = 'DTL','Detailed','Summary') &')')
     ExcelWriter:WriteToCell(xlsx,g:aReportHeader[1],1,1,XLSX:ALIGN_CENTER)