In the latest patches to SugarCRM version 7, you may have run into a "Data not available" error immediately after installing a module or while trying to go to your new module's end points using the Sugar App router. You may have found out that by simply refreshing the page and going back to your endpoint solves the issue. I knew there had to be something Sugar was doing on a page refresh that it wasn't doing after a module was installed.
After browsing through the many AJAX requests of Sugar 7, I found a "sync" request that loads a lot of information Sugar needs to operate, including all the available routes for your modules. Since Sugar 7 is a one-page application (meaning it uses AJAX requests for everything), after a module finishes installing through the module loader, the browser is not aware of the new routes your newly installed module added which is why the "Data not available" error is shown. Simply running a sync will solve this.
It's as simple as the script above. Once that runs, your app will know about your new routes.
Latest Release Notification Program
What’s new with the latest SugarCRM release? What plugins can I use to improve my CRM experience? Our Latest Release Notification Program answers these questions for you, tailored of course to your specific business requirements.
ShapeMySugar : the customization that boosts CRM
ShapeMySugar is the module you need to convince your employees to use your CRM. Thanks to this module, you are able to customize many elements of your application so that your team can make it their own and identify your CRM as a new coworker. You will be surprised at the improvement of the user exp...
Keep track of your remote meetings in Sugar® CE or SuiteCRM? See your meetings and plan your routes visually by using this map add-on. Display all of your meetings on a map right from your Calendar.
- Show more addons