I am having the same issue, moving from 2020.0 to 2020.1.
Any susggestions?
After talking with Safe, it has been determined that it is a known error. They are moving away from Topics/Notifcations and towards all automation's. What you can do is delete the workspace off the server and reupload it and it will allow you to grab that JSON again.
-Adrian
Thanks for your response.
I just wanted to let everyone know that a fix has gone into FME 2020.1.3 which is scheduled for release in October. Please see below for a workaround that means you do not have to delete your workspace from FME Server in order to be able to publish it again.
Workaround
Whenever you publish a workspace to FME Server under the Notification Service essentially what this is doing is creating a Subscription with the FME Workspace protocol.
In the FME Server Web UI you'll find the name of this subscription is <username>.<repository>.<workspace> and when you view this you'll see is is subscribed to the Topic SAMPLE_TOPIC(or other), underneath that in the Protocol Settings box there is a section for Workspace Published Parameters and next to the Source JSON File there is a checkbox 'Get Value from Topic Message'. This is equivalent to the Service Properties: Parameter to get Topic Message in the Notification Service.
Therefore the simplest option would be to un-register your workspace from the Notification Service and instead start to manage this subscription from the Web UI. The current subscription is tied to the service registration so you'll need to create a new Subscription to keep this up and running and allowing you to remove that service registration, here are the steps I would take:
- In FME Server Web UI go to Automations > Notifications (Classic) > Subscriptions
- Find the relevant subscription, and select the checkbox to the left of the subscription name, then you'll have the option to duplicate it
- Give the new Subscription a name, then leave everything else as is.
- You'll now have the workspace subscribed to the topic twice. You could delete the old subscriber but this does not help with the publishing issue. Publish your workspace back to FME Server and this time un-register it from the Notification Service. Once publishing is successful (yay!) double check in the Web UI the old subscriber has been removed.
You'll now be able to make any updates to these workspaces and re-publish them because they are no longer relying on the Notification Service, instead if you want to make any changes you can manage this directly through the subscription in the Web UI.
All this being said, in the long-term I would recommend moving any Notifications over to Automations, as this is now legacy functionality meaning there will likely come a point where if any bugs arise, they may not be addressed in favour of the Automations functionality.