Unable to Configure Business Object in Business Object Mapper


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks for the additional information, Alan. Smile  Glad you got it going!
Alan W
Alan W
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 21, Visits: 39
Hi All,

Our DBA working with IBM resolved this issue. The fix entailed a fix to IBM code. We can now successfully configure business objects for databases hosted on an IBM Mainframe running version 7.0 of the Db2 database. My thanks to everyone for their help.

AlanW

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
In fact, when I tried Googling the issue, the only thing that Google returned was this forum post, which obviously wasn't all that helpful BigGrin
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Good, because since the error was coming from the DB2 provider, I had no idea what to do other than let you choose a different provider.  Glad it's working Smile
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Whew....glad to hear it BigGrin 
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (09/05/2007)
OK, I have a test project for you to run so we can maybe figure out why that is failing. It's failing within the DB2Connection.GetSchema() method (you'd think IBM would know how to get the schema from their own database...). So, run the project, click the button on the top to populate the top grid with the installed data providers on your computer, then select the row for the IBM.Data.DB2 provider (that will be the InvariantName), enter the connection string, and click Get Data Types. You should get an error message giving you the exception message that you're getting in the BOMapper.



Then, try the other IBM provider you have installed. Your client should have installed another one that will be a version specific provider, something like IBM.Data.DB2.9.1.2 or whatever zSeries, something. Select that one and repeat the process. If you get the same error, then I don't know what to tell you. If you don't get the error and it populates the grid below with the data types, then I'll have to create a way for you to specify the provider rather than always using the generic provider.



Let me know. Thanks.




I gave Alan a hand on this earlier today and it turns out that the particular database that was being connected to was DB2 v7. It's scheduled to be upgraded, but hasn't been yet. I tried to connect to DB2 v8 and DB2 v9 from his machine and everything worked fine.



A Google search turned up that it was a data type that wasn't supported by DB2 UDB CLI. After a quick call to our database team, we learned that the database was v7 and that the data type wasn't supported by that version.



Bottom line is that the SF objects are working correctly as long as you try to connect to the correct version. BigGrin We just weren't aware that there were still v7 databases out there anywhere.



Thanks for all the help!
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
OK, I have a test project for you to run so we can maybe figure out why that is failing.  It's failing within the DB2Connection.GetSchema() method (you'd think IBM would know how to get the schema from their own database...).  So, run the project, click the button on the top to populate the top grid with the installed data providers on your computer, then select the row for the IBM.Data.DB2 provider (that will be the InvariantName), enter the connection string, and click Get Data Types.  You should get an error message giving you the exception message that you're getting in the BOMapper. 

Then, try the other IBM provider you have installed.  Your client should have installed another one that will be a version specific provider, something like IBM.Data.DB2.9.1.2 or whatever zSeries, something.  Select that one and repeat the process.  If you get the same error, then I don't know what to tell you.  If you don't get the error and it populates the grid below with the data types, then I'll have to create a way for you to specify the provider rather than always using the generic provider.

Let me know.  Thanks.

Attachments
Db2GetSchemaDataTypesTest.zip (77 views, 13.00 KB)
Alan W
Alan W
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 21, Visits: 39
Hi,

Has there been any progress on this issue? This issue pretty much has me blocked from progress with StrataFrame.

Thanks,

AlanW

Alan W
Alan W
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 21, Visits: 39
Using the DB2 Structure, I am unable to configure a business object using any of the tables in database. I consistently receive the following message:

Error: The fields could not be displayed.

Argument Exception:
Column SQL_DATETIME_SUB does not below to table DataTypes.

Source    System.Data

Stack Trace:
 at System.Data.DataColumnCollection.Remove(String name)
 at IBM.Data.DB2.bn.c[String[]A-0]
 at IBM.Data.DB2.bn.b[String A-0, String[]A-1]
 at IBM.Data.DB2.DB2Connection.GetSchema(String collectionName, String restrictionValues)
 at IBM.Data.DB2.DB2Connection.GetSchema(String collectionName)
 at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.GetFieldsFromDb2(String DatabaseString TableName, String ConnectionString)
 at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.BuildFieldsCollection(DTEproject_itemsBO,ProjectItem, Boolean SkipExceptions)
 at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.PopulateFieldsList(Int32 BOPK);

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search