Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When selecting specific partition days it is only processing as per the incremental refreshing policy #4

Open
GilbertQue opened this issue Sep 30, 2021 · 7 comments

Comments

@GilbertQue
Copy link

Hi there, thanks for fixing the previous issue :)

What I now did was to configure the Partitions as shown below
image

Now when I run the command line prompt, I watch it via SQL Profiler and I see it is not processing the partitions I selected.
image

And when I review the partitions processed date I can see that the above partitions have not been processed.
image

If you need anything further for me to help please let me know.

@m-kovalsky
Copy link
Owner

This is due to the Incremental Refresh policy. This tool is not set up to override an Incremental Refresh policy. Would you share the details of the IR policy?

@GilbertQue
Copy link
Author

Hi Michael, thanks for getting back to me.

Here are the details of the IR policy

image

If you need any more details please let me know.

@m-kovalsky
Copy link
Owner

If you want it to ignore the Incremental Refresh policy, I believe you should set the table(s) as such:

image

@GilbertQue
Copy link
Author

Thanks Michael, just to confirm the steps should be.

  1. Disable the "EnableRefreshPolicy"
  2. Run the processing of the partitions with your amazing script.
  3. Re-Enable the "EnableRefreshPolicy"

@m-kovalsky
Copy link
Owner

m-kovalsky commented Oct 6, 2021

Yes, try it out and let me know. You can also run steps 1&3 as scripts. If this works, I can add a functionality within the tool to allow an option for disabling incremental refresh just for a particular processing batch.

Step 1:

Model.Tables["TableName"].EnableRefreshPolicy = false;

Step 3

Model.Tables["TableName"].EnableRefreshPolicy = true;

@GilbertQue
Copy link
Author

Hi Michael,

Thanks for the suggestion when I try and do this via Tabular editor to disable the refresh policy on a PPU database I get the following error shown below

image

@m-kovalsky
Copy link
Owner

This issue is a bit outside the scope of this tool. The error message isn't too helpful but make sure to check out Tabular Editor's documentation on the subject. Otherwise you may want to open a support ticket with Microsoft.

https://docs.tabulareditor.com/te2/incremental-refresh.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants