SCSM 2012 SP1 Data Warehouse Jobs failed with error message of <xxxx>vw is not updatable because a partitioning column was not found.

Wyatt Wong 116 Reputation points
2020-12-02T06:55:13.05+00:00

I found 4 data warehouse jobs have a Failed status. After further checking, the error messages mentioned "UNION ALL view '<xxxx>vw' is not updatable because a partitioning column was not found." How can I resolve the issue ?

Load.Common
Transform.Common
Load.CMDWDataMart
Load.OMDWDataMart

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
211 questions
{count} votes

Accepted answer
  1. D B 111 Reputation points
    2020-12-03T23:38:36.76+00:00

    steps provided by MS Support...I did these with all the job schedules disabled...

    on the datawarehouse SQL server...

    select max(datekey) from DWRepository..DateDim --should be 20501230
    select max(datekey) from DwDataMart..DateDim --should be 20501230
    select max(datekey) from CMDwDataMart..DateDim --should be 20501230
    select max(datekey) from OMDwDataMart..DateDim --should be 20501230

    If your errors are caused by this issue, the above queries will return 20201230

    If date keys are from Dec 2020, please use the below steps:

    1. Backup all DW DBs
    2. Add additional date keys until 2050
      Exec DWRepository.dbo.PopulateDateDim '20210101','20501231'
      Exec DwDataMart.dbo.PopulateDateDim '20210101','20501231'
      Exec CMDwDataMart.dbo.PopulateDateDim '20210101','20501231'
      Exec OMDwDataMart.dbo.PopulateDateDim '20210101','20501231'
    3. rebuild the constraints on all 2021 fact tables by using the following script Run the following on DWRepository, DWDatamart, CMDwDatamart, OMDwDatamart

    declare @objName sysname, @newChk as nvarchar(max)
    declare c cursor local FORWARD_ONLY READ_ONLY for
    select name from sys.sysobjects where xtype='C' and name like '%_2020_Dec_Chk' escape '\' order by 1
    open c; while 1=1 begin; fetch c into @objName if @@Fetch _STATUS<>0 break;
    set @objName = replace(@objName,'_2020_Dec_','_2021_Jan_')
    set @objName = replace(@objName,'_Chk','')
    set @newChk=replace('ALTER TABLE [dbo].[XYZFact_2021_Jan] WITH CHECK ADD CONSTRAINT [XYZFact_2021_Jan_Chk] CHECK (([DateKey]>=(20210101)));ALTER TABLE [dbo].[XYZFact_2021_Jan] CHECK CONSTRAINT [XYZFact_2021_Jan_Chk];','XYZFact_2021_Jan',@objName)
    exec sp_executesql @newChk
    end; close c; deallocate c;

    1. Restart Microsoft Monitoring Agent

    After this I was able to manually start each of the failed jobs, waited for completion, then enabled my job schedules.

    6 people found this answer helpful.

38 additional answers

Sort by: Most helpful
  1. Anton Tolmachev 11 Reputation points
    2021-01-01T11:15:34.873+00:00

    Hey guys, Happy NY !

    After applying initial fix provided by @D B initially on Dec 04 -So far so good, jobs came back all seemed ok and quiet.

    On 31.12.2020 started getting errors again (with ETL jobs failing) of that format :

    ----
    An error countered while attempting to execute ETL Module:
    ETL process type: Transform
    Batch ID: 553957
    Module name: TransformComputerHasSoftwareUpdateInstalledFact
    Message: ErrorNumber="4457" Message="The attempted insert or update of the partitioned view failed because the value of the partitioning column does not belong to any of the partitions." Severity="16" State="1" ProcedureName="TransformComputerHasSoftwareUpdateInstalledFactProc" LineNumber="220" Task="Step 9: Inserting into destination Fact"
    ....

    ----

    Guess it was that initial fix missed DateDim on 31.12.2020. Had holiday streak started on 30th so was NOT able to catch up on that during that moment (didin't fix DateDims)

    OK, NY started, errors mentioned above gone by themselves (again, did NOTHING for now still ) and now it's just same as @Shumail Usmani :

    UNION ALL view <xxxx>vw is not updatable because a partitioning column was not found.

    so we are back again from on what was started initially..duh.

    Anyone has a working fix for that again for now?? Cause things started to be pretty ridiculous on that, the fix needs to be fixed,whatsoever...
    Not a big SQL guy here, but maybe got a template of actions to get rid of this sh*t again??
    Ok, i see folks above give way to figure out problem table constraints, what's next, a way to actually FIX them back again?

    SCSM 1801 (2016)


  2. Wyatt Wong 116 Reputation points
    2021-01-05T03:36:13.777+00:00

    @D B I am now getting following errors on 31-Dec-2020 with the same error messages of "UNION ALL view 'xxxvw' is not updatable because a partitioning column was not found." How do I fix it agan?

    Transform.Common Failed
    Load.CMDWDataMart Failed
    Load.Common Failed
    Load.OMDWDataMart Failed


  3. Anj277 1 Reputation point
    2021-01-07T12:58:14.387+00:00

    We faced the same issue and applied the fix as suggested in this thread.
    But the jobs are still failing with errors like "UNION ALL view 'OMDWDataMart.dbo.DeployedComputerRunsWindowsComputerFactvw' is not updatable because a partitioning column was not found", "UNION ALL view 'OMDWDataMart.dbo.DeployedComputerRunsWindowsComputerFactvw' is not updatable because a partitioning column was not found"

    Could someone please help


  4. David Ulrich 1 Reputation point
    2021-01-07T15:01:09.14+00:00

    Hi same issue as above here .. same errors same jobs

    0 comments No comments