The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Custom import filter issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cdrozdowski111

USA
247 Posts

Posted - 01/20/2013 :  10:44:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 9.0.0 SR1, Win7 64-bit, running in VMware Fusion 5.0.2

I have created a number of custom import filters. When I attempt to import files with commas in the file name, the import fails right off with the following error:

"incorrect number of arguments passed to function: OpenFileWithFilter"

Commas are allowed characters in file names and I have a large number of files (and constantly adding more) with commas in them making removing them manually a nuisance.

I don't know if this would be considered a bug or not but does anyone have at least a short term suggestion for overcoming this?

greg

USA
1378 Posts

Posted - 01/21/2013 :  3:57:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Without details, I can only make a guess...

Have you tried protecting the file name with quotes? "file, name"
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 01/21/2013 :  5:00:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have a very basic OIF file and a couple of data files to illustrate the issue. I'll email them to tech@originlab.com along with details.
Go to Top of Page

Echo_Chu

China
Posts

Posted - 01/22/2013 :  02:17:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Christopher

Thank you for sending us the file. But we can not reproduce the problem with your data file and filter. We have tried on VMware Fusion 5.0.1

The data can be successfully imported in Origin via either Import Wizard or Dragging and Dropping.

Could you try reset your Options dialog with steps as below to see whether it helps?

1. Select Tools: Options to open the Options dialog.
2. Click the Reset button

It will reset all settings in the dialog to be Origin's default setting.

Echo
OriginLab Corp.
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 01/22/2013 :  07:02:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Both with and without resting the Options, I am able to import the file using both the Import Wizard and drag and drop.

However, the issue arises for me when I try to import the data via the File->Open... Menu item (both with and without resetting the Options). Do y'all try it that way?
Go to Top of Page

Echo_Chu

China
Posts

Posted - 01/22/2013 :  10:14:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Christopher

Thank you for your info. I see what happened and can reproduce your problem now.

We have added this problem to our bug tracking database and will fix it. We will email to help you further

Echo
OriginLab Corp.
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 01/23/2013 :  06:54:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Echo,

I worked with Greg via email to produce a viable fix for the comma issue. It involves copying FILE.OGS to my UFF and modifying line #369 to read:

OpenFileWithFilter("%1","%2");

He suggested quotes around the file name param (which works). I added quotes around the template name param as template names can have commas in them as well (also works).
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000