Skip to main content

#Adoption App2 utenti parlano di questo argomento

Hi everyone,

I am encountering a blocking issue with the Analytics Adoption Metadata managed package (Salesforce Labs) and wanted to report this bug to see if a workaround exists or if a patch is planned.

 

The Error:

 

The asynchronous process fails with an exception indicating that ApexPages.addMessage() is being invoked from a non-Visualforce context.

(Optional: Paste the exact stack trace line here if you have it, e.g., System.HandledException: ApexPages.addMessage can only be called from a Visualforce page context).

Technical Breakdown:

  • Root Cause: The exception is thrown by the WaveMetaDataQueueable job, which executes asynchronously.
  • The Conflict: The code is attempting to use ApexPages.addMessage() to handle an error or status. While this works perfectly during a synchronous Visualforce page request, it is completely detached from a page context when running in a Queueable Apex process.
  • The Result: Salesforce throws a runtime exception because there is no UI page to attach the message to.

The Roadblock:

 

Because this is part of the managed

Analytics Adoption Metadata package, the underlying source code of WaveMetaDataQueueable is hidden. I cannot manually wrap this in a conditional context check (like checking if ApexPages.currentPage() is null) or remove the line myself.

Has anyone else run into this with the latest release, or does anyone know if the Salesforce Labs team is actively tracking a patch for this queueable class? Any advice or temporary workarounds would be greatly appreciated! 

 

#Salesforce Labs  #Adoption App  #CRM Analytics  #Apexexceptionemails

1 risposta
  1. 25 set, 10:20

    Hi there, 

     

    There is a tracked issue on

    issues.salesforce.com

    : "Einstein Analytics - Adoption App - Apex Error Argument cannot be null," which describes the same WaveMetaDataQueueable class failing after installing the Analytics Adoption Metadata package. The exact error text differs slightly from yours (Argument cannot be null vs. the ApexPages.addMessage context error), but it's the same failing queueable class in the same managed package — worth checking that issue thread for current status/comments, since it confirms this isn't isolated to your org. 

     

    Since the package is managed and WaveMetaDataQueueable's source is hidden, you're right that you can't patch around it directly. Practical options in the meantime: 

     

    1. Disable the Adoption Metadata dataflow trigger. In Setup → Analytics Settings (or via the AnalyticsSettings metadata, analyticsAdoptionMetadata flag), you can turn off automatic Adoption Analytics metadata collection so the queueable stops firing and throwing the exception on schedule. 

     

    2. Check/upvote the existing issue on

    issues.salesforce.com

    rather than filing a duplicate — that's the channel Salesforce Labs teams actually monitor for prioritization, and comments/votes there carry more weight toward getting a fix scheduled than a community thread. 

     

    3. If this isn't business-critical for you right now, uninstalling the package until a patch lands is the cleanest way to stop the recurring failed async job/error emails. 

     

    Since it's a Salesforce Labs (not core platform) managed package, there's no formal SLA on a fix — the

    issues.salesforce.com thread is genuinely your best channel to track and push for resolution.

0/9000

Hi All! 

 

Just sharing some knowledge here, in the Summer 18 release the Einstein Analytics Adoption App is now available in Sandbox. I went to test this app and there are a few things to note. 

 

1.In Sandbox make sure the app has been enabled by your Analytics Support person. My understanding is it will be automatically enabled in Production

2. Under event monitoring setup ensure the View Event Log Data in Analytics Apps permission is enabled. This is a new permission and was not available in Sandbox until this week. I was having issues with the app because this permission was not released to sandbox until recently. 

3. Ensure you have installed the managed package that creates the dataset first before creating the app. The app needs this dataset to function.  https://appexchange.salesforce.com/listingDetail?listingId=a0N3A00000EJxtBUAT 

 

Note: when installing the managed package give access to the package by profile. That way you can give access to admins AND the Wave Integration User Profile. The integration user needs access to the Adoption App managed package in order to bring the data into Einstein Anlaytics

 

4. Once the managed package is installed follow the instructions post install instructions on creating a remote site and running the dataflow (initially set dataflow time to one minute from current time and verify that the dataflow has run)

5. Once the app has been enabled update your Analytics Permission set to "Access Adoption Analytics Templates and Apps". This new permission will not be available until your environment is enabled

6. Go  to Einstein Analytics and Create the Adoption App like you would any other templated app. The wizard will run and create the dataflow

 

Dont be alarmed if data does not immediately appear in the app. It can take up to 24 hours for data to collect in the event logs before it can be registered in the dataset. Check the app the next day after some use of the datasets and dashboards. 

 

Thanks, 

Allison 

10 commenti
0/9000

Is there any way to identify unused dashboards lens and apps using adoptions app.?

 

The section which shows unused assets is generated based on "Last Viewed." but when I confirmed with one user that he/her dashboard actually is viewed on a daily basis.

 

We have hundreds of reports saved in the system and i'm looking for a good way to manage those and delete the unused assets and inactive assets .

 

Can anyone help me out how to find unused assets that are not been used in last 30 days @Peter Lyons  @Midori Nakamura @Ed Mengel @Johan Yu  @GAYATRI SHARMA 

3 commenti
0/9000

Analytics Adoption App question:

What would cause the "WaveChange" dataset to not refresh?

Everything had been running as expected until Tuesday and now the WaveChange dataset has not been refreshed for 2 days.

I'm unaware of any changes made that would have caused this.

Thanks!

 

@Radha Vivek 

5 commenti
  1. 29 lug 2019, 13:59
    @Radha Vivek This issue continues to be a problem. The "WaveChange" dataset is not refreshing despite the apex job executing as scheduled. Is there something else I need to check?
0/9000

When using the "WaveChanges" dataset for usage tracking, what filters are required to ensure you are not inflating the usage stats?  For example, If a user opens a dashboard & then opens a second dashboard and then clicks back to the first one without exiting, ideally this would count as 1 visit to each of the 2 different dashboards opened.

0/9000