Editors IDEs
--
Questions
--
Followers
Top Experts
Datawindow error
Select Error: Column lists do not match
I've not seen this error before.
The DW in question had its Owner changed (from DBO), was a Sybase DB, and now is an Oracle 8i Database.
No other properties other than a join and the ownership were changed in the Datawindow, now this error is poppin up. On both the native retrieve, and when run through the application.
Any help would be appreciated.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
If you can post the Select statement I may be of more help.
send DataWindow to me levrom@hotmail.com
I will examine it






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Does it works fine.
Please send the sql for DW .
Regards
vikas
But the initial problem remains, as the solution I devised did not work.
Before calling the Modify function I changed the single quotes (') to double (") around certain items (listed below), and this actually got past the column error that is a result of a bad Modify call. The problem that arose from this change is that though the MODIFY function now modifies correctly, the DW gets an invalid Column error with Double "'s.
Catch 22. Change the SQL to use the modify function, but then the DW wont retrieve properly.
Columns Changing:
Select < Various Coumns>,
To_Number( To_Char(FAST.account_reque
To_Number( To_Char(FAST.account_reque
To_Number( To_Char(FAST.account_reque
InStr(FAST.account_request
SQL comes from here:
is_orgselect = dw_list.Describe("DataWind
Changes are here:
is_orgselect = replace(is_orgselect, pos(is_orgselect, "'mm'"), 4, "~"mm~"")
is_orgselect = replace(is_orgselect, pos(is_orgselect, "'dd'"), 4, "~"dd~"")
is_orgselect = replace(is_orgselect, pos(is_orgselect, "'yy'"), 4, "~"yy~"")
is_orgselect = replace(is_orgselect, pos(is_orgselect, "'xndaper'"), 9, "~"xndaper~"")
t_modstrg = "DataWindow.Table.Select='
+ is_orgselect + t_where + "'"
The entire SQL of the DW becomes what is below:
SELECT FAST.ACCOUNT_REQUEST.~"SSO

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Changing the single quotes to double quotes will not fix your problem but just create another. The double quotes identify database objects. The single quotes designate the start and end of strings. This would generate the invalid column error. Oracle would assume "mm", "dd", "yy", "xndaper", "r" and "e" to all be names of columns.
These are the errors in your select SQL
1) To_Number( To_Char(FAST.account_reque
The "mm" should be 'mm'
2) To_Number( To_Char(FAST.account_reque
The "dd" should be 'dd'
3) To_Number( To_Char(FAST.account_reque
The "yy" should be 'yy'
4) InStr(FAST.account_request
The "xndaper" should be 'xndaper' though "xndaper" may be a column name.
5) FAST.account_request.statu
The "r", "e" should be 'r', 'e' and the trailing ' should not be there
I think thats it.
A) Why do you think you need to change the single to double quotes?
B) Did you always manipulate the SQL prior to the retrieve?
c) Instr will return a number. Is this what your looking for in the last column expression?
Based on who is pulling information (their access level), certain filters are tacked on with a MODIFY command. The sinlge quotes will not go through the Modify command, and doubles aren't recognized by Oracle. The singles (along your theme), were the solution by prefacing them with ~~
1) Select contains * (all columns) and table was changed.
2) Select references view, original table was changed, and view was not recreated. The column types are shifted.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
PB version 5. ( Iit old I know but we have a huge application that uses a Framework based on PB 5 that cannot be upgraded.)
My data and SQL ( actually a stored proc ) had both gone through several revisions. However, I did not want to lose all the formatting work in the existing dw. I never saw the problem while previewing, the dw from PB, only when I ran it from the App. A slight difference for me was my owner did not change....just had a lot of revisions in DW and SP.
Here is what I did. I decided to build a new temp DW. And then I compared the columns and data specs from the new one to the old one. Sure enough, there was a minor difference. Once I made the old DW match the new DW column specs, It worked fine.
Hope this helps others.
BR

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Editors IDEs
--
Questions
--
Followers
Top Experts
Development in most programming languages is frequently done with an editor or integrated development environment (IDE). An IDE is a software application that provide comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. XCode, Visual Studio, Adobe Dreamweaver and Eclipse are some of the more popular development tools, but an editor or IDE can be anything from simple text editors to sophisticated programs. Related topics: All programming and development language, database and web based content management systems topics