Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum
Suggested answer

Unable to edit/delete active segment in error state

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.

Categories:
  • 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,050 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans