web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • Nya Profile Picture
    29,060 on at

    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

  • SveinS Profile Picture
    44 on at

    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

  • Cnquest Profile Picture
    97 on at

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

  • Suggested answer
    SveinS Profile Picture
    44 on at

    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
    97 on at

    Hero! That 100% worked. Thanks so much!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans