How exactly are you calling GetImportFilename2?

PS Can you add code tags?