web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SavedQueryVisualization always creates two records - Update / Retrieve-Problem

(0) ShareShare
ReportReport
Posted on by

hi,

my plugin is creating an record of type "savedqueryvisualization" to display some information right beside the account-list (where the charts are located).

The problem I have right now is, that after I've created that record a second record with the same Id but different uniqueid gets created.

The view "savedqueryvisualization" only returns one record, but the table "savedqueryvisualizationbase" has two of these records.

The Problem:

when I retrieve the record from my plugin it returns the first record.

when I update the record it updates the second record (because they have the same Id)...

So I can never retrieve my updated record...

I checked the View "savedqueryvisualization": there is an orderby overwritetime asc which returns the wrong record.

any ideas how to fix this issue?

Tobias

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Looks to be related to the solution layering. What are the SolutionIds for each of the entries? Can you share the code you're using the perform these operations ?

  • T.Koller Profile Picture
    145 on at

    no, the solutionid and the savedqueryvirtualizationid are exactly the same...the only difference is the unique id

  • Radu Chiribelea Profile Picture
    6,667 on at

    How about the component state ?

  • T.Koller Profile Picture
    145 on at

    one is 0, the other one 1...i think there is an issue within my plugin.

    when I simply just create a new savedqueryvisualization it only creates one record.

  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at

    One is published while the other one is unpublished: msdn.microsoft.com/.../gg328546.aspx

    Can you share your code here? Also are you generating the SavedQueryVisualizationID from the code or are you letting the CRM Platform handle it?

  • Tobias Koller Profile Picture
    on at

    hi Radu,

    thanks for your help. That was the problem...one is published, one is not.

    After I published my entity the second record is gone.

    Tobias

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans