I have done this two different ways now with sql 2012 and sharepoint 2013 integrated. You can make a sql agent job that will change the time in the powerpivot sharepoint database. Just take all the current info in whatever job is there for the work book
and only modify the time. I did an update or insert because when you do this the job will go away eventually for some reason since you are always pushing it to a different time than it is expecting. Here is my code for the job. This is not Microsoft recommended
I suppose, but it works. Similar to the other answer about modifying the powerpivot database, but thought I would include it because the tables seemed to have changed in Sharepoint 2013.
UPDATE [DataRefresh].[WorkQ] SET StartDate = cast(getdate() as date),
StartTime = cast(dateadd(mi, 5, getdate()) as time) WHERE ItemID='62FC4369-DBE3-4EBD-9A78-4D49333DD85F'
IF @@ROWCOUNT = 0
INSERT INTO [DataRefresh].[WorkQ] VALUES
('62FC4369-DBE3-4EBD-9A78-4D49333DD85F',
'http://prinbi01/sites/IFSPROD/PowerPivot%20Gallery/MRP_Data_Model.xlsx',
'',
cast(getdate() as date),
cast(dateadd(mi, 5, getdate()) as time),
null,
'<?xml version="1.0" encoding="utf-16"?><TimingDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="OnSpecificDaysTimingDetails" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AnalysisServices.SPAddin.DataRefresh"><customTimeOfDay><hour>11</hour><minute>15</minute></customTimeOfDay><days>Sunday
Monday Tuesday Wednesday Thursday Friday Saturday</days></TimingDetails>',
'UB54wMO4M1rwpULFYtXOECplRZMBSgsncb2hv4jqQq8=',
0,
0)
I just took the 70-467 exam recently and failed it barely, but this was one of the questions. How to update a powerpivot data model hourly. One of the answer choices was to script a process command with an agent job. I looked it up and tried it on my PowerPivot
instance and it seems to work. Create a job with type "SQL Server Analysis Services Command" and then put this in.
<Process xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Type>ProcessFull</Type>
<Object>
<DatabaseID>PowerPivotDBNameHere</DatabaseID>
</Object>
</Process>
This seems to be Microsoft recommended best practice since it is the answer choice on their expert track exam.
Not sure if that is the same as the XMLA being done by OP, but it worked for me. Kind of weird that it was in read only mode.
Hopefully one of these will help someone.
-
Edited by
BPFrenchak
1 hour 8 minutes ago