I am receiving an error when adding a custom section to a workplace. The custom section works, I can navigate to it manually and the section works fine. However, when I try to add the section to a workplace (any workplace) I get an error when the application posts to /0/rest/WorkplaceService/AddSectionToWorkplace. The payload for this post is correct (it does have the correct ID for my section schema from SysModule and the workplace), but an error 400 is returned with the following error details:
--
The server encountered an error processing the request. The exception message is 'Sequence contains no matching element'. See server logs for more details. The exception stack trace is:
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate) at Terrasoft.Configuration.Section.SectionRepository.Get(Guid sectionId) at Terrasoft.Configuration.Workplace.WorkplaceManager.AddSectionToWorkplace(Guid workplaceId, Guid sectionId) at SyncInvokeAddSectionToWorkplace(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
--
How can I find out what is missing for my section to correct this? I've tried building the entire configuration, modifying the section again in the section wizard, etc, still no luck. Any ideas?
Like
Dear Ryan,
Unfortunately, it is difficult to determine exactly the cause of the issue. Please try to create a new custom section using section wizard. Please find more information about it in the article by the link below:
https://academy.bpmonline.com/documents/technic-sdk/7-14/creating-new-s…
Then analyze and find the different between the schemes that were generated by section wizard and your own.
For more detailed assistance, please contact technical support.
Best regards,
Norton
Hi Ryan,
Have you solved your problem ?
I've the same issue
Stefano Bassoli,
I don't know what caused the issue, or what made it go away, however, after logging in/out a few times it eventually just started working ??♂️
Ryan
We have received the same error after installing an application from Creatio Marketplace. Unfortunately logging in/out a few times did not resolve the error. We resolved the error by adding an existing section the workplace and remove that section. After that steps, we can install new section to the workplace. We think there may be a caching problem.