SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"
If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
reference not set to instance of object"
Hi VikasJain13,
According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
if this table is still existing.
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support
Similar Messages
-
Update beans after adding columns to DB tables
I am trying to use JDeveloper 10G , Studio Edition Version 10.1.3.0.4.3673
I am having difficulty finding out how to update CMP Entity Beans
after adding columns to DB tables.
I have found descriptions of how to do these from four sources.
None of these methods work.
They all refer to menu options, buttons or fields that aren't in the JDevb IDE.
List of options that don't exist :
"Synchronize with Database"
"attributes"
"Add from table"
"New from Table"
"Fields Tab"What version of EJBs are you using?
The only option I know of for EJBs will be to generate the bean from the table again, or manually add the field to the EJB.
The "Synchronize with Database" operation is there for ADF Business Components but not for EJBs. -
I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.
If you only see the time then that would mean that you see an entry of the current day (today).
History items from past days should have the date as well in the Most Recent Visit column.
You should be able to see this changing if you open the last 7 days folder and scroll down. -
firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"
you have not understood my point
how does this code will run on servlet when I want to upload a file from client's
machine to server machine
what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
All the computers are connected in LAN
So how to upload a file from client's machine to server's machine
Plz give me a solution -
Newly added column in a table not displayed in a related form
I added a new column (DNAMECONT as varchar2) in a table I created a Form on. I added this new field in my Form as a text field, and on the customized tab of the form wizard, this following code is displayed as expected :
<TR><TD><#DCONTRACTOR.LABEL#></TD><TD><#DCONTRACTOR.ITEM#></TD></TR>
But I cannot view it once I run my form.
did I forget to do something or is there something I did wrong?
Thank you for your help.
BertrandSorry to interupt, as far as I understand, if you add extra column to a table after the form is built and you want to add this new column in your form. When you add new item in your form, the name you give to the item should exactly match the column name of your new column of the table. Now, you said you added a new column called DNAMECONT, but the
html shown in form wizard is <#DCONTRACTOR.LABEL#>, <#DCONTRACTOR.ITEM#>, two names do seem to match. Is that the problem?
null -
General Scenario- Adding columns into a table with more than 100 million rows
I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those?
Thanks in advance.
svkFor such a large table, it is better to add the new column to the end of the table to avoid any performance impact, as RSingh suggested.
Also avoid to use any default on the newly created statement, or SQL Server will have to fill up 200 million fields with this default value. If you need one, add an empty column and update the column by using small batches (otherwise you lock up the whole
table). Add the default after all the rows have a value for the new column. -
I followed the example provided in
https://jtabadero.wordpress.com/2011/04/13/modifying-sync-framework-scope-definition-part-3-workarounds-addingremoving-columns/ to add columns to a table in a provisioned database. The sample code replaces the stored procedures triggered when the
table is updated with new stored procedures which include the additional columns
However, the sample does not update scope_config. When I am finished, the new columns do not appear in the scope config. Looking at the SQL code it is immediately obvious why. Here is an excerpt from the beginning of the query
DROP PROCEDURE [PATIENT_insertmetadata];
DROP PROCEDURE [PATIENT_updatemetadata];
DROP PROCEDURE [PATIENT_deletemetadata];
-- BEGIN Enable Snapshot Isolation on Database 'PatScan' if needed
IF EXISTS (SELECT NAME FROM sys.databases where NAME = N'PatScan' AND [snapshot_isolation_state] = 0)
BEGIN
ALTER DATABASE [PatScan] SET ALLOW_SNAPSHOT_ISOLATION ON
END
GO
-- END Enable Snapshot Isolation on Database 'PatScan' if needed
-- BEGIN Create Scope Info Table named [scope_info]
IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_info' AND s.name = N'dbo')
BEGIN
CREATE TABLE [scope_info] ([scope_local_id] int IDENTITY(1,1) NOT NULL, [scope_id] uniqueidentifier DEFAULT NEWID() NOT NULL, [sync_scope_name] nvarchar(100) NOT NULL, [scope_sync_knowledge] varbinary(max) NULL, [scope_tombstone_cleanup_knowledge] varbinary(max)
NULL, [scope_timestamp] timestamp NULL, [scope_config_id] uniqueidentifier NULL, [scope_restore_count] int DEFAULT 0 NOT NULL, [scope_user_comment] nvarchar(max) NULL)
ALTER TABLE [scope_info] ADD CONSTRAINT [PK_scope_info] PRIMARY KEY ([sync_scope_name])
END
GO
-- END Create Scope Info Table named [scope_info]
-- BEGIN Create Scope Config Table named [scope_config]
IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_config' AND s.name = N'dbo')
BEGIN
CREATE TABLE [scope_config] ([config_id] uniqueidentifier NOT NULL, [config_data] xml NOT NULL, [scope_status] char NULL)
ALTER TABLE [scope_config] ADD CONSTRAINT [PK_scope_config] PRIMARY KEY ([config_id])
END
GO
-- END Create Scope Config Table named [scope_config]
In an already provisioned database, the scope_info and scope_config tables already exist. Hence the portions of the script to create the scope_info and scope_config tables are skipped. I tried modifying the query to drop these tables. When
I do so, ne tables are created but they only define the modified table.
Is it necessary to update scope_info and scope_config? Are there are side effects (such as deprovisioning) if I drop and then recreate these tables? Can I just update the existing scope_config, replacing the portion of the XML which defines the table
being modified? Do I have to make changes in scope_info?
Thanks
Howard Weiss
Howard P. WeissI followed the example provided in
https://jtabadero.wordpress.com/2011/04/13/modifying-sync-framework-scope-definition-part-3-workarounds-addingremoving-columns/ to add columns to a table in a provisioned database. The sample code replaces the stored procedures triggered when the
table is updated with new stored procedures which include the additional columns
However, the sample does not update scope_config. When I am finished, the new columns do not appear in the scope config. Looking at the SQL code it is immediately obvious why. Here is an excerpt from the beginning of the query
DROP PROCEDURE [PATIENT_insertmetadata];
DROP PROCEDURE [PATIENT_updatemetadata];
DROP PROCEDURE [PATIENT_deletemetadata];
-- BEGIN Enable Snapshot Isolation on Database 'PatScan' if needed
IF EXISTS (SELECT NAME FROM sys.databases where NAME = N'PatScan' AND [snapshot_isolation_state] = 0)
BEGIN
ALTER DATABASE [PatScan] SET ALLOW_SNAPSHOT_ISOLATION ON
END
GO
-- END Enable Snapshot Isolation on Database 'PatScan' if needed
-- BEGIN Create Scope Info Table named [scope_info]
IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_info' AND s.name = N'dbo')
BEGIN
CREATE TABLE [scope_info] ([scope_local_id] int IDENTITY(1,1) NOT NULL, [scope_id] uniqueidentifier DEFAULT NEWID() NOT NULL, [sync_scope_name] nvarchar(100) NOT NULL, [scope_sync_knowledge] varbinary(max) NULL, [scope_tombstone_cleanup_knowledge] varbinary(max)
NULL, [scope_timestamp] timestamp NULL, [scope_config_id] uniqueidentifier NULL, [scope_restore_count] int DEFAULT 0 NOT NULL, [scope_user_comment] nvarchar(max) NULL)
ALTER TABLE [scope_info] ADD CONSTRAINT [PK_scope_info] PRIMARY KEY ([sync_scope_name])
END
GO
-- END Create Scope Info Table named [scope_info]
-- BEGIN Create Scope Config Table named [scope_config]
IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_config' AND s.name = N'dbo')
BEGIN
CREATE TABLE [scope_config] ([config_id] uniqueidentifier NOT NULL, [config_data] xml NOT NULL, [scope_status] char NULL)
ALTER TABLE [scope_config] ADD CONSTRAINT [PK_scope_config] PRIMARY KEY ([config_id])
END
GO
-- END Create Scope Config Table named [scope_config]
In an already provisioned database, the scope_info and scope_config tables already exist. Hence the portions of the script to create the scope_info and scope_config tables are skipped. I tried modifying the query to drop these tables. When
I do so, ne tables are created but they only define the modified table.
Is it necessary to update scope_info and scope_config? Are there are side effects (such as deprovisioning) if I drop and then recreate these tables? Can I just update the existing scope_config, replacing the portion of the XML which defines the table
being modified? Do I have to make changes in scope_info?
Thanks
Howard Weiss
Howard P. Weiss -
Hi everybody,
I have to make a column (in Siebel repository) or better to say I have to add a column to the table. The column doesn't exist in a database. There is a PL/SQL package which has the stored procedure I need to call to make column. How may I make the column from the stored procedure?
Thanks in advance.
I apologize if the meaning from the above sentences is confused.
Edited by: Stanisa on 24.02.2010. 14.451.) The Siebel guys are over there -> http://forums.oracle.com/forums/category.jspa?categoryID=151
2.) Siebel schema changes are applied through Siebel Tools to the schema. Ref. "Apply" and "Activate" buttons. -
"Create Object " statement gives error: statement is not accessible
Hi All
U must b doing good.
I am new in ABAP Objects.
I have writeen a simple Class definition n Implimentasion code.
but whenever i write statement "Create object", it gives error.
'm working on SAP Dev 4.7.
the code was like this:-
class counter definition.
public section.
METHODS: set IMPORTING VALUE(set_value) TYPE i,
increment,
get EXPORTING VALUE(get_value) TYPE i.
private section.
DATA count TYPE i.
ENDCLASS.
CLASS counter IMPLEMENTATION.
METHOD set.
count = set_value.
ENDMETHOD.
METHOD increment.
count = count + 1.
ENDMETHOD.
METHOD get.
get_value = count.
ENDMETHOD.
ENDCLASS.
DATA: cnt_1 TYPE REF TO counter.
DATA number TYPE I VALUE 5.
CREATE OBJECT cnt_1 .
CALL METHOD cnt_1->set
EXPORTING set_value = number.
DO 3 TIMES.
CALL METHOD cnt_1->increment.
ENDDO.
CALL METHOD cnt_1->get
IMPORTING get_value = number.
write: number.
its giving error like:-"Statement is not accessible."
plz tell me the way to resolve this error.
thanx n regards
Prashant tiwarihi prashant....
this is the link to post your therads for abap objects:
[ABAP Objects;.
if you want to reward, on the left of every reply ther would be some radio buttons like answere, helpful answer,... so on. click the radio button which suits you. answered closes the thread and other points are displayed there itself.
---regards,
alex b justin -
I have iphone 4, and couldn't update to ios7.1.1 even though its downloaded, gives error message
Unable to verify update
ios 7.1.1 failed verification because you are no longer connected to the internet
Close Try again
Event though I am connected to the net
Tried repeatedly but frustrating. Am able to do the same in another iphone 4 which my brother has....Do not know what setting to change. Even cant update via itunesHi GajaPsy,
If you are getting errors or alert messages when you try to update your iPhone, you may find the troubleshooting steps outlined in the following article helpful:
Apple Support: Resolve iOS update and restore errors in iTunes
http://support.apple.com/kb/ts1275
Regards,
- Brenden -
SSAS Tabular Calculated Column: Want a calc column that only populates if row value = X
I have a table with SalesAgentID, SalesAgentTypeID (can be types 1,2, or 3), and I want to add a new column called Type1, Type2, Type3.
Type 1 would only show the SalesAgentID if SalesAgentTypeID =1.
It seems like I should be able to do this with a calculated column but I'm not having any luck, I tried using a FILTER but couldn't get that to work and now I tried a LOOKUPVALUE but get "calculation error in column, a table of multiple values was supplied
where a single value was expected".
=LOOKUPVALUE[SalesAgentID,[SalesAgentTypeID],1)
Second part of this, I want to use this to build a hierarchy as AgentType 1 should be the top, Type2 below 1, etc...
Perhaps there is a better way to build a hierarchy than making these calculated columns? (Since we have a hard set limit of 4 levels it just seemed easier to treat this like Country, State, City, etc...)Hi OneWithQuestions,
According to your description, you want to create a calculated column in your tabular model. And the value in the calculated column is based on the SalesAgentType column, right?
In this case, you can use the DAX below to create the calculated column.
IF(TableName[SalesAgentType]=1,value,blank())
I have tested it on my localenvironment, the screenshot below is for you reference.
Reference
http://msdn.microsoft.com/en-in/library/hh213003.aspx
http://msdn.microsoft.com/en-us/library/gg492126.aspx
Regards,
Charlie Liao
If you have any feedback on our support, please click
here
Charlie Liao
TechNet Community Support -
Adding column name into tables.
Hi guys,
i have a panel which consist of a scroll table which i am not sure how to i add column names tru this type of coding. and some more i have to retrieve info from the database and display into this table. can someone pls guide me how to i add in the column names and how do i retrieve info out from db and displying it onto the table? a million thanks! :)
* This method initializes jScrollPane_viewLogTable
* @return javax.swing.JScrollPane
private JScrollPane getJScrollPane_viewLogTable() {
if (jScrollPane_viewLogTable == null) {
jScrollPane_viewLogTable = new JScrollPane();
jScrollPane_viewLogTable.setBounds(new java.awt.Rectangle(27,30,460, 200));
jScrollPane_viewLogTable.setViewportView(getJTable_viewLogTable());
return jScrollPane_viewLogTable;
* This method initializes jTable_viewLogTable
* @return javax.swing.JTable
private JTable getJTable_viewLogTable() {
if (jTable_viewLogTable == null) {
jTable_viewLogTable = new JTable();
return jTable_viewLogTable;
}TitusIt's not my code, it's just Java.
C'mon, read the javadocs.
Or look at this:
http://www.exampledepot.com/egs/java.sql/GetRsColCount.html
% -
Problems adding columns in a table
Hi,
I defined a table. Now I need to add new columns. In OWB I set them in their correct order but when I deploy the table with upgrade, in the database, columns appear at the end of the table.
Does anyone know this problem, how can i resolve this?
Thanks
BeatrizYou mean ordered in the table as shown in a mapping or table editor window? This ordering is only visual and will not impact meta-data definition.
If it is really important the best solution is to:
- replace the table with new/altered columns by script in SQLplus/Toad
- do import of table in OWB (mention the 'Advanced Reconciliation Options' uncheck the 'Preserve...' boxes)
- reconcile inbound in a mapping where the table is used. Lines to columns will stay if the column-name didn't change.
Anybody know this issue is solved in OWB 10g R2? -
SSAS Tabular - Merge data from two tables to one
Hi,
I have two ReportServer databases in two different instances of SQL Server. I want to extract the ExecutionLog3 data to a Tabular model. Now, I have two separate tables in Tabular with duplicated measures but I want to have the data from two ReportServer in
the same table.
Any idea?
Regards.Hi Numero4,
According to your description, there are two Reporting Services databases, and you want to merge the data in a tabular model, right?
As per my understanding, you can create a link server on one of the server, and then merge the data in database lever other than in tabular mode. In this case, import the merged data into the tabular model. Here are some useful links for you reference.
http://msdn.microsoft.com/en-IN/library/ff772782.aspx
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2458/52/how-to-create-link-server-with-ms-sql-200520082012-64-bit-using-qodbcqremote
Regards,
Charlie Liao
TechNet Community Support -
Filter criteria on added field in VF04 gives error and does not filter
Hi!
I have added a filed WBS to the output of VF04 using a exit. What I did was added the wbs filed to the table VKDFIF table and then used the exit ZXV6PU08 to get the values in the VF04 output. The display output for VF04 does bring in the values for the WBS field that I added . NOw when I want to do a filter on the field it pops out an error message :WBS element 00000 does not exist. But when I fill in the selection criteria in the filetr screen in ranges i.e lower value and upper value it displays me the filtered value, its only when I enter values in the lower range only it pops out a message saying the value does not exist and it does not do the filter.
Can anyone please tell why this is happening and how it can be fixed?
ThanksHi Odysseas!
I ahve a program which finds the user exit for any transaction and I used that for VF04 and choose the right exit applicable to your requirement. This will lead us to the user-exit , I chose V60P0001 form the list for my requirement and when you drill down it will take you to the desired program include zxv6pu08.
I hope this would be helpful for you . PLease do let me know if you need any more information on this.
Thanks
Maybe you are looking for
-
Iweb, video and non-mac platforms
ive placed an mp4 video on my iweb site with images and hyperlinks over it. when i view in safari and firefox it views beautifully. when i view in google chrome or on a pc the mp4 jumps in front of the other images and hyperlinks restricting my acces
-
LDAPRealmV2 using group members as entries
Hi all, we have configured our ldaprealm v2 (wls 6.1) to have group members as entries below the group as opposed to the normal setup with group members as attributes of one group. This has imposed some strange problems. We have several groups mapped
-
How To Edit Songs Names/Artists On Ur iPhone/iPad/iPod
ive been keeping my iphone library clean throughout the years and recently since ive updated my itunes and purchased the new iphone4s it hasnt been working, anybody know why?>
-
Hi I am using SQL Developer version 1.1.1.25, (Build main25.14) and it has error in About Screen, i am gettign "null" in front of Version number on about screen. here is the exect text what i am getting (null) Verision 1.1.1.25 BUILD MAIN- 25.14 so w
-
Mac Pro 2006 wont boot up, no video...
Hello... I have a Mac Pro 2006 and yesterday, it froze up and I had hold the power button down in order for it to turn on, since it was unresponsive... Upon trying to restart the Mac, it just hung at the white screen with the apple logo, and I realiz