Is this a DMR package?
What type of database is the data stored in?
Todd
Main Topics
Browse All Topicsi try to correct the error with changing the query item expression to 'string' type , looking for steps to change the data type, (eg. create a query item in sub-dimension, and key in Expression Definition?)
error:
BMT-MD-2009 This package will publish 'Query Item' '[New Namespace].[New Dimension5].[po_order_date
BMT-MD-2047 Cannot assign the "_memberCaption" role to this query item because its data type is not "string". Either change the query item expression to be of type "string" or create a new string calculated item and assign the role to it.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
it is stored in SQL Server 2005
i found other forum having the same error,
but the overcome with cast([intvalue],var16)
However, for my case, when i add an Query Item into dimension's child like po_order_no, i put
cast([intvalue],var16)
but it has error:
QE-DEF-0260 Parsing error before or near position: 20 of: "cast([intvalue],var"
How is your model setup?
I'm assuming it's got a multiple layers, the first layer being a database layer where you select your tables from database. The second layer is where you model your star schemas and your third layer might be where you do the DMR level.
I would move your cast to the database layer, I don't think you can cast at the in the layer where you are using DMR, since it is dimensional rather then relational.
Another possiblity is to add another field in your database that already has this cast, that way you avoid doing it in Cognos.
while adding another field called po_order_no_str in the table similar to po_order_no, the data copy over and po_order_no_str datatype is string.
While creating a new Query Subject to create regular dimension, i have the following error :
RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-205'.
UDA-SQL-0191 The column "po_order_no_str" was not found in the table or view "aBmtQuerySubject".
guess, it has relational link with other table.
that's why i try to use Query Item to perform cast
Did you add the new field into the table or view "ABmtQuerySubject"?
In your database layer, for the ABmtQuerySubject, just do a select * from ABmtQuerySubject to bring in all fields. Test this query subject if you've recently added the field in. Make sure this works.
Now in your next layer in framework manager, just add the field to the query subject that is pointing towards that query subject in the database layer.
Business Accounts
Answer for Membership
by: doramail05Posted on 2009-09-10 at 01:28:27ID: 25298262
i try putting this :
cast([intvalue],var16)
error:
QE-DEF-0260 Parsing error before or near position: 20 of: "cast([intvalue],var"