HOWTO: Downgrade from nYNAB to YNAB4

Related tags

Miscellaneousynab
Overview

HOWTO: Downgrade from nYNAB to YNAB4

This page explains how to move from nYNAB to YNAB4 while retaining as much information as possible. See Appendix 1 for reasons and how to get YNAB4 running.

You will export your current nYNAB budget, then perform some scripted steps on the exported data, and then gradually import it into a new YNAB4 budget. The scripted steps assume that you know how to use Python. (If anybody wants to improve this guide with setup instructions, PRs are welcome!)

Sadly, there is not much scripted at the moment – you will spend time on manual tasks. But at least, this page supplies a guide for handling this stuff a bit better.

Caveats

Don't expect an automated and smooth process – this repo is more of a guide with two helper scripts. If things go wrong, you can always delete your YNAB4 data and start again. Since we're starting with a new YNAB4 budget, nothing will be lost.

Split transactions won't be imported as splits, but rather as individual transactions. The memo field will say "Split 1/n" though, so you'll still see which transactions belonged together.

I also don't use many YNAB features including loans and separate credit card accounts, so the import might not work correctly for them. Please open PRs with updates if you find required changes, or comment on the main issue if it worked for you with a specific scenario, so others will know what works and what doesn't!

Preliminaries

In nYNAB: Check if any of your category names contain a : or a `, as those are not valid characters in YNAB 4. Change these category names now. Also unhide all of your previously hidden categories, as the import will otherwise not work for them, and you'll have to re-categorise them manually. (Not a big deal because they will be easy to filter for, but annoying regardless).

In nYNAB: Export your nYNAB budget by clicking on the budget name in the upper right hand corner → Export Budget. Download the resulting zip file (once your browser has stopped freezing if your budget is a bit older), and extract the zip archive. It contains two files: Budgetname as of date - Budget.csv and Budgetname as of date - Register.csv. I'll refer to these as Budget.csv and Register.csv from here on out.

In YNAB4: Install YNAB 4 (see Appendix 1) and set up a new budget. Set the directory to some place that works well for you (some location you will backup or sync, for example) in the File → Preferences dialog. Go to the directory you selected: You will find a directory called My Budget~number.ynab4. Inside, there is a data1~number directory, and inside that, there is a directory that is just one long UID, looking like 98C499B4-4B29-6CC5-3B7A-F0247E9E2551. Open this directory – it will contain a budgetSettings.ybsettings file and a Budget.yfull file. I will call this directory "YNAB4 data directory" from here on out.

Step 1: Creating accounts

As a first step, create all your accounts in YNAB 4. Please make sure they are spelt exactly like in nYNAB. Take care to also create closed accounts!

(It's probably not worth to automate this step, especially since the nYNAB export does not contain account information like the account type, so even if we write an importer, we'd still have to manually correct the account type, and people usually have a limited amount of accounts.)

Now's a good time to make a backup of your YNAB4 data directory, because if something down the line fails, you won't want to go through this a second time.

Step 2: Creating categories

While accounts are limited in number, categories can be a lot, so I wrote a tiny importer. Make sure to close YNAB 4 before running it – it overrides the data file on closing!

python create_categories.py path/to/ynab4_data_directory path/to/Budget.csv

Step 3: Splitting the payment export file

Now run the second split to take apart the transaction export – YNAB 4 can only import on a per-account basis.

python split_export.py path/to/nynab_data_directory/Register.csv

This will place one CSV file for each account in your working directory, and will replace some terms to make successful imports more likely.

Step 4: Importing files

You'll want to import every file next, each under the appropriate account. Make sure to select Year/Month/Date as time format, as well as "Include transactions before account start date".

Next, approve all transactions and recategorise if any did not receive a matching category on import. This shouldn't happen, but probably will in some edge cases. If YNAB can't find a category, it should put the category in the memo field, so that in most cases, you can search for that field, bulk-select and handle the transactions fairly quickly.

And now the tedious part: When you transferred money from account A to B, this transaction shows up in the account A export and the account B export – but since YNAB 4 does not know that we'll provide both imports, it also auto generates the matching transfer transaction, so every transfer exists twice. You have to go through the list of all transactions, filter for Transfer, and delete every other one :/

To do this, first filter by "Is: Cleared, Transfer". Then, the easiest workflow is to mark the first transaction, then hold Ctrl, and keep pressing down, down, space. Delete either all the inflows or outflows – it doesn't matter, as their counterparts will also disappear.

For context: I used nYNAB for just over five years, and I had to mark around 150 transactions. Not great, but not terrible, either.

Step 5: Cleanup

Now, chances are, some accounts won't have the correct balance. I'm not quite sure what's going on, to be quite honest. Out of my 7 accounts, 2 were off (one by a bit, one by a bit more), the other five came out correct. Things to check:

  • An imported starting balance can be marked incorrectly, either change the flow direction or delete it.
  • Mark a suspect time period (first and last month / year / quarter) in both nYNAB and YNAB 4 and compare the totals.

Now, once all the account totals are correct: you can be done. Just copy your current category bucket total into your YNAB 4, and you're ready to go. Congratulations!

Step 6: Budget import (optional)

Unless you want your budget history to be imported, too – do you want to know how much money you set aside for vacation in 2017? … If so: quit YNAB 4 and make a backup of the directory! Seriously: Your current state is very good and you really don't want to repeat the work you just did if the budget import screws up somehow.

Then run:

python import_budgets.py path/to/ynab4_data_directory path/to/Budget.csv

All your budget data should get imported. Please let me know if this doesn't work – I'm assuming currencies with a single symbol and two decimal places, for example, because I'm lazy like that. You might also try entering a random number into your first month (e.g. April 2016) in YNAB 4 if the import fails – this will cause YNAB to create all the monthly buckets, so that the importer only has to add the correct numbers.

When you open YNAB 4, the total budgeted numbers per category should be correct – if you use future budgeting a lot, it might look off at first, because you'll have large visible numbers as "not budgeted". These numbers are correct though, and should line up with what you see in the breakdown when you click the month's total in nYNAB.

Appendix 1: YNAB 4

YNAB 4 is a desktop application that was the predecessor of the web version, commonly called nYNAB (or just YNAB). YNAB 4 did not have a subscription model, but can't be purchased anymore. If you bought it back in the day, you can still use your activation key. You might also have bought it on Steam, where it will still be activated for you.

If you didn't purchase YNAB 4, you can still download it and run through the 1-month trial. There are trivial ways to extend or repeat or circumvent the trial duration, however, as those are naturally against the TOS of YNAB, I will not document or endorse them here.

Owner
Tobias Kunze
I build things, like @pretalx or @venueless. I run events, like @metarheinmain or @c3cashdesk. I stream my keyboard bashing at https://twitch.tv/rixxian
Tobias Kunze
使用clash核心,对服务器进行Netflix解锁批量测试。

注意事项 测速及解锁测试仅供参考,不代表实际使用情况,由于网络情况变化、Netflix封锁及ip更换,测速具有时效性 本项目使用 Python 编写,使用前请完成环境安装 首次运行前请安装pip及相关依赖,也可使用 pip install -r requirements.txt 命令自行安装 Net

11 Dec 07, 2022
Simple package to make requests throughout Tor with circuit renewal.

AutoTor Table of Contents About the Project Contents Dependencies Getting Started Installation Coding Contributing About the Project Simple package to

Salvador Belenguer 6 Jan 01, 2023
A server shell for you to play with Powered by Django + Nginx + Postgres + Bootstrap + Celery.

A server shell for you to play with Powered by Django + Nginx + Postgres + Bootstrap + Celery.

Mengting Song 1 Jan 10, 2022
Resizing using nnedi3/znedi3/nnedi3cl with center alignment and correct chroma placement

nnedi3_resample A VapourSynth script for easy resizing using nnedi3/znedi3/nnedi3cl with center alignment and correct chroma placement. Requirements n

Home Of VapourSynth Evolution 12 Sep 08, 2022
A working roblox account generator it doesnt bypass the capcha stuff cuz these didnt showed up in my test runs

A working roblox account generator (state 11.5.2021) it doesnt bypass the capcha stuff cuz these didnt showed up in my test runs

TerrificTable 22 Jan 03, 2023
This python code will get requests from SET (The Stock Exchange of Thailand) a previously-close stock price and return it in Thai Baht currency using beautiful soup 4 HTML scrapper.

This python code will get requests from SET (The Stock Exchange of Thailand) a previously-close stock price and return it in Thai Baht currency using beautiful soup 4 HTML scrapper.

Andre 1 Oct 24, 2022
Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]

ormsgpack ormsgpack is a fast msgpack library for Python. It is a fork/reboot of orjson It serializes faster than msgpack-python and deserializes a bi

Aviram Hassan 139 Dec 30, 2022
My tools box script for sigma

sigma_python_toolbox My tools box script for sigma purpose My goal is not to replace sigma but to put at disposal the scripts that I think to help me

4 Jun 20, 2022
Rates how pog a word or user is. Not random and does have *some* kind of algorithm to it.

PogRater :D Rates how pogchamp a word is :D A fun project coded by JBYT27 using Python3 Have you ever wondered how pog a word is? Well, congrats, you

an aspirin 2 Jun 25, 2022
Eros is an expiremental programming language built using simple Python code.

Eros is an expiremental programming language built using simple Python code. Featuring an easy syntax and unique features like type slicing, the language remains an expirement that grows in down time

zxro 2 Nov 21, 2021
🎅🏻 Helping santa understand ✨ python ✨

☃️ Advent of code 2021 ☃️ Helping santa understand ✨ python ✨

Fluffy 2 Dec 25, 2021
An Agora Python Flask token generation server

A Flask Starter Application with Login and Registration About A token generation Server using the factory pattern and Blueprints. A forked stripped do

Nii Ayi 1 Jan 21, 2022
The code for 2021 MGTV AI Challenge Anti Stealing Link, and the online result ranks 10th.

赛题介绍 芒果TV-第二届“马栏山杯”国际音视频算法大赛-防盗链 随着业务的发展,芒果的视频内容也深受网友的喜欢,不少视频网站和应用开始盗播芒果的视频内容,盗链网站不经过芒果TV的前端系统,跳过广告播放,且消耗大量的服务器、带宽资源,直接给公司带来了巨大的经济损失,因此防盗链在日常运营中显得尤为重要

tongji40 16 Jun 17, 2022
Some usefull scripts for the Nastran's 145 solution (Flutter Analysis) using the pyNastran package.

nastran-aero-flutter This project is intended to analyse the Supersonic Panel Flutter using the NASTRAN software. The project uses the pyNastran and t

zuckberj 11 Nov 16, 2022
It's a repo for Cramer's rule, which is some math crap or something idk

It's a repo for Cramer's rule, which is some math crap or something idk (just a joke, it's not crap; don't take that seriously, math teachers)

Module64 0 Aug 31, 2022
A faster copy of nell's comet nuker

Astro a faster copy of nell's comet nuker also nell uses external libraries like it's cocaine man never learned to use ansi color codes (ily nell) (On

horrid 8 Aug 15, 2022
WinBoost: Boost your windows system.

Winboost runs a complete checkup of your entire system locating junk files, speed-reducing issues and causes of any system or application glitches or crashes. Through a lot of research and testing, w

Smit Parmar 4 Oct 01, 2021
Request ID propagation for ASGI apps

ASGI Correlation ID middleware Middleware for loading and receiving correlation IDs from request HTTP headers, and making them available in applicatio

snok 170 Jan 02, 2023
Generating rent availability info from Effort rent

Rent-info Generating rent availability info from Effort rent Pre-Installation Latest version of python Pip module json, os, requests, datetime, time i

Laixuan 1 Oct 20, 2021
An html wrapper for python

MessySoup What is it? MessySoup is a python wrapper for html elements. While still a ways away, the main goal is to be able to build a wesbite straigh

4 Jan 05, 2022