Deleting Coordination Action Output Variables in SPD 2013
I have a workflow where I have reached the 50 variable limit. I have deleted / consolidated as many variables as possible, but I noticed there are 5 unused variables in the "workflow variables list" when using the "set workflow variable"
action. These variables are not located under the local variables option in the menu. All of these variables were created as output variables (Variable: __SharePoint 2010 Output: Variablexyz) when I attempted to use 2010 WF interoperability / coordination
actions early in development. I have since deleted those steps, but the variables still remain. I am still at a loss as to where I can delete these variables and get this workflow under 50 variables.
I have researched this extensively and I am unable to find any solutions.
Hi,
Please go through below articles, might help you
http://blogs.msdn.com/b/sharepointdesigner/archive/2011/07/08/understanding-workflow-starting-parameters-part-1.aspx
http://msdn.microsoft.com/en-us/library/office/jj163181(v=office.15).aspx
http://techbrij.com/sharepoint-designer-2013-workflow-dynamic-approvers
Regards
Prasad Tandel
Similar Messages
-
Db adapter insert/update/delete output variable
Hi
How can I know how many records have been updated after an insert/update/delete operation done using the db adapter?
I was looking for an output variable to use in the invoke activity of a partnerlink created using the db adapter wizard (update operation), but seems not possible to associate an outpout variable. the update operation is a one way operation. So, what could I do to know how many records was updated?
thanks bye PaoloThe input variable specifies the records to be updated/inserted. If you count these ones, you know how many have been updated. Otherwise the Invoke will fail.
Marc -
Start a Task Process Action in SPD 2013 does not expand SharePoint Groups
I created a site workflow in SPD 2013, and added a "start a task process". I specified that the participants would be a group, the tasks would be created in parallel and "Assign a task to each member with groups" is checked.
I did check after the fact that "ExpandGroup" is "Yes" in the properties.
However, when executed, the group gets assigned a task, not individual users within the group.
I have seen other postings where others have the same issue, but no resolutions besides MS is investigating. Is this some issue with my setup? I have tried this in multiple environments with the same results.Hi wangsy101,
According to your description, you create a workflow with “Start a task process” in SharePoint 2013 Designer, and the participants was a group, and you had make sure that the “ExpandGroup” was “Yes”. However, when executed, the workflow didn’t assign
the task to individual users within the group.
I reproduced the process, and in my testing , everything worked well.
When you start the workflow and view the workflow, you will see the Assigned to field is the group. And when you open the related tasks, you will note that there are some new tasks related to individual users within the group. It means that the “ExpandGroup”
works correctly.
If the issue still exists, please create an approval workflow with SharePoint 2010 Designer platform, and set the same configuration to test.
I hope this helps.
Thanks,
Wendy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Missing output variable specification
Hi there,
I am trying to put in place a one way BPEL process, which receive the invocation from the Mediator component and do not expect any response from the process. I get this error during compilation:
Buildfile: /opt/oracle-jdev/bea-home/jdeveloper/bin/ant-sca-compile.xml
scac:
[scac] Validating composite "/home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/composite.xml"
[scac] Setting BPELC option 'classpath' to /opt/oracle-jdev/bea-home/jdeveloper/jdev/extensions/oracle.sca.modeler.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/opt/oracle-jdev/bea-home/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.mediator_11.1.1/mediator_client.jar:/opt/oracle-jdev/bea-home/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar::/home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/SCA-INF/classes
[scac] FATAL_ERROR: in BPELProcess.bpel(107): output variable not defined
[scac] <invoke/> missing output variable specification
[scac] Make sure to use attribute outputVariable to specify the output message
BUILD FAILED
/opt/oracle-jdev/bea-home/jdeveloper/bin/ant-sca-compile.xml:236: Java returned: 1 Check log file : /home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/SCA-INF/classes/scac.log for errors
Total time: 9 seconds
BPEL
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Thu Oct 07 16:50:01 CEST 2010
Author: alessandro
Purpose: One Way BPEL Process
-->
<process name="BPELProcess"
targetNamespace="http://xmlns.oracle.com/SOA_POC_jws/AuditService/BPELProcess"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:client="http://xmlns.oracle.com/SOA_POC_jws/AuditService/BPELProcess"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/SOA-POC/AuditService/AuditDB%2F"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:ns2="http://xml.virtual-lab.eu/schema/poc-soa/audit/def"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/AuditDB"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="bpelprocess_client" partnerLinkType="client:BPELProcess" myRole="BPELProcessProvider"/>
<partnerLink name="AuditDB" partnerRole="AuditDB_role"
partnerLinkType="ns1:AuditDB_plt"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:BPELProcessRequestMessage"/>
<variable name="Invoke_AuditDB_insert_InputVariable"
messageType="ns1:LogCollection_msg"/>
<variable name="outputVariable" type="xsd:string"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess.wsdl) -->
<receive name="receiveInput" partnerLink="bpelprocess_client" portType="client:BPELProcess" operation="process" variable="inputVariable" createInstance="yes"/>
<assign name="Assign_Payload">
<copy>
<from variable="inputVariable" part="payload"
query="/ns2:add/ns2:executionTime"/>
<to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
query="/ns3:LogCollection/ns3:Log/ns3:when"/>
</copy>
<copy>
<from variable="inputVariable" part="payload"
query="/ns2:add/ns2:onSys/@ns2:which"/>
<to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
query="/ns3:LogCollection/ns3:Log/ns3:whichSys"/>
</copy>
<copy>
<from variable="inputVariable" part="payload"
query="/ns2:add/ns2:fromUser"/>
<to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
query="/ns3:LogCollection/ns3:Log/ns3:who"/>
</copy>
<copy>
<from variable="inputVariable" part="payload"
query="/ns2:add/ns2:usingClient"/>
<to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
query="/ns3:LogCollection/ns3:Log/ns3:whichClient"/>
</copy>
<copy>
<from variable="inputVariable" part="payload"
query="/ns2:add/ns2:fromIP"/>
<to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
query="/ns3:LogCollection/ns3:Log/ns3:ipClient"/>
</copy>
<copy>
<from variable="inputVariable" part="payload"
query="/ns2:add/ns2:callingWS_Operation"/>
<to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
query="/ns3:LogCollection/ns3:Log/ns3:wsOperation"/>
</copy>
</assign>
<invoke name="Invoke_AuditDB"
inputVariable="Invoke_AuditDB_insert_InputVariable"
partnerLink="AuditDB" portType="ns1:AuditDB_ptt"
operation="insert"/>
<terminate name="Terminate"/>
</sequence>
</process>
Could anyone explain me why the compiler expects an output variable and why it doesn't work anyway.
Thanks in advance
Alessandro ILooks like you deleted the the response back from the client.
If you want to fire and forget BPEL process create an empty BPEL process or an async process. Don't delete the callback in the async process. If the client isn't listening then nothing will happen.
also why is your last step a terminate, this will force all process to have a status of fail.
cheers
James -
SharePoint 2013 Workflow (SPD 2013) fails for Active Directory Group members
Hi
I have a SharePoint 2013 site called "Team Meetings". There are a number of lists and an InfoPath form library.
The site's SharePoint Group "Team Meeting Members" has two Active Directory groups (All Club Managers and All Club Police) as members. Those two AD groups contain all the people that I want to have access to the library and list, except for
a few additional folk who I have made individual members.
My PROBLEM:
I have created a SharePoint 2013 Workflow using SPD 2013 associated with the Form Library. Workflow is set to start on new or modified item. The first action is to write to history list, then determine the status (Submitted or Pending) of
the form and go to different Stages depending on that status.
The workflow works perfectly for any user who has been added directly to the SharePoint group (Team Meetings Members) BUT FAILS at the very first action for anyone who is a member of one of the AD groups. I know the Workflow is fine because I've tested it
with numerous people who are direct members of the SharePoint Group, but whenever a person who is a member of the AD group tries it the Workflow just fails.
Here's a print of the info from the Workflow Status page (I don't have access to server logs):
RequestorId: 4494760f-92ff-2e8c-90d2-cc7df0e6baa4. Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["4494760f-92ff-2e8c-90d2-cc7df0e6baa4"],"request-id":["4494760f-92ff-2e8c-90d2-cc7df0e6baa4"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 10 Mar 2014 01:31:42 GMT"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
The HTTP response content could not be read. 'Error while copying content to a stream.'. at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
Members of the SharePoint Group "Team Meetings Members" have Contribute Access to both the form library and another list that the workflow writes to as well as the Workflow History list (which in SP 2013 uses the credentials of the
user who started the workflow, unlike 2010 which used System Account).
All members of the Team Meetings Members group, whether they are individual members or part of one of the AD groups, have no problems opening and saving forms etc. It's just the Workflow that doesn't like them...
I am stumped. I've spent many hours searching for a reason for this. There are about 200 people in the two AD groups so I really don't want to have to add them all individually - especially when these groups are managed in AD for a whole bunch of other reasons
and using the AD groups means I'll basically never have to worry about modifying the SharePoint access permissions.
Does anyone have any ideas why this is happening and what I can try to fix it?
MarkHi Lars,
I'm afraid not so far but we are trying a few things today so I will post back with results.
First thing we are doing is making the AD Group universal because one of our (external provider) gurus remembers seeing something about that. He also sent me a link to a post where they were talking about earlier
versions but having similar issues and their solution was to make sure the app pool account has sufficient permissions in AD::
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/27a547da-5cc0-49d7-8056-6eb40b4c3242/failed-to-start-workflow-access-is-denied-exception-from-hresult-0x80070005-eaccessdenied
This part of that thread looks interesting but we haven't checked it yet as were trying the universal setting first:
"If the users participating in the workflows have been added to the SharePoint site via Active Directory groups, SharePoint has to update the user’s security token periodically by connecting to
the domain controller. By default, the token times out every 24 hours. But if the application pool account did not have the right permissions on the domain controller to update the user’s token, user will keep getting the access denied error. The error was
intermittent because when the user browsed to any page other than the workflow form, the token was getting updated successfully.
You can try to fix it through granting the application pool account the appropriate permission by adding the account to the group “Windows Authorization Access Group” in Active Directory."
I'll update when we try these ideas. If you have any luck please do the same.
Mark
(sorry about formatting - using my phone....)
Mark -
Hi there,
Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? I'm also suffering massive audio lag issues with the Apogee jam after waking the mini from sleepmode, wich pretty much renders it useless.
Thanks in advance,
Grtz T.I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
The HDMI Detective should solve your handshaking problems. -
SPD 2013 WF Error: Maximum number of arguments per activity (50).
Hi,
We have hit a limit with using variables in SPD Designer workflow in SP2013. The following is the error message that we receive:
"Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Activity 'DynamicActivity' has 52 arguments, which exceeds the maximum number of arguments per activity (50)."
The following thread >>here
did provide a solution but we need a solution that's based on Powershell or Server Object Model. Is there an approach for changing the variable limit for workflows with Server Object Model/Powershell?
Blog: http://dotnetupdate.blogspot.com |Hi Vikram,
as i know if you want to change this, there is no other way then to update the database directly, that we strongly not recommend this to be done.
they may not have any powershell or server object modal command to update the database value directly, instead you need to try on your environment, here is the example to access sql from powershell:
http://technet.microsoft.com/en-us/magazine/hh289310.aspx
to check the database, you can use the database explorer to develop the code:
http://moresharepoints.blogspot.in/2014/01/sharepoint-designer-2013-workflow-error.html
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
SPD 2013 WorkFlow starts in visual mode and crashes when publishing or switching views
When editing a Workflow in SPD 2013, the WF forces the WF to open in visual mode and I am unable to publish or change the view without crashing SPD. When any action is taken on this
workflow a progress bar flashes and "Exporting Workflow" is displayed -- this process either crashes SPD or locks the computer.
I have completed the following
without success:
uninstalled & reinstalled SPD and Visio (32 bit),
cleared caches,
uninstalled and reinstalled SPD and Visio to 64 bit,
installed all updates
Any guidance is much appreciated.Hi,
Could you test the issue on another machine with both Visio and Designer installed?
Does the issue occur to all workflows?
I find similar issue for your reference:
https://premierpointsolutionstraining.wordpress.com/2014/01/24/sharepoint-designer-crashes-workflow-design-view/
http://answers.microsoft.com/en-us/office/forum/office_2013_release-visio/visio-2013-sharepoint-designer-2013-crash/424c5720-2ae0-404c-9a53-2a06cddd3365?auth=1
Please test if updates matters in your situation.
Regards,
Rebecca Tu
TechNet Community Support -
Defining xsd and assiging an array to the output variable in a BPELprocess
I have created a BPEL application in which a web service has been invoked which returns an array.If the array has a fixed size i am able to define the XSD,but what if the array does not have a fixed size.How should i define the xsd in this case,i mean how should the output node be defined.Also how can i assign the array returned by the webservice to the Output variable using the assign activity.
Hi,
What you could do is set the second step to loop.
Then use as one of the parameters to VI YY the string array using RunState.LoopIndex as the array index.
eg. Locals.MyStringArray[RunState.LoopIndex]
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer -
Error in Invoke activity Output Variable
Hi,
When invoking a HTTP service, the response XML is not getting matched correctly to the output variable, instead it is storing the response as a string in root element of the output variable.
The response should be:
<mthLoginLogout_output xmlns="http://www.lexisnexis.org/PCDSC">
<status>
<status_code>0000</status_code>
<error_message></error_message>
</status>
</mthLoginLogout_output>
The actual response I am getting now is as below
<mthLoginLogout_output xmlns="http://www.lexisnexis.org/PCDSC">
<xml version="1.0" encoding="UTF-8">
<mthLoginLogout_output>
<status>
<status_code>0000</status_code>
<error_message></error_message>
</status>
</mthLoginLogout_output>
</mthLoginLogout_output>
Edited by: sjohn on Sep 7, 2009 9:45 PMHi ,
It is a SELECT :
If I use WireShark to track my Network Communication.
BPEL use the invoke input variable to send the Following to the .wsdl and WS.
This is the data from WireShark:
<soapenv:Body>
<Create
xmlns="urn:NWU-Integration-BPEL-Biographic">
<s0:Submitter
xmlns:s0="urn:NWU-Integration-BPEL-Biographic">
$USER$
</s0:Submitter>
<s0:Assigned_To
xmlns:s0="urn:NWU-Integration-BPEL-Biographic">
na
</s0:Assigned_To>
<s0:Status
xmlns:s0="urn:NWU-Integration-BPEL-Biographic">
0
</s0:Status>
<s0:Short_Description
xmlns:s0="urn:NWU-Integration-BPEL-Biographic">
na
</s0:Short_Description>
<s0:firstNames
xmlns:s0="urn:NWU-Integration-BPEL-Biographic">
TestDi1
</s0:firstNames>
<s0:surname
xmlns:s0="urn:NWU-Integration-BPEL-Biographic">
TESTDi1
</s0:surname>
</Create>
</soapenv:Body>
</soapenv:Envelope>
This is the data we get back from the target system webservice.
This is the data from WireShark:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns0:CreateResponse
xmlns:ns0="NWU-Integration-BPEL-Biographic"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns0:Request_ID>
000000000006048
</ns0:Request_ID>
</ns0:CreateResponse>
</soapenv:Body>
</soapenv:Envelope>
But in BPEL the console I can see that the invoke iput data to the target System is OK. But even if wireShark indicates that the output is OK. We do not receive the output variable:
In BPEL
Request_ID variable is empty, it is as if their is no mapping. -
Hello,
I'm running into a very interesting issue, we have a 2013 custom list that has some 2010 and 2013 workflows associated with it. Just until recently the workflows were working fine, but now only 2010 workflows are working.
I updated one of the 2013, tried to publish it but then I canceled the process of publishing it because I had to make a new update.... not sure if this flipped the switch on these but now even if I create new ones in SPD they will not run. Also if
I try to run in manually I get a message - "Something went wrong. To try again, reload the page and then start the workflow"(the option for start manually is enabled in SPD 2013). Any help on this will be greatly appreciated!Hi Ghabib05,
According to your description, my understanding is that you got an error when you ran a SharePoint 2013 workflow.
Afer you made some change in your workflow, whether you re-published the workflow. if not, please publish it, then test again, compare the result.
Please create a new SharePoint 2013 workflow on the list, then test, compare the result.
If this issue only occurred on the specifical workflow, I suggest you create a new workflow instead of the problematic one.
If this issue occurred on all SharePoint 2013 workflow, you can try to re-register workflow service.
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
Can i Create Output Variable for DB Polling in BPEL 11g?
Hi Team,
I want to create the Output Variable for DB Polling,But when i double click on Reply Activity-->Create New Variable it is giving error message like "Can't Create output variable.The Selected operation doesn't have an Output Message".
My Question is Can we create Output Variable for DB Polling, if Yes tell me the procedure to create the Output variable ?
Regards,
KiranHi Kiran,
In these scenario generally runtime faults occurs so you can use the CatchAll activity and rethrow activity to complete the instance in error state. Also before the completion of the process if exception occurs you can rollback all the transaction.
or
you can use the Fault handling framework:
Using Fault Handling in a BPEL Process - 11g Release 1 (11.1.1.7)
Regards,
Anshul -
Output Variable - Type: Date - Problem with WSDL in Designer
Greetings,
We are seeking some information about the following:
We have a process in Process Designer that has and output variable of the type: Date. When the process is activated and we connect to a WSDL in LC ES Designer we get both a DATE and CALENDAR in the Data View.
Hope that is at least somewhat clear. Please respond with any help or questions.
Thanks,
Rick Kuhlmann
Tech-ProThis is to distinguish between java.util.Date and java.util.Calendar types. If the date is returned as java.util.Date, it will be in the DATE.date field. If the date is returned as java.util.Calendar, it will be in the DATE.calendar field.
There are a bunch of xPath dates function in the xPath builder you can use.
Jasmin -
SPD 2013 Workflow - Create list item with people picker in other site collection
Hi all,
I read a lot of blogs and forum posts the last couple of days, but I seem to be stuck as to why my workflow is not working as expected - thus, I thought I would ask the experts :-)
Setup:
2 lists in 2 different site collections
http://svr-url/servicedesk/tickets
http://svr-url/projects/requests
SharePoint 2013 on Prem
I try to create a SPD 2013 workflow that creates a new item in list "requests" once a certain trigger is set in list "tickets". One of the fields I need to copy is the requestor = People picker field.
I did a web service call with a REST call to create a list item. All works well as long as I just stick to Title and other text fields, but filling in the "Requestor" fails with "Bad request".
I learned I need to use the "RequestorID" field and in a blog I read I need to put in the user id as Int32. So I set the parameters in the dictionary to integer. Still I get "bad request".
Another issue: as I have lists from 2 site collections, the user id differs for the same user.
/servicedesk: ID = 9
/projects: ID = 22
Additionally, the possibility exists that the user I try to set is not already existent in the /projects user information list.
How can I deal with that?check this
http://community.office365.com/en-us/f/154/t/127887.aspx -
PL/SQL array bind output variable
I've been trying to learn how to pass an array to an pl/sql script. Getting the data into the db seems to be working fine, but I would like to know if there was a problem inserting the data. More specifically, I would like to know THE SPECIFIC ROW that caused the problem.
pl/sql code:
create or replace procedure pp (
v_out out number,
v_listtype in repair_codes.listtype%type,
v_repaircode in repair_codes.repaircode%type
is
begin
insert into repair_codes (listtype, repaircode) values (v_listtype,v_repaircode);
v_out:=1;
commit;
--just setting up test variable for now
end;
vb.code:
Dim cmd As New OracleCommand("pp", dbConn)
cmd.CommandType = CommandType.StoredProcedure
cmd.ArrayBindCount = 3
Dim al(2) As String
Dim ar(2) As String
al(0) = "JOE1"
al(1) = "JOE2"
al(2) = "JOE3"
ar(0) = "TEST1"
ar(1) = "TEST2"
ar(2) = "TEST3456789"
Dim out As New OracleParameter("v_out", OracleDbType.Varchar2, 20)
out.Direction = ParameterDirection.Output
cmd.Parameters.Add(out)
Dim listtype As New OracleParameter("v_listtype", OracleDbType.Varchar2)
listtype.Value = al
cmd.Parameters.Add(listtype)
Dim repaircode As New OracleParameter("v_repaircode", OracleDbType.Varchar2)
repaircode.Value = ar
cmd.Parameters.Add(repaircode)
dbConn.Open()
Try
cmd.ExecuteNonQuery()
Catch ex As OracleException ' catches only Oracle errors
ex = ex
Select Case ex.Number
Case 1
MessageBox.Show("Error attempting to insert duplicate data.")
Case 12545
MessageBox.Show("The database is unavailable.")
Case Else
MessageBox.Show("Database error: " & ex.Message.ToString())
Dim wha = ex.Errors(0).ArrayBindIndex 'always '0'
End Select
Finally
dbConn.Close()
End Try
error:
OracleParameter.ArrayBindSize is invalid
Code above will work if I remove everything about the 'output' variable
To test I would like to put in data for a column that is too large, have all other rows inserted, but return the row that had bad data. Thanks for any thoughts on this-I have a similar issue, i.e. the pl/sql table type as out parameter is causing probleml in one API related to Oracle Applications. I have singled this problem out by creating wrappers and testing them against BPEL process. Now as soon as I put an out parameter with pl/sql table in my wrapper, I start getting errors. Why the invoke even care about what is in output while calling the API? How can I get rid of it. I am not able to pin point where exactly you made the changes. Could you please share some more info or possibly share the BAD and GOOD code.
We will probably get away with this by creating just a wrapper that would have NO out parameter as PL/SQL table as I don't think we need it anyway.
Still want to know what is the issue here as we would like to avoid any custom wrapper creation?
Shobhit
Message was edited by:
Shobhit.Kapila
Maybe you are looking for
-
My LJ2605dn would not duplex so I updated to the universal print driver 6.0.0. My HP H5Z15AA PC now cannot find the printer. If I select the LJ2605dn pcl6 icon in device manager, it will find the printer and print but only in black and white This que
-
RV215W - Problem setting up site-to-site VPN
Hello, I've taken a plane to newbie-land and need help in setting up a site-to-site VPN. I know this is very basic stuff so I apologize for asking something that's been answered a million times before. I just can't find an answer I can translate dire
-
Hi all, I'd like to know if it's possible and how to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0), Windows version. With the following code, I can see that the mail.jar used by the server is the one included in the jdk installation
-
Connection problems w/HTC Mogul PPC phone via Missing Sync & Bluetooth
Can anyone help me connect my HTC Mogul phone to my Mac with Missing Sync using bluetooth? It syncs great using USB, but will not work with bluetooth. Is this an issue with the Mac, the bluetooth profile, or the phone? Any help would be appreciated!
-
Import procedure confusing, frustrating
I have a folder with some wave files (created from recording in the basement), and I want to import them into ITunes as MP3s with my own artist name, album name, etc. The only way I can seem to do this is to double click one at a time, pause it, then