Search found 36 matches

by Partizan
Wed 19 Aug 2015 13:04
Forum: dotConnect for Oracle
Topic: Workflow restart after manual cleanup of instance store
Replies: 2
Views: 1006

Re: Workflow restart after manual cleanup of instance store

Thank you!
Puttling initialization record did the thing!
by Partizan
Thu 13 Aug 2015 09:56
Forum: dotConnect for Oracle
Topic: Workflow restart after manual cleanup of instance store
Replies: 2
Views: 1006

Workflow restart after manual cleanup of instance store

Hi guys, I'm experimenting with WF 4.5 now and have workflow with instance correlation configured by ID passed into Receive activity.
However if I cleanup all tables in the instance store and try to start workflow for any ID i get the following error:

The execution of the InstancePersistenceCommand named {urn:schemas-microsoft-com:System.Activities.Persistence/command}LoadWorkflowByInstanceKey was interrupted by an error.

Somehow it starts working if I drop all tables and create them from Schema scripts again.
by Partizan
Thu 13 Aug 2015 08:24
Forum: dotConnect for Oracle
Topic: Workflow Instance Store
Replies: 5
Views: 1102

Re: Workflow Instance Store

One more question I have:
It seems like tracking information is put into DB by one row each time.
Is there any way to do bulk update to DB instead of saving tracking info row by row?
by Partizan
Thu 13 Aug 2015 08:19
Forum: dotConnect for Oracle
Topic: Workflow Instance Store
Replies: 5
Views: 1102

Re: Workflow Instance Store

Could you please describe your scenario?
I have an instance correlation cofigured based on some int ID parameter passed into receive activity.
I would like to be able to understand which stored instance is associated with which ID.
I assume that this data is stored in BLOB fields, including parameters, etc., so I would like to be able to read and update that data in case of any emergency situation with workflow.
by Partizan
Tue 11 Aug 2015 11:44
Forum: dotConnect for Oracle
Topic: Workflow Instance Store
Replies: 5
Views: 1102

Re: Workflow Instance Store

By the way, looks like DB diagram at the WF Tracking documentation page is out of date as you have DATA_ID in WF_CUSTOM_TRACKING_RECORD now.
by Partizan
Mon 10 Aug 2015 21:27
Forum: dotConnect for Oracle
Topic: Workflow Instance Store
Replies: 5
Views: 1102

Workflow Instance Store

Hi Devart Team,

How could I extract instance specific information from BLOB fields in Oracle Workflow Instance Store?
Could you show an example please?

Thanks!
by Partizan
Mon 13 Jul 2015 15:17
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

Re: NET: Unknown Error 1 when updating.

Hi guys!
This post is to confirm that the issue was fixed with the last update - 8.4.447.0
Thanks!
by Partizan
Tue 05 May 2015 12:18
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

Re: NET: Unknown Error 1 when updating.

Hi guys! How are you doing? Are there any updates on this particular issue?
Thanks!
by Partizan
Mon 23 Mar 2015 09:44
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

Re: NET: Unknown Error 1 when updating.

Hi guys,
Were you able to reproduce the issue based on the latest information I provided?
Thanks.

Best regards,
Alexander Efimov.
by Partizan
Thu 19 Mar 2015 16:50
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

Re: NET: Unknown Error 1 when updating.

Here are the details:
1. Yes, Devart.Data and Devart.Data.Oracle are exactly the same as you indicated.

2. Error is: NET: Unknown error 1
Full stack:
at Devart.Data.Oracle.DirectUtils.c(Int32 A_0)
at Devart.Data.Oracle.d.a()
at Devart.Data.Oracle.l.a(d A_0, Int32 A_1)
at Devart.Data.Oracle.l.a(Int32 A_0, ci A_1)
at Devart.Data.Oracle.OracleCommand.InternalExecute(CommandBehavior behavior, IDisposable disposable, Int32 startRecord, Int32 maxRecords, Boolean nonQuery)
at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior, Boolean nonQuery)
at Devart.Data.Oracle.OracleCommand.ExecuteNonQuery()
at Devart.Data.Oracle.OracleCommand.a(Int32 A_0, Boolean A_1, Int64[]& A_2)
at Devart.Data.Oracle.OracleCommand.ExecuteArray(Int32 iters)
at BulkWithClob.Program.Main(String[] args) in c:\Users\alexander.efimov\AppData\Local\JetBrains\ReSharper\v8.2\vs11.0\visual studio 2012\Projects\BulkWithClob\BulkWithClob\Program.cs:line 48
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

3. Code is the same as I see:

Code: Select all

 string connectionString = "User Id=;Password=;Direct=true;Data Source=;Port=1521;SID=;Pooling=true;Unicode=true";
            using (var transaction = new TransactionScope(TransactionScopeOption.Required,
               new TransactionOptions {IsolationLevel = IsolationLevel.ReadCommitted}))
            {
               using (OracleConnection connection = new OracleConnection(connectionString))
               {
                  connection.Open();
                  using (var command = connection.CreateCommand())
                  {
                     var array = new decimal?[1];
                     array.SetValue((decimal?) 2, 0);
                     var arrayGenericName = new String[1];
                     arrayGenericName.SetValue("TEST DATA", 0);
                     var arrayLastUpdatedDate = new DateTime[1];
                     command.CommandText = "update  GMSRCA200.TEST set name = :name where id = :id RETURNING  LAST_UPDATED_DT INTO  :LastUpdatedDt";
                     command.PassParametersByName = true;
                     var idParam = new OracleParameter("id", OracleDbType.Number)
                     {
                        Value = array,
                        Direction = ParameterDirection.Input
                     };
                     var genericNameParam = new OracleParameter("name", OracleDbType.VarChar)
                     {
                        Value = arrayGenericName,
                        Direction = ParameterDirection.Input
                     };
                     var lastUpdatedDateParam = new OracleParameter("LastUpdatedDt", OracleDbType.Date)
                     {
                        Value = arrayLastUpdatedDate,
                        Direction = ParameterDirection.Output
                     };
                     command.Parameters.Add(genericNameParam);
                     command.Parameters.Add(idParam);
                     command.Parameters.Add(lastUpdatedDateParam);

                     command.ExecuteArray(array.Length);
                  }
               }
               transaction.Complete();
            }        
} 
4.

Code: Select all

Select * from v$version
gives the following:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for HPUX: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 – Production
by Partizan
Thu 19 Mar 2015 10:27
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

Re: NET: Unknown Error 1 when updating.

Hi Devart,

I was able to test this, but the issue still exists.
We have Direct connection with Pooling and Unicode set to true.
by Partizan
Wed 25 Feb 2015 17:01
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

Re: NET: Unknown Error 1 when updating.

Hi Devart Team,
Just want to follow up on this issue.
Were you able to fix this?
This affects part of our functionality unfortunately.

Thanks!
by Partizan
Mon 02 Feb 2015 15:57
Forum: dotConnect for Oracle
Topic: NET: Unknown Error 1 when updating.
Replies: 21
Views: 4669

NET: Unknown Error 1 when updating.

Hi Devart!

We found out that on some cases we get NET: Unknown Error 1.

Please take a look at this sample:

DDL:

Code: Select all

CREATE TABLE TEST
(
  ID                   NUMBER(19)               NOT NULL,  
  NAME                 VARCHAR2(1000 CHAR)      NOT NULL,
  LAST_UPDATED_DT      DATE                     NOT NULL  
);


CREATE UNIQUE INDEX AK_TEST_NAME ON TEST
(NAME);

CREATE OR REPLACE TRIGGER BIU_TEST_DT
    BEFORE INSERT OR UPDATE 
    ON TEST     REFERENCING NEW AS New OLD AS Old
    for each row
begin
      :new.last_updated_dt := sys_extract_utc(SYSTIMESTAMP);
end;

INSERT INTO TEST(ID,NAME)
VALUES(1,'TEST DATA');

INSERT INTO TEST(ID,NAME)
VALUES(2,'TEST DATA2');

COMMIT;
C#:

Code: Select all

      private static void Main(string[] args)
      {         
            string connectionString = "User Id=<...>;Password=<...>;Direct=true;Data Source=<...>;Port=1521;SID=<...>;Pooling=true;Unicode=true";
            using (var transaction = new TransactionScope(TransactionScopeOption.Required,
               new TransactionOptions {IsolationLevel = IsolationLevel.ReadCommitted}))
            {
               using (OracleConnection connection = new OracleConnection(connectionString))
               {
                  connection.Open();
                  using (var command = connection.CreateCommand())
                  {
                     var array = new decimal?[1];
                     array.SetValue((decimal?) 2, 0);
                     var arrayGenericName = new String[1];
                     arrayGenericName.SetValue("TEST DATA", 0);
                     var arrayLastUpdatedDate = new DateTime[1];
                     command.CommandText = "update  TEST set name = :name where id = :id RETURNING  LAST_UPDATED_DT INTO  :LastUpdatedDt";
                     command.PassParametersByName = true;
                     var idParam = new OracleParameter("id", OracleDbType.Number)
                     {
                        Value = array,
                        Direction = ParameterDirection.Input
                     };
                     var genericNameParam = new OracleParameter("name", OracleDbType.VarChar)
                     {
                        Value = arrayGenericName,
                        Direction = ParameterDirection.Input
                     };
                     var lastUpdatedDateParam = new OracleParameter("LastUpdatedDt", OracleDbType.Date)
                     {
                        Value = arrayLastUpdatedDate,
                        Direction = ParameterDirection.Output
                     };
                     command.Parameters.Add(genericNameParam);
                     command.Parameters.Add(idParam);
                     command.Parameters.Add(lastUpdatedDateParam);

                     command.ExecuteArray(array.Length);
                  }
               }
               transaction.Complete();
            }        
Please let us know what you think, guys.
Meanwhile I'm sending demo project to [email protected]

Thanks!
by Partizan
Wed 21 Jan 2015 12:04
Forum: dotConnect for Oracle
Topic: Bulk operations with CLOB values
Replies: 13
Views: 2371

Re: Bulk operations with CLOB values

Thank you guys, it's fixed.

As always, good job in a short time!
Thanks again!
by Partizan
Wed 14 Jan 2015 11:33
Forum: dotConnect for Oracle
Topic: Bulk operations with CLOB values
Replies: 13
Views: 2371

Re: Bulk operations with CLOB values

Hi guys!

We're very interested in update on this.
Thanks!