Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: QIF File import doesn't parse date correctly, ends up in notes column #1932

Closed
1 task done
KyleK1782 opened this issue Nov 19, 2023 · 4 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@KyleK1782
Copy link

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

When importing, the date ends up in notes instead of date column!
Sample from the import file (snipped to remove private transactions)

!Type:Bank
M11/15/2023
T-7.49
N
PSQ *EQUATOR COFFEE BARRHAOttawa 
^
Screenshot 2023-11-19 at 1 46 09 AM

What error did you receive?

No error.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Chrome

Operating System

Mac OSX

@KyleK1782 KyleK1782 added the bug Something isn't working label Nov 19, 2023
@joel-jeremy
Copy link
Contributor

Looks like your bank's export is generating a QIF which stores the date in the memo tag (as seen in this line M11/15/2023). That is unusual since the date must labeled with a D tag e.g. D11/15/2023. That is why Actual is (rightfully) setting it in the memo field.

@KyleK1782
Copy link
Author

Interesting okay, I’m not surprised. My bank supports many formats but isn’t great about labeling or including more information.

Would it be possible to include a way to switch the memo and date columns in the interface?

@rolinge
Copy link

rolinge commented Nov 19, 2023

I see you are using a Mac, you could send your data file through sed (stream editor) before importing, changing the first character from M to D on the appropriate lines...
Something like
(Open a terminal, navigate to the directory of your bank file)

cat yourfile.QIF | sed 's/^M/D/' > newfile.QIF .

Or, get your bank to export with the proper field identifiers. sed is easier.

@KyleK1782
Copy link
Author

Thanks @rolinge the sed command seems to be the issue. I'll let my bank know they're not following the standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants