Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Unpublished child workflow error when trying to create a case from portal add on

(0) ShareShare
ReportReport
Posted on by 40

Hey everyone,

I'm currently (trying to) working with Microsoft on this issue.  I have a vanilla out of the box Dynamics CE setup with a portal add on.  I haven't changed much of anything in the portal itself.  Out of what seems like nowhere, I can no longer create cases.  I get this error from the portal site (by the way I am logged into the portal with my AD account, which is a full System Administrator):

This workflow cannot run because one or more child workflows it uses have not been published or have been deleted. Please check the child workflows and try running this workflow again.

I just turned on diagnostic logging.  I even turned off custom errors (however after turning off custom errors, I still don't seem to get the yellow screen of death).

I piped the logs to my azure storage account and here is what comes out of the logs for this error (pasted below).  I'm not sure what to look for or what 'workflow' might be considered unpublished that is causing this???

Any ideas on how to identify what workflow the 'ADX' system thinks this is?

Thanks in advance.

Scott

error:

RequestData:, RequestPath:/support/create-case/, RequestExtension:, SessionId:id4idznkvinsnfsky5e0i5y0, UserId:Xu3lxK95nZ-okVpMcB28MuUNeeRgkPQMtgozp-cbnhY5rcj4wi_pQ7HNl5cNqXtFCrjfMmDoQK7Waibg74f7U1pWCFCmsxNCojGJFCyjMWFvGzJB1XLrazx8sjFN3clLp6FUvAgHH1AvKtRRcdtfOw2, CorrelationId:e64ad947-a732-4e03-87c3-990f766c26bd, Elapsed:8115.7099, RequestMethod:POST, RequestContentType:multipart/form-data; boundary=----WebKitFormBoundaryU9D3h26cHpBRy3IM, RequestAccept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9, RequestCacheControl:max-age=0, UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36, HandlerName:ASP.pages_webtemplate_aspx, HandlerExecuted:False, VaryByCustom:user;website;language, MemberName:ExecuteInsert, SourceFilePath:S:\Framework\Adxstudio.Xrm\Web\UI\WebControls\CrmDataSourceView.cs, SourceLineNumber:760, ExceptionMessage:An error occured while processing this request.
Microsoft.Xrm.Sdk.SaveChangesException
at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges(SaveChangesOptions options)
at Adxstudio.Xrm.Web.UI.WebControls.CrmDataSourceView.ExecuteInsert(IDictionary values) in S:\Framework\Adxstudio.Xrm\Web\UI\WebControls\CrmDataSourceView.cs:line 754

Microsoft.Xrm.Sdk

This workflow cannot run because one or more child workflows it uses have not been published or have been deleted. Please check the child workflows and try running this workflow again.
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient`1.ExecuteAction[TResult](Func`1 action)
at Microsoft.Xrm.Client.Services.OrganizationService.InnerOrganizationService.UsingService[TResult](Func`2 action) in S:\Framework\Microsoft.Xrm.Client\Services\OrganizationService.cs:line 443
at Adxstudio.Xrm.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) in S:\Framework\Adxstudio.Xrm\Services\CachedOrganizationService.cs:line 415
at Adxstudio.Xrm.Services.OrganizationServiceCache.InnerExecute[TRequest,TResponse,TResult](TRequest query, Func`2 execute, Func`2 selector) in S:\Framework\Adxstudio.Xrm\Services\OrganizationServiceCache.cs:line 653
at Adxstudio.Xrm.Services.OrganizationServiceCache.InnerExecute[TRequest,TResponse,TResult](TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) in S:\Framework\Adxstudio.Xrm\Services\OrganizationServiceCache.cs:line 323
at Adxstudio.Xrm.Services.ContentMapOrganizationServiceCache.Execute[T](OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) in S:\Framework\Adxstudio.Xrm\Services\ContentMapOrganizationServiceCache.cs:line 36
at Adxstudio.Xrm.Services.PortalBusOrganizationServiceCache.Execute[T](OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) in S:\Framework\Adxstudio.Xrm\Services\PortalBusOrganizationServiceCache.cs:line 44
at Adxstudio.Xrm.Services.CachedOrganizationService.Execute[T](OrganizationRequest request, Func`2 selector, String selectorCacheKey) in S:\Framework\Adxstudio.Xrm\Services\CachedOrganizationService.cs:line 367
at Adxstudio.Xrm.Services.CachedOrganizationService.Execute[T](OrganizationRequest request) in S:\Framework\Adxstudio.Xrm\Services\CachedOrganizationService.cs:line 358
at Adxstudio.Xrm.Services.CrmOnlineOrganizationService.<>c__DisplayClass27_0.<Execute>b__0() in S:\Framework\Adxstudio.Xrm\Services\CrmOnlineOrganizationService.cs:line 241
at Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChange(OrganizationRequest request, IList`1 results)

mscorlib

, EventData:

  • LuHao Profile Picture
    LuHao 40,876 on at
    RE: Unpublished child workflow error when trying to create a case from portal add on

    Glad it was resolved.

  • Verified answer
    Blndspt Profile Picture
    Blndspt 40 on at
    RE: Unpublished child workflow error when trying to create a case from portal add on

    I was able to resolve this.  As it turned out, there was a strange rogue sla kpi that I could only see in the legacy forms.  Once I deleted that, it fixed this issue.

  • Blndspt Profile Picture
    Blndspt 40 on at
    RE: Unpublished child workflow error when trying to create a case from portal add on

    Actually now this is happening both from the portal and also from the case creation screen.  Somehow, it thinks I have a workflow referencing a deleted or unpublished child workflow.  I can't figure out what workflow is causing this error!!!

    Here it is:

    Exception Message: This workflow cannot run because one or more child workflows it uses have not been published or have been deleted. Please check the child workflows and try running this workflow again.

    ErrorCode: -2147220891

    HexErrorCode: 0x80040265

    Activity Id: 1bc03c86-4e0b-4879-9025-e1405271a61b

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,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans