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.
210 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. Dujon Walsham 1 Reputation point MVP
    2021-01-11T13:48:54.273+00:00

    I had this exact same issue, I was using SCSM 1801 when this happened.
    Tried all of the fixes advised on this post but it didnt work.
    Looks to be a bigger issue possibly at hitting a limit of how far the dates will go. I built an entirely new SCSM 1801 with fresh databases and the same issues still happened. Fixes never worked for that either.

    The only definitive fix I found was to upgrade to SCSM 2019 and it worked perfectly.


  2. Dmat-2323 1 Reputation point
    2021-01-11T15:30:49.47+00:00

    Everything is now running except my transform I am getting an error saying "The INSERT statement conflicted with the FOREIGN Key constraint "FK_Computerhassoftwareupdateinstalledfact_2020_Dec_datekey_DateDim" The conflict occurred in the database "DWRepository", table dbo-DateDim, column DateKey. Any suggestions?

    0 comments No comments

  3. Daniel Luck 1 Reputation point
    2021-01-11T15:35:31.343+00:00

    Dear All,

    After speaking to Microsoft, it cost small amount and its fixed. If you get no where with this, I'd try this.

    They have applied a temporary fix to get it working and they said I needed to update to at least UR5 for SCSM 2016.

    I have updated to UR10 which is the latest update, and its all working now.

    Kind Regards

    Daniel

    0 comments No comments

  4. Andrew Gordon 11 Reputation points
    2021-01-11T20:39:52.933+00:00

    Good day everybody,
    I've got all my dates correct, all my settings/Facts look fine for all my databases, but I have 37 Facts that are failing (see list 55523-etljobs.txt) and thus my Load and Transform jobs are failing. All have a similar error to this:

    <Error EventTime="2021-01-11T19:42:07.1564642Z">UNION ALL view 'DWDataMart02.dbo.EntityManagedTypeFactvw' is not updatable because a partitioning column was not found.</Error>

    Any thoughts about how I fix these?
    Thank you.