1. Bernard Tchuente
  2. PowerBuilder
  3. Monday, 24 June 2019 15:31 PM UTC

I've installed and configured  PowerBuilder 2019 GA trial version properly and created a C# project. When doing migration with C# Model Generator for converting existing DataWindows to .Net DataStore, I had this issues : Error: ORA-00904:”C”.”IDENTIFY_COLUMN”:invalid identifier.

I'm wondering if someone got the same issue before. I reviewed the DataWindows  Oracle PL/SQL SELECT statement and they seem ok.

Thank you for your help.

Bernard

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 24 June 2019 18:04 PM UTC
  2. PowerBuilder
  3. # 1

Hi Bernard;

   Note that the new .Net Core features like the C# Web API only support Oracle 12C and 18C.

  What version of Oracle are you using?

FYI: https://www.appeon.com/support/documents/appeon_online_help/powerbuilder/features_list

Regards ... Chris

 

Comment
There are no comments made yet.
Bernard Tchuente Accepted Answer Pending Moderation
  1. Monday, 24 June 2019 19:05 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

We are currently using Oracle 11g and planning to migrate in Oracle 12C before the end of the year.

Is that means we cannot test our application in C# Web API environment before that date?

I really appreciate your contribution.

Thanks,

Bernard

 

 

Comment
  1. Chris Pollach @Appeon
  2. Monday, 24 June 2019 19:15 PM UTC
Hi Bernard;

Correct ... O11G and lower are not supported. I suspect that the issue might revolve around Oracle being able to supply a .Net Core DB Client driver. *My guess* is that they have only done this for O12C and 18C versions thus far.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Monday, 24 June 2019 19:12 PM UTC
  2. PowerBuilder
  3. # 3

Hi Bernard,

 

This can be a problem with the Property attribute [Identity] that is applied to your model directly.

 

Look for this attribute directly in your model and remove it since this applies to SQL Server. See the following example of a model with the [Identity] property attribute:

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SnapObjects.Data;

namespace MMDemo.Models
{
    [FromTable("Customer", Schema = "dbo")]
    [SqlOrderBy("Id ASC")]
    public class Customer
    {
        [Key]
        [Identity] // Remove this line of code!
        public int Id { get; set; }

        [MaxLength(15)]
        [Required]
        public string Fname { get; set; }

        [MaxLength(20)]
        [Required]
        public string Lname { get; set; }

        [MaxLength(35)]
        [Required]
        public string Address { get; set; }

        [MaxLength(20)]
        [Required]
        public string City { get; set; }

        [MaxLength(2)]
        [Required]
        public string State { get; set; }

        [MaxLength(10)]
        [Required]
        public string Zip { get; set; }

        [MaxLength(12)]
        [Required]
        public string Phone { get; set; }

        [MaxLength(35)]
        public string Company_name { get; set; }
    }
}

 

Regards,

Comment
There are no comments made yet.
Bernard Tchuente Accepted Answer Pending Moderation
  1. Tuesday, 25 June 2019 12:36 PM UTC
  2. PowerBuilder
  3. # 4

Hi Govinda,

I have no Property attribute [Identity] applied in my model. I'm using .Net DataStore to access objects and C# Data Model Generator must convert DataWindows to .Net DataStore.

Here is an example of DataWindows (D_toolbars) without any SQL statement migrate from original PowerBuilder application to the web (C# code):

 

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SnapObjects.Data;

namespace NetDataStore.DataWindows
{
    public class D_Toolbars
    {
        [PropertySave(SaveStrategy.Ignore)]
        public String Toolbarvisible { get; set; }

        [PropertySave(SaveStrategy.Ignore)]
        public String Toolbarname { get; set; }

    }

 

Regards,

Bernard

 

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 25 June 2019 12:55 PM UTC
Are you missing a "using PowerBuilder.Data;" in your code? This library is required if you are using .NET DataStore.
  1. Helpful
  1. Bernard Tchuente
  2. Tuesday, 25 June 2019 13:05 PM UTC
Hi Armeen,

I've the issue during the migrating process with C# Model Generator. At this stage I don't have a C# code yet.

Thanks.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 25 June 2019 14:03 PM UTC
  2. PowerBuilder
  3. # 5

Yes,

I can confirm I had exactly the same problem.

Tried to install an Oracle 12c Client, but no luck. It's the Database Server which has to be minimum 12c and now it works well.

What I will try is:

- generate the DataModel, using a 12c database

- see if after that I can run on an 11g database.

 

A shame really because lots of our customers are still on 11g.

regards,

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 25 June 2019 14:05 PM UTC
  2. PowerBuilder
  3. # 6

I'm wondering if it would work with an Oracle 11 ODBC connection. Something I'll try and get back on.

 

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 26 June 2019 02:19 AM UTC
Oracle 11 is practically EOL. It's starting to get time to upgrade.
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 26 June 2019 08:16 AM UTC
Ha, yes tell that to some of our customers. If Oracle continues with their outrageous and non-transparent pricing licensing models. They'll be completely EOL, no matter what version.

:)
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 26 June 2019 11:28 AM UTC
Anyway, our main problem once again (same problem for migrating to powerserver), is that it the range of supported databases is too few. We offer an alternative database to our customers: Tibero - TmaxSoft.

We cannot connect using OLEDB, ADO .net nor JDBC and ODBC only supported for SqlAnywhere 64 bit and PostgreSQL.

I would expect if ODBC is supported, it should have to work for ANY odbc to any db... maybe in a future?

We cannot migrate anything unless things would work with a wider range of connections.

What Sybase Adaptive Server?



Supported Database Connections so far:

Microsoft SQL Server - Supported versions: 2016 or 2017

Oracle - Supported versions: 12c or 18c

PostgreSQL - Supported versions: 11.3, 10.1, or 9.6

ODBC connection to SQL Anywhere (64-bit only) - Supported versions: 16 (16.0.0.2043 or later) or 17



kind regards,

MiguelL
  1. Helpful
There are no comments made yet.
Bernard Tchuente Accepted Answer Pending Moderation
  1. Tuesday, 9 July 2019 18:33 PM UTC
  2. PowerBuilder
  3. # 7

Hi All,

 

I'm back again with my Oracle 11g issue while waiting  Database Oracle 12C been installed.

While waiting I have 3 folders created in SnapDevelop : Controllers, DataWindows and Services.

Datawindows in my app without SQL statement (around 10 dw) are migrated from PowerBuilder to DataWindows folder.

Into Controllers folder I've only the file SampleController.cs and only files SampleService.cs and ISampleService.cs.

Based on MVC model, I was expecting to see all controllers and Services files of my application generated at the same time than the datawindows.

Does someone having the same concerns?

Thank you for your assistance.

Comment
  1. Bernard Tchuente
  2. Monday, 29 July 2019 12:48 PM UTC
Hi All,



We've finally installed Oracle 12c and generated all DataWindows used in our application without any error.

Now, we would like to ask the same question as above because only DataWindows are migrated as DataStores in SnapDevelop. What about others PowerBuilder's objects like menus, Windows, non visual objects, …

Armeen asked to do copy 'n paste for template project create with department class. Please can he be more explicit? We're using a PB 2019 trial version and without a satisfying proof of concept, it should be difficult to move on.



Thank you for any assistance.

  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 29 July 2019 17:31 PM UTC
Hi Bernard;

PB2019 w/ SnapDevelop only supports DWO's via its new "container" the ModelStore. No other PB object classes are supported in this C# release.

FYI: https://www.appeon.com/developers/roadmap

Regards ... Chris
  1. Helpful
  1. Bernard Tchuente
  2. Monday, 29 July 2019 18:01 PM UTC
Hi Chris,



Is that means it isn't possible to migrate our PB app to C# now as no other PB object are supported in this C# release?

If it's the case please let me know because I've spent a lot of time on that.



Thank you.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.