Invalid Workspace

Hello,
I get an error dialogue
“An error occurred attempting to import this workspace”

when attempting to install the Today Workspace
What am I doing wrong? any help would be welcome.

I’m getting the same error on this workspace and several other using the latest beta. But not the most recent workspaces.

I took a look at the structure (take the URL’s data parameter value, URL decode, and format the resulting JSON for those who want to follow along), and I noted that the preferredDarkTheme and preferredLightTheme entries were present I the more recent ones.

As a test I added those Into the structure for the Today workspace (and took out the identifier parameter as it isn’t an official update). That gave me this URL, which does seem to import okay.

drafts5://importworkspace?&data=%7B%0A%20%20%22icon%22%3A%20%22calendar-favorite%22%2C%0A%20%20%22isChangedBacking%22%3A%20false%2C%0A%20%20%22archiveSortDirection%22%3A%20%22descending%22%2C%0A%20%20%22showLastAction%22%3A%20true%2C%0A%20%20%22flaggedSortMode%22%3A%20%22modified%22%2C%0A%20%20%22lastClonedKey%22%3A%20%22%22%2C%0A%20%20%22archiveIncludesFlagged%22%3A%20true%2C%0A%20%20%22showTags%22%3A%20true%2C%0A%20%20%22queryString%22%3A%20%22%22%2C%0A%20%20%22allSortFlaggedToTop%22%3A%20false%2C%0A%20%20%22dateRangeSpecifier%22%3A%20%7B%0A%20%20%20%20%22startSpecifier%22%3A%20%7B%0A%20%20%20%20%20%20%22specifierType%22%3A%20%22relative%22%2C%0A%20%20%20%20%20%20%22absolute%22%3A%20619034923.725368%2C%0A%20%20%20%20%20%20%22isEnabled%22%3A%20true%2C%0A%20%20%20%20%20%20%22field%22%3A%20%22modified_at%22%2C%0A%20%20%20%20%20%20%22relativeDays%22%3A%200%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22endSpecifier%22%3A%20%7B%0A%20%20%20%20%20%20%22specifierType%22%3A%20%22relative%22%2C%0A%20%20%20%20%20%20%22absolute%22%3A%20619034923.725368%2C%0A%20%20%20%20%20%20%22isEnabled%22%3A%20false%2C%0A%20%20%20%20%20%20%22field%22%3A%20%22created_at%22%2C%0A%20%20%20%20%20%20%22relativeDays%22%3A%200%0A%20%20%20%20%7D%0A%20%20%7D%2C%0A%20%20%20%20%22preferredDarkTheme%22%3A%20%22custom%3C%25%25%3E73B6DE1E-855F-4632-A9D9-F96B92459273%3C%25%25%3EDarkGrayDot%22%2C%0A%20%20%22key%22%3A%20%22E2671403-89AE-4017-9735-87BBFDBEC60B%22%2C%0A%20%20%22inboxSortMode%22%3A%20%22modified%22%2C%0A%20%20%22tagFilterMode%22%3A%20%22all%22%2C%0A%20%20%22showQueryPreview%22%3A%20true%2C%0A%20%20%22tintColor%22%3A%20%22yellow%22%2C%0A%20%20%22allSortMode%22%3A%20%22modified%22%2C%0A%20%20%22tagFilter%22%3A%20%7B%0A%20%20%20%20%22omittedTags%22%3A%20%5B%5D%2C%0A%20%20%20%20%22requiredTags%22%3A%20%5B%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22hidden%22%3A%20false%2C%0A%20%20%20%20%20%20%20%20%22changeTag%22%3A%20%22%22%2C%0A%20%20%20%20%20%20%20%20%22name%22%3A%20%22all%22%2C%0A%20%20%20%20%20%20%20%20%22isVirtual%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%22createdAt%22%3A%20622043260.476458%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%5D%0A%20%20%7D%2C%0A%20%20%22inboxSortDirection%22%3A%20%22descending%22%2C%0A%20%20%22allSortDirection%22%3A%20%22descending%22%2C%0A%20%20%22name%22%3A%20%22Today%22%2C%0A%20%20%22loadKeyboardGroupUUIDString%22%3A%20%22%22%2C%0A%20%20%22isHidden%22%3A%20false%2C%0A%20%20%22preferredLightTheme%22%3A%20%22custom%3C%25%25%3E891CCC18-45C6-47CE-8524-0A6379118737%3C%25%25%3ELightGrayDot%22%2C%0A%20%20%22loadActionGroupUUIDString%22%3A%20%22563A977C-9DF3-406D-B089-1A7D87AB8175%22%2C%0A%20%20%22showDate%22%3A%20true%2C%0A%20%20%22isTemporary%22%3A%20false%2C%0A%20%20%22loadQueryFolder%22%3A%200%2C%0A%20%20%22archiveSortMode%22%3A%20%22modified%22%2C%0A%20%20%22flaggedSortDirection%22%3A%20%22descending%22%2C%0A%20%20%22sortIndex%22%3A%201597339330.659755%2C%0A%20%20%22inboxIncludesFlagged%22%3A%20true%2C%0A%20%20%22showPreview%22%3A%20true%2C%0A%20%20%22archiveSortFlaggedToTop%22%3A%20false%2C%0A%20%20%22inboxSortFlaggedToTop%22%3A%20true%0A%7D

Assuming I’m right, it looks like either old workspaces need an update, or Drafts needs to treat those theme data items as optionally specified.

Hi,
Thanks for response.
As a newbie to Drafts, my understanding is that something is broken, who is responsible for actioning a fix to the issue that you have described?
Do I just wait for something to happen?

If you want to get a working version now you can either build it manually or use the URL I posted. That’s in your power to actively do something.

In terms of addressing the issue with the app/directory, the Workspaces that are affected were all submitted by @agiletortoise (Greg - the developer of Drafts), so he would happen to be the person who could update those particular workspaces. In terms of how the app handles the change, that would always be something he would have to make a call on and apply any updates accordingly. For that, you will have to wait on a response from him, but as you may have seen, he is very active in the forum, so it will likely be soon (time ones :man_shrugging:t2:).

I updated mine in the directory. This was an intentional change, but I neglected to post updates to the directory after the Drafts update shipped. They should work now.

1 Like

Hi,
yes it now works, many thanks for a quick response.