Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Unable to edit/delete active segment in error state

(0) ShareShare
ReportReport
Posted on by 44

Hi,

I have an active segment that is currently in an error state. My problem is that I'm unable to edit it to fix the problem and/or delete it. This is purely a test segment and therefore not of huge importance. However, I'd like to try and figure out how to fix the issue.

The segment, which is live, went into an error state when I deleted another segment that was part of it. 

Error message: QuerySemanticError Line: 6, Position: 394, Column: 0: Semantic error, Segment 'SEGMENT_CRM_ID_ede3e16f87ebeb11bacb000d3ab79c7c' could not be found.

Anyone come across this issue before and knows how to resolve it? Thanks in advance.

  • Cnquest Profile Picture
    Cnquest 97 on at
    RE: Unable to edit/delete active segment in error state

    Hero! That 100% worked. Thanks so much!

  • Suggested answer
    SveinS Profile Picture
    SveinS 44 on at
    RE: Unable to edit/delete active segment in error state

    Yes, I managed to sort it out in the end. Had to get in touch with support to fix the issue. I presume the solution I got from them will work for you as well.

    You go into the segment and fetch the segment ID. Open up Chrome DevTools (F12) and go to console. Paste the code below in there and add the segment ID.

    var data = { "statuscode": 192350000 }

    var request = await fetch("/api/data/v9.0/msdyncrm_segments(SEGMENT ID IN HERE)", {"method": "PATCH", "headers": {"content-type": "application/json"}, "body": JSON.stringify(data)});

    console.log(request.status);

    That did the trick for me.

  • Cnquest Profile Picture
    Cnquest 97 on at
    RE: Unable to edit/delete active segment in error state

    I have this exact same issue. Has anyone yet found a fix for this?

  • SveinS Profile Picture
    SveinS 44 on at
    RE: Unable to edit/delete active segment in error state

    Hi,

    It's totally locked. I can't stop, edit or do much with the segment at all. If I try to check for errors or go live, I just get the same message as previously described:

    pastedimage1627538689716v1.png

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Unable to edit/delete active segment in error state

    Hi,

    The message you mentioned is a warning message instead of an error message.

    And you can edit the segment after stopping it first.

    pastedimage1627524730799v1.png

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,329 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans