Custom Workflow Service Client
Dear All,
I develop custom workflow service client with simple servlet and workflow API, when i finished i deploy it in OAS. I just created simple human task in BPEL and assign it to user jcooper at defaul oc4j realm. I run the servlet but it's has trown exception when i want to create context:
Exception not handled by the Collaxa Cube system.An unhandled exception has been thrown
Error in authenticating and creating a workflow context for user jcooper
exception.30501
I just read manual i must deploy custom workflow client as child application of the hw_services application. I set it in my jdeveloper and deploy again but this time deployment is failed cause :
Binding webapp web-module for application WorkflowUI to site default-web-site under context root WorkflowUI
Exception: NoClassDefFoundError: null
Operation failed with error:
java.lang.NoClassDefFoundError
I don't know what class is missing i already try put all required jar in lib. Just anyone can give me a solution about that?
Or just anyone has already build custom workflow service client with workflow API + Servlet/JSF ? can i get some tips to develop custom workflow client?
Thanks Before
Regards,
Yohanes W S
Hi Yohanes,
You'll probably have more luck checking in on the
[url
BPEL
]BPEL forum for this one.Best regards,
John
Thank for the advise, i will post in BPEL forum
Similar Messages
-
How to get client IP in custom UCM Service
how to get client IP in custom UCM Service ?
have you tried
binder.getLocal("REMOTE_ADDR");
Let us know how you get on
Tim -
Custom workflow - props file service name change
All,
I created a custom workflow and registered with OIM with serviceName value as the service name from the SOA composite. I realized that this needs to be changed to RequestApprovalService.
Has anyone done this, if you can you please list the steps.
Thanks in advance,
Prasad.I thought of this as well. It may be possible this way also. Since the composite was primarily generated by the OIM provided template, I didn't prefer to do this. The above mentioned method is working, but i will try this as well when i get a chance.
Regards,
Prasad.
Edited by: pk**** on Jun 8, 2011 12:21 PM -
I have created a WCF Workflow Service Application of C# project.
How to run the project using WCF Test Client directly from VS 2013 by doing F5 ?
Iam using VS 2013 (.NET 4.5.1). It throws an exception to compile c# expressions.
Can we set any settings in web.config file ?
Please provide the solution.Bhanu Prakash T,
It surprises me that building a simple WCF Workflow Service Application project in VS 2013 is giving you this problem. That project template should result in a file with an extension of ".xamlx" being generated. With .Net 4.5 and C#, that XAMLX
file will contain CSharp* activities for the expressions that you specified in the workflow definition. By default, those expressions will be compiled when you use "F5" to execute the workflow.
Or are you self-hosting the WorkflowServiceHost and loading the XAMLX file yourself using ActivityXamlServices.Load and then creating and managing the WorkflowServiceHost object instance yourself? You must can do the compilation yourself by following these
examples -
https://connect.microsoft.com/VisualStudio/feedback/details/741537/cannot-self-host-a-workflow-service-using-c-expressions or http://wf.codeplex.com/discussions/444990.
Jim -
BPEL Custom Workflow (DocumentReviewWorkflow) with Content Services
Hi All,
Anybody working on BPEL Custom Workflows got Success in using the DocumentReviewWorkflow with the Content Services Development Kit 10.1.2.3.0
Please update..
Many Thanks in advance..!!!
PrasantThe DocumentReviewWorkflow that ships with the Content Services web services places the documents in the comments field.
There are examples in the sample code - DocumentReviewWorkflowAction.java file demonstrates how to get the URLs from Oracle Content Services
// Initialize the various Web Service Manager classes.
StringBuffer sb = new StringBuffer(100);
String endpoint = session.getServiceEndPoint();
setUpManagers(session);
try
// Obtain the new/updated document items.
Item[] documents = WorkflowUtils.getTargetDocuments(session,
m_WorkflowId);
int len = (documents == null) ? 0 : documents.length;
for (int i = 0; i < len; i++)
AttributeRequest[] pathar = WsUtil.newAttributeRequestArray(
Attributes.URL);
Item tmp =
(Item) m_CommonManager.getItem(documents.getId(), pathar);
String filepath = (String) WsUtil.getAttributesMap(
tmp)
.get(Attributes.URL);
// Convert the String list to a single string for convenience.
sb.append(filepath);
sb.append("\n");
finally
session.logout();
You can then add the document links as attachments by creating a list of attachments and then inserting the URLs for the documents in the URI - I've done it using a combination of Java and BPEL. Here is an excerpt
<bpelx:exec name="countAttachments" language="Java" version="1.4"><![CDATA[/*Write your java code below e.g.
System.out.println("Hello, World");
// Note that the documents come back as a list of
// documents with a line break between them
String filename = (String) getVariableData("filename");
String[] docnames = filename.split("\n");
setVariableData("numberofdocuments", new Integer(docnames.length));
]]>
</bpelx:exec>
<assign name="initCounter">
<copy>
<from expression="0"/>
<to variable="counter"/>
</copy>
<copy>
<from>
<attachment xmlns="http://xmlns.oracle.com/pcbpel/taskservice/task">
<name/>
<URI/>
<content/>
</attachment>
</from>
<to variable="ParallelVar1" query="/task:task/task:attachment"/>
</copy>
</assign>
<while name="While_1" condition="bpws:getVariableData('counter') < (bpws:getVariableData('numberofdocuments') - 1)">
<assign name="createAttachmentList">
<bpelx:append>
<bpelx:from>
<attachment xmlns="http://xmlns.oracle.com/pcbpel/taskservice/task">
<name/>
<URI/>
<content/>
</attachment>
</bpelx:from>
<bpelx:to variable="ParallelVar1" query="/task:task"/>
</bpelx:append>
<copy>
<from expression="bpws:getVariableData('counter') + 1"/>
<to variable="counter"/>
</copy>
</assign>
</while>
<bpelx:exec name="AddAttachmentsToList" language="Java" version="1.4"><![CDATA[/*Write your java code below e.g.
System.out.println("Hello, World");
String filename = (String) getVariableData("filename");
checkpoint();
String[] docnames = filename.split("\n");
for (int i = 0; i < docnames.length; i++) {
int strlen = docnames[i].length();
int slash = docnames[i].lastIndexOf('/');
String filenameonly = docnames[i].substring(slash + 1, strlen);
int item = i + 1;
String varname = "/task:task/task:attachment[" + item + "]/task:name";
String varuri = "/task:task/task:attachment[" + item + "]/task:URI";
setVariableData("ParallelVar1", varname, filenameonly);
setVariableData("ParallelVar1", varuri, docnames[i]);
]]>
</bpelx:exec>
This uses the fact that the document URLs are returned as a \n delimited string. -
Custom CAPI service - default value of varchar2 parameter
I have a Custom CAPI Service function. That function has a varchar2 parameter (argument) and I wish to set a default value NULL for that parameter.
I set Default=null, and when I generate CAPI package, my function in that package looks like this (notice the quotation marks around null):
function cs_cjn_prod_cijena
( p_nacin_prodaje in varchar2 default 'null'
return number
is ...
And it should look like this:
function cs_cjn_prod_cijena
( p_nacin_prodaje in varchar2 default null
return number
is ...
I tried setting Default Value Type to Literal, Database Function Call, Client Function Call, but it's always the same thing.
If that parameter was number or date it would generate ok.
It seems like the bug in "Generate CAPI Definition" Headstart Utility.
I know that I can make my function's code to treat the string 'null' as a null default value, but I'd like to have a "real" null as a default value.
Does anybody have a solution for this?
Thanks!
DaliborMarcel,
Thank you for your answer, but it didn't help. I have already tried using Database Function Call. This time I tried deleting the CAPI package from repository before generating it again, like you suggested, but it didn't help.
I still get: p_nacin_prodaje in varchar2 default 'null'
Which version of Create CAPI Definition utility do you have?
My version is: HSU_CAPI, Revision: 6.5.2.0 ("Help/About This Utility" in Headstart Utilities application)
Thanks again,
Dalibor -
Open url link in custom workflow. SharepPoint 2010
Hi, i created custom workflow in Visual studio 2010. I want my workflow opened page of the site. In workflow i using method - Process.strart("http:\\mysite\myform.aspx") try to open the page. But my workflow is completed after his the start.
Browser does not open the page i have. Can you please tell me how best to do to open up the site url in the workflow code. Thanks.I don't think you can. Workflows run in a background thread on the server, so even if you were able to open a web page it would open on the server, not the client.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Possible to fill a list using a custom Workflow in Sharepoint 2013
Is it possible to develop a custom workflow that compares a Contact List and the Active Directory and add any missing people to the list? Or is this a functionality not available with workflows and sharepoint 2013?
Instead of workflow you can do this,
Have user profile service application set up ,which will run on daily basis by default(you can configure to run Hourly/Minutely also) to import all users along with user attributes(email, department ..etc) to SharePoint. Configuring UPS :
http://blog.anuragg.com/2012/12/configure-user-profile-service.html
Create an item added event receiver on your "Contacts" list ,build business logic to fetch the corresponding user details from the above synced user profile properties. Retrieving User profile properties :
http://msdn.microsoft.com/en-us/library/office/jj163182(v=office.15).aspx
Please remember to click Mark as Answer on the answer if it helps you -
Custom Identity Service configuration in SOA Suite 11g
Has anyone been successfull in using custom identity service (available in 10.1.3.X) as a identity store in soa suite 11g human workflow component? If yes, please guide me.
Can you make sure your helloworld is using adf bindings as mentioned in thread Re: Urgent :: 11g Invoking Composite from Java/From Webservice Proxy
-
Hello Experts,
I am facing an issue on test server while attaching workflow manually to the list.
On dev environment I am deploying workflow through visual studio and here everything works fine.
Please suggest if anyone has faced this issue earlier.
Regards,
Uday G
Line 3874: 04/27/2015 02:02:15.72 w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Logging Correlation Data
xmnv Medium
Name=Request (POST:http://spwfte800-001:80/_layouts/15/AssocWrkfl.aspx?AssociatedList=0b6b6303-d8ac-4007-94d0-5cf5502df0f6&WF4=1)
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3875: 04/27/2015 02:02:15.73
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Authentication Authorization
agb9s Medium
Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|usykgw\sp_farm_te, ClaimsCount=30
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3876: 04/27/2015 02:02:15.73
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Logging Correlation Data
xmnv Medium
Site=/ 9ac4009d-b5ca-c010-44e2-238aad763833
Line 3877: 04/27/2015 02:02:15.80
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
ahjqp High
[Forced due to logging gap, cached @ 04/27/2015 02:02:15.78, Original Level: Verbose] SQL connection time: 0.093 for Data Source=SPDBTE800-001\MYNET_SQL;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80]
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3878: 04/27/2015 02:02:15.80
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
UserAgent not available, file operations may not be optimized. at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb) at
Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult) at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocumentRowset(Guid
databaseId, SqlSession session, SPFileStreamManager spfstm, Object[] metadataRow, SPRowset contentRowset, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres) at Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd,
Object ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3879: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...) at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean&
pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion,
String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId,
Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, ...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3880: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId) at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String
bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean&
pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object&
pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbst...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3881: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...rRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32&
pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId) at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte
bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument,
Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion,...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3882: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
... String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32&
pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl,
String& pbstrContentTypeOrder, Guid& pgDocScopeId) at Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest,
Boolean fetchDependencyInformation, Boolean& ghostedPage, String& siteRoot, Guid& siteId, Int64& bytes, ...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3883: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object&
oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean
mainFileRequest, String path, Boolean impersonate, Boolean& isAppWeb, Boolean& fGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl,
String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, ...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3884: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext
context, String path, Boolean throwIfFileNotFound) at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath
virtualPath, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithN...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3885: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...oAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile,
IDictionary contentTemplateCollection) at System.Web.UI.Page.ApplyMasterPage() at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean in...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3886: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...cludeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
IntPtr nativeReque... 9ac4009d-b5ca-c010-44e2-238aad763833
Line 3887: 04/27/2015 02:02:15.80*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
ak8dj High
...stContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3888: 04/27/2015 02:02:15.80
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Files
aiv4w Medium
Spent 0 ms to bind 44035 byte file stream
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3889: 04/27/2015 02:02:15.86
w3wp.exe (0x1708)
0x15E0
0x119005
adjzs High
[Forced due to logging gap, cached @ 04/27/2015 02:02:15.83, Original Level: VerboseEx] SwitchableSiteMapProvider "{0}" mapped to target provider "{1}"
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3890: 04/27/2015 02:02:15.86
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
8acb High
[Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3891: 04/27/2015 02:02:15.92
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
ahjqp High
[Forced due to logging gap, cached @ 04/27/2015 02:02:15.91, Original Level: Verbose] SQL connection time: 0.0963 for Data Source=SPDBTE800-001\MYNET_SQL;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80]
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3892: 04/27/2015 02:02:15.92
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Monitoring
b4ly High
Leaving Monitored Scope (EnsureListItemsData). Execution Time=15.9063
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3893: 04/27/2015 02:02:15.98
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
ahjqp High
[Forced due to logging gap, cached @ 04/27/2015 02:02:15.92, Original Level: Verbose] SQL connection time: 0.0662 for Data Source=SPDBTE800-001\MYNET_SQL;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80]
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3894: 04/27/2015 02:02:15.98
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
8acb High
[Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3895: 04/27/2015 02:02:16.05
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
ahjqp High
[Forced due to logging gap, cached @ 04/27/2015 02:02:16.03, Original Level: Verbose] SQL connection time: 0.0856 for Data Source=SPDBTE800-001\MYNET_SQL;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80]
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3896: 04/27/2015 02:02:16.05
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
8acb High
[Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3897: 04/27/2015 02:02:16.05
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Monitoring
b4ly High
Leaving Monitored Scope (EnsureListItemsData). Execution Time=20.7631
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3901: 04/27/2015 02:02:16.19
w3wp.exe (0x1708)
0x15E0
0xC33B01F
ahv8s High
[Forced due to logging gap, cached @ 04/27/2015 02:02:16.06, Original Level: Verbose] Ending StoreWorkflowDeploymentProvider.GetDefinition
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3902: 04/27/2015 02:02:16.19
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
8acb High
[Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3903: 04/27/2015 02:02:16.23
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
8kh7 High
Cannot complete this action. Please try again.
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3904: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Database
ahjqp High
[Forced due to logging gap, cached @ 04/27/2015 02:02:16.20, Original Level: Verbose] SQL connection time: 0.0671 for Data Source=SPDBTE800-001\MYNET_SQL;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80]
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3905: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
aix9j High
SPRequest.UpdateField: UserPrincipalName=i:0).w|s-1-5-21-515020923-1814085151-1527837076-26682, AppPrincipalName= ,bstrUrl=http://spwfte800-001 ,bstrListName={0B6B6303-D8AC-4007-94D0-5CF5502DF0F6} ,bstrXML=<Field DisplayName="PublishNewsItemWF-ItemAdded"
Type="URL" Required="FALSE" ID="{36f69f6b-98df-44f7-b0bd-041265b4b402}" SourceID="{0b6b6303-d8ac-4007-94d0-5cf5502df0f6}" StaticName="PublishNewsItemWF_x002d_ItemAdde" Name="PublishNewsItemWF_x002d_ItemAdde"
ColName="nvarchar22" RowOrdinal="0" ColName
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3906: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ai1wu Medium
System.Runtime.InteropServices.COMException: Cannot complete this action. Please try again., StackTrace: at Microsoft.SharePoint.SPField.UpdateCore(Boolean bToggleSealed) at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String
schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) at Microsoft.SharePoint.SPFieldCollection.AddInternal(String strDisplayName, SPFieldType type, Boolean bRequired, Boolean bCompactName, Guid
lookupListId, Guid lookupWebId, StringCollection choices) at Microsoft.SharePoint.SPFieldCollection.Add(String strDisplayName, SPFieldType type, Boolean bRequired, Boolean bCompactName, StringCollection choices) at Microsoft.SharePoint.SPFieldCollection.Add(String
strDisplayName, SPFieldType typ... 9ac4009d-b5ca-c010-44e2-238aad763833
Line 3907: 04/27/2015 02:02:16.25*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ai1wu Medium
...e, Boolean bRequired) at Microsoft.SharePoint.WorkflowServices.StoreSubscriptionService.CreateStatusColumn(String subscriptionName, SPWeb web, Guid listId) at Microsoft.SharePoint.WorkflowServices.StoreSubscriptionService.PublishSubscriptionForList(WorkflowSubscription
subscription, Guid listId) at Microsoft.SharePoint.WorkflowServices.ApplicationPages.AssocWrkflPage.OnLoad(EventArgs ea) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext
context) at ... 9ac4009d-b5ca-c010-44e2-238aad763833
Line 3908: 04/27/2015 02:02:16.25*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ai1wu Medium
...System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception
error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at
System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer,
IntPtr nativeRequestContext, IntPtr mo... 9ac4009d-b5ca-c010-44e2-238aad763833
Line 3909: 04/27/2015 02:02:16.25*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ai1wu Medium
...duleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3910: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
8nca Medium
Application error when access /_layouts/15/AssocWrkfl.aspx, Error=Unable to properly communicate with the workflow service. at Microsoft.SharePoint.WorkflowServices.ApplicationPages.AssocWrkflPage.OnLoad(EventArgs ea) at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3911: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Runtime
tkau Unexpected
Microsoft.SharePoint.SPException: Unable to properly communicate with the workflow service. at Microsoft.SharePoint.WorkflowServices.ApplicationPages.AssocWrkflPage.OnLoad(EventArgs ea) at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3912: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ajlz0 High
Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: Unable to properly communicate with the workflow service.
at Microsoft.SharePoint.WorkflowServices.ApplicationPages.AssocWrkflPage.OnLoad(EventArgs ea) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoin...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3913: 04/27/2015 02:02:16.25*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ajlz0 High
...t) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3914: 04/27/2015 02:02:16.25
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
aat87 Monitorable
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3915: 04/27/2015 02:02:16.28
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more
specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric
Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.) ---> System.ServiceModel.CommunicationException: The socket connection
was aborted. This could be caused by ... 9ac4009d-b5ca-c010-44e2-238aad763833
Line 3916: 04/27/2015 02:02:16.28*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
...an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '10675199.02:48:05.4775807'. ---> System.IO.IOException: The read operation failed, see inner
exception. ---> System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local
socket timeout was '10675199.02:48:05.4775807'. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags
socketFlags) at System.ServiceModel.Channels.So...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3917: 04/27/2015 02:02:16.28*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
...cketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing) --- End of inner exception stack trace --- at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32
offset, Int32 size, TimeSpan timeout, Boolean closing) at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout) at System.ServiceModel.Channels.ConnectionStream.Read(Byte[]
buffer, Int32 offset, Int32 count) at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Security.NegotiateStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest
asyncRequest) at System.Net.Security.NegotiateStream.StartReading(Byte[] buffer, Int...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3918: 04/27/2015 02:02:16.28*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
...32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.NegotiateStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) --- End of inner exception stack
trace --- at System.Net.Security.NegotiateStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.NegotiateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.ServiceModel.Channels.StreamConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout) --- End of inner exception stack trace --- Server stack trace: at System.ServiceModel.Channels.StreamConnection.Read(Byte[]
buffer, Int32 offset, Int32 size, TimeSpan timeout) at System.ServiceModel.Channels...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3919: 04/27/2015 02:02:16.28*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
....ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper) at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection
connection, TimeoutHelper& timeoutHelper) at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout) at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at Microsoft.ApplicationServer.Caching.CacheResolverChannel.Open(TimeSpan timeout) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr
md, Object[] args, Object server, Object[]& outArgs) ...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3920: 04/27/2015 02:02:16.28*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
... at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message
reqMsg, Boolean bProxyCase) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at Microsoft.ApplicationServer.Caching.CacheResolverChannel.OpenDelegate.EndInvoke(IAsyncResult result)
at Microsoft.ApplicationServer.Caching.ChannelContainer.Opened(IAsyncResult ar) --- End of inner exception stack trace --- at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody
reqBody) at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemV...
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3921: 04/27/2015 02:02:16.28*
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation DistributedCache
agyfq Medium
...ersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener listener) at Microsoft.ApplicationServer.Caching.DataCache.<>c__DisplayClass25.<Put>b__24() at Microsoft.ApplicationServer.Caching.DataCache.Put(String
key, Object value, TimeSpan timeout) at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.Put(String key, Object value)'.
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3922: 04/27/2015 02:02:16.28
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation General
ajb4s Monitorable
ViewStateLog: Failed to write to the velocity cache: http://spwfte800-001/_layouts/15/AssocWrkfl.aspx?AssociatedList=0b6b6303-d8ac-4007-94d0-5cf5502df0f6&WF4=1
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3923: 04/27/2015 02:02:16.28
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Micro Trace
uls4 Medium
Micro Trace Tags: 0 nasq,4 agb9s,66 ak8dj,123 b4ly,132 b4ly,198 aix9j,1 ai1wu,6 8nca,0 tkau,0 ajlz0,1 aat87,20 agyfq,0 ajb4s
9ac4009d-b5ca-c010-44e2-238aad763833
Line 3924: 04/27/2015 02:02:16.28
w3wp.exe (0x1708)
0x15E0
SharePoint Foundation Monitoring
b4ly Medium
Leaving Monitored Scope (Request (POST:http://spwfte800-001:80/_layouts/15/AssocWrkfl.aspx?AssociatedList=0b6b6303-d8ac-4007-94d0-5cf5502df0f6&WF4=1)). Execution Time=560.4965
9ac4009d-b5ca-c010-44e2-238aad763833Hi Amit,
Please try using the below cmdlet format to register workflow service to your SharePoint QA server again per the following post with similar error, then check results again.
Register-SPWorkflowService -SPSite 'https://myhost/mysite' -WorkflowHostUri 'https://workflowhost' -AllowOAuthHttp -Force
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/46a868eb-a012-4148-8319-088d55671ae7/errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-run?forum=sharepointadminprevious
Thanks
Daniel Yang
TechNet Community Support -
I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.I ran into your post while having a similar issue. I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
and open in browser) the error doesn't occur. Hope that helps some.... -
Issue in a custom workflow with Approval Type Notification. Urgent
Hi
I have created a custom workflow which contains an approval notification.
If the user approves/rejects the notification I need to update a table column as Approved or Rejected.
I have created a function activity,say X, which calls a PL/SQL procedure.
The issue is,
when the user approves or rejects the notification, the function X errors out even without entering the PL/SQL procedure.
Following is the error message
An Error occurred in the following Workflow.
Item Type = XXYH_UMX
Item Key = 55
User Key =USERKEY:55
Error Name = -6502
Error Message = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Error Stack =
Wf_Engine_Util.Function_Call(XXYH_UMX_WF_PKG.is_resp_assigned, XXYH_UMX, 55, 242407, RUN)
Activity ID = 242407
Activity Label = XXYH_UMX_ASSIGN_RESPONSIBILITY:XXYH_UMX_RESP_ASSIGNED
Result Code = #EXCEPTION
Notification ID =
Assigned User =
If I go the function from any other function,say Y, (bypassing approval notification) it works fine.
Can you please help me what could be the issue?
Thanks,
Kamath.The danger in putting in one activity is that if there is any scope longer-term to expand the process to multiple activities, then it may be better to break it out into a sub-process early in the design phase.
Generally, you get the feeling from the client fairly early on about whether they have a final design and how likely they are to complicate the process later on :)
I wouldn't include it as a post notification function myself - it saves a tiny amount of processing time and database space, but at the cost of making it less clear what is happening. Plus you'd need to check the result in the PNF manually - putting it on a conditional branch ensures that you always know what the value is. If the lookup type changes at any stage, you would need to check a PNF to ensure that the code still remains valid; if it's on a branch then the only thing to change would be to change the label on the branch.
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Issue with retrieveing the Manager of a System User in a Custom workflow - CRM 2013
Issues with custom workflow activity in CRM 2013 On-prem
I'm trying to pass the Manager of the System
here is the code that I'm running, it gets to setting the MANAGER and stops
I put the ran the FetchXML seperatly and it does return a value so I know what bit works
public class CaseAccountManagerManagersLookup : CodeActivity
// Inputs
[Input("Enter Case")]
[ReferenceTarget("incident")]
public InArgument<EntityReference> CA { get; set; }
// Outputs
[Output("Manager Output")]
[ReferenceTarget("systemuser")]
public OutArgument<EntityReference> AMOUT { get; set; }
protected override void Execute(CodeActivityContext executionContext)
// Context
IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
//Create the tracing service
ITracingService tracingService = executionContext.GetExtension<ITracingService>();
// get the account and renewals manager ID's
var CASE = CA.Get<EntityReference>(executionContext);
tracingService.Trace("Case ID = " + CASE.Id);
try
// FETCH
string fetchXml = string.Format(@"
<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
<entity name='incident'>
<attribute name='title' />
<attribute name='incidentid' />
<order attribute='title' descending='false' />
<filter type='and'>
<condition attribute='incidentid' operator='eq' value='{0}' />
</filter>
<link-entity name='contact' from='contactid' to='customerid' alias='ak'>
<link-entity name='account' from='accountid' to='parentcustomerid' alias='al'>
<link-entity name='systemuser' from='systemuserid' to='bc_dssalesperson' alias='am'>
<attribute name='parentsystemuserid' />
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>", CASE.Id);
EntityCollection case_results = service.RetrieveMultiple(new FetchExpression(fetchXml));
//tracingService.Trace("fetch has run");
if (case_results.Entities.Count != 0)
foreach (var a in case_results.Entities)
//if (a.Attributes.Contains("ai_parentsystemuserid"))
tracingService.Trace("set manager id next");
var MANAGERID = (EntityReference)a.Attributes["parentsystemuserid"];
tracingService.Trace("manager id set");
AMOUT.Set(executionContext, MANAGERID);
throw new InvalidOperationException("Want to see trace");
tracingService.Trace("end ");
catch (Exception e)
throw new InvalidPluginExecutionException("Plugin - CaseAccountManagerManagerLookup - " + e.Message);
finally
throw new InvalidOperationException("Want to see trace");
PeteHello,
Try to use am.parentsystemuserid instead of just parentsystemuserid.
Dynamics CRM MVP/ Technical Evangelist at
SlickData LLC
My blog -
SharePoint Workflow Services Communication Error in SharePoint 2013
I am developing a few workflows using SharePoint Designer 2013. Previously my workflows can be run without any WorkflowCommunication error but after Nintex Workflow is deployed and run in the same server, there were a few times the workflows that were created
using SharePoint Designer 2013 failed to run due to SharePoint WorkflowCommunication error. Below is the example of the error:
Microsoft.Workflow.Client.WorkflowCommunicationException: The request was aborted: The request was canceled. Client ActivityId : 3ef6779c-fb54-e0c5-7c03-e24d99e809f1. ---> System.Net.WebException: The request was aborted: The request was canceled. --->
System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Configuration.ConfigurationChannelFactory`1[Microsoft.SharePoint.IdentityServices.IApplicationSecurityTokenServiceContract], cannot be used for
Currently, to make the workflow run again, we restart the SharePoint Workflow services again or restart the server again. Besides, the workflow can run normally after a few hours without any restart of SharePoint Workflow services or server restart. Is there
any advice on this?
wawa87I am developing a few workflows using SharePoint Designer 2013. Previously my workflows can be run without any WorkflowCommunication error but after Nintex Workflow is deployed and run in the same server, there were a few times the workflows that were created
using SharePoint Designer 2013 failed to run due to SharePoint WorkflowCommunication error. Below is the example of the error:
Microsoft.Workflow.Client.WorkflowCommunicationException: The request was aborted: The request was canceled. Client ActivityId : 3ef6779c-fb54-e0c5-7c03-e24d99e809f1. ---> System.Net.WebException: The request was aborted: The request was canceled. --->
System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Configuration.ConfigurationChannelFactory`1[Microsoft.SharePoint.IdentityServices.IApplicationSecurityTokenServiceContract], cannot be used for
Currently, to make the workflow run again, we restart the SharePoint Workflow services again or restart the server again. Besides, the workflow can run normally after a few hours without any restart of SharePoint Workflow services or server restart. Is there
any advice on this?
wawa87
Is there any explanation on this?
wawa87 -
Integration of custom identity services with JDeveloper BPEL designer
Hi,
I'd like to know if a custom user repository plugin will cause the 'Identity Lookup Dialog' (Step 6 of Human Workflow Wizard to generate a user task) to utilize the list of users and groups from a third party provider, when used as the Custom Identity Service provider.
I'd like to have the custom list of users and groups at 'design time' of the BPEL process itself, as well as process runtime. Is this possible?
This is with respect to both BPEL PM v10.2.0.2 and v 10.1.3.1.0.
Regards,
Vineetok, thank you for the reply.
But the installation of the Oracle BPEL Process Manger for Developers which includes the JDeveloper and the BPEL Designer doesn't come with 10.1.3.1.0?
I have to install the JDeveloper and the BPEL Process Manager seperate?
Thx
Maybe you are looking for
-
SSRS 2008 R2 report prints empty spaces for html content till end of page
Hi I need to display records containing long html content say each record of different size ranging from 5 lines to 3-5 pages. Issue observed is: When a record complete is printing say half the page and subsequent record is bigger then half a page, t
-
I have the iPad basic first edition. For some reason my app store app is missing. On my games when I tried to update the apps I get a message that says safari cannot open page because address is invalid, but this happens even when I click directly on
-
Problem placing PSD file in Illustrator
G'day, My problem is when i place PSD file into illustrator, it opens up "Photoshop Import Option" menu, which lets me choose either: (1) convert photoshop layers to objects (or) (2) Flatten photoshop layers to a single image all other options are gr
-
I asked iTunes to download all my album artowrk. I said 90 or so could not be found that should be findable. What's up is there somethin gin the artist/albuim artist descrition that is dorking the search? Any Suggestions?
-
Sap not starting during manual failover testing
Dera friends, We are performing manual failover testing between CI(sap central instance) and DB(oracle database) the environment is ECC6.0 on AIX server CI is running on one server and DB is running on another, during manual testing we have failed th