Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Duplicated views

  • 1.  Duplicated views

    Posted 7 days ago
    ​Hello Everyone,

    I am Looking forward for some help on deletion of views.

    I was trying to create a custom entity. When I first tried to save , it gave me a SQL error . I ended up clicking on the save button again . I now have two set of system views showing up .


    Can I just delete the duplicated views . Will it have any impact when I lock these changes as a managed solution and load them up in another environment.
    Please guide through the same.


    ------------------------------
    Bhartendu Pandey
    Willis Towers Watson
    London
    ------------------------------


  • 2.  RE: Duplicated views

    SILVER CONTRIBUTOR
    Posted 7 days ago
    Hello,
    Would it be hard to delete this entity and create it from scratch? I believe this is the best way to resolve your issue.
    Alternatively you can export solution that contains your entity, delete entity, unpack solution, open customization.xml, remove duplicated views from it, pu customizations.xml back to solution's archive and import it to CRM.
    But I would recommend recreation.

    ------------------------------
    Andrew Butenko
    Senior Consultant, MVP, MCTS, MCAD
    Hitachi
    Greenville SC
    ------------------------------



  • 3.  RE: Duplicated views

    Posted 20 hours ago
    ​Hi Andrew,

    Thank you for your email.
    I tried deleting the entity however was not able to delete the same due to multiple dependencies and the list was too long.
    I ended up changing the state for certain duplicated views to managed and then deleted the duplicated views.

    I will now proceed to deploy this solution in some other environment and check if the issue reproduces.

    Thank you for guidance Andrew :-)

    ------------------------------
    Bhartendu Pandey
    Willis Towers Watson
    London
    ------------------------------



  • 4.  RE: Duplicated views

    TOP CONTRIBUTOR
    Posted 19 hours ago
    I guess you didn't do this in the sandbox first?
    You can export the solution with all the views and try to delete one of the dups and see what happens.   Hard to tell without looking at the logs, etc.  Does the views show under the custom entity?    Just make sure you have a backup before you try anything.


    ------------------------------
    Beth Burrell , MCP - MCSE - MCT

    Wesley Chapel FL
    ------------------------------



  • 5.  RE: Duplicated views

    Posted 18 hours ago
    ​Hello Beth,

    Greetings and thank you for your email.
    We are currently having our Dev environments configured in the sandbox environment and we tested and reworked on the duplication in the same. Post setting the ismanaged property to true I was able to delete the duplicate views. Now I will be testing this further to see if the duplication still continues and will reach out for further guidance..

    Thank you for your kind reply :-)



    ------------------------------
    Bhartendu Pandey
    Willis Towers Watson
    London
    ------------------------------