Execute a sequence container based on logic
i have 3 sequence containers in a SSIS package
one has to be executed every 30 days
one has to be executed every 7 days
one has to be executed 2 days
this particular package has to be scheduled using sql server agent
now how do i write my logic in such a way that only a certain sequence container has to be executed based on the execution dates and do not touch the other sequence containers
can somebody throw some light on this
Thanks
Use the Precedence Constraints that will be driven by an expression that is based on dates
https://www.simple-talk.com/sql/ssis/working-with-precedence-constraints-in-sql-server-integration-services/
Arthur
MyBlog
Twitter
Similar Messages
-
Sequence contains more than one matching element
Hi
I have checked all threads and none answers my issue.
I am trying to drop a user and am following this blog:
http://sanderstechnology.com/2013/login-and-user-management-in-sql-azure/12826/#.U46Hh_mSweo
Below is a series of screen-shots of the issue. Please assist. Thanks, Mark.
MarkHello,
Based on your descritpion, you create a SQL database with WEB edition and try to connect to the MASTER database from Windows Azure Management portal. But it is failed with "Sequence contains more than one matching element" occasionally.
Due to the uncertainty and randomness factors, it requires higher level troubleshooting methods.I suggest you contact Windows Azure support team by creating a support ticket at
http://www.windowsazure.com/en-us/support/contact if you recevied this error again.
As for drop login, it may caused by the premssion. In SQL databae, only server-level principal login (created by the provisioning process) or the credentials of an existing member of the "loginmanager" database role can manage logins. If you are not use
a server-level principal login, please ask the adminstrator add the login to loginmanager databaserole:
EXEC sp_addrolemember 'loginmanager', 'login-you-used';
Reference:http://msdn.microsoft.com/en-us/library/azure/ee336235.aspx
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
What is order of execution in Sequence container
hi all,
I want to know the order of execution in sequence container. we have sequence container and loading 20 dimension table but no precedence constraints between the task, each tasks are separate.
What is the flow of execution, is sequence container allow parallel execution of task ?
Please guide me.
Thanks in advance.Hello,
All tasks which exist inside your Sequence container will execute in parallel.
If you want to control the order in which they execute then you need to use precedence constraints.
-Vaibhav Chaudhari -
Prblem with testing container-based security apps with JSC/AppServer 8...
not sure whether this is a JSC or an AppServer issue, correct me if neccessary...
I'm using container based security to dicate logic based upon user names & roles for my test JSC app. The problem is that when I run the app by autodeploying it to my Sun AppServer 8 instance (same machine, WinXP Pro) the security settings eems to be cached. That is, if I change the security roles or permissions in the container by editing the web.xml file the changes aren't reflected in the app upon redeployment. I have to copy it to a new directory and deploy as a new app to see any security change. It seems that the old usernames and roles are cached -even if I manually restart the app server. Is this a JSC or an ApPServer issue? Am I missing something? Is there an easier way for me reset security data when testing an application? Thanx in advance...
-Jwhile your solution may technically work, it is unusable to me because I can't successfully deploy a war file using JSC after I've manually added container-based descriptors to the web.xml file. In order for me even to be able to deploy the app I need to modify web.xml and sun-web.xml by hand in the build directory
-
Error in execute planning sequence variant in process chain
Hi ,
While creating an Execute planning sequence variant in process chain in Quality system , i am getting an error" variable variant not selected ' though i created a variable variant and selected it in execute planning seq variant.
Transporting it from development system didnt work therefore i am trying to create it directly in Quality .
Any idea what could be the issue.Hi,
Variable variant can be saved for planning sequence in modeler and then cab be used in process chains.
In process chain you can choose "Execute planning sequence"( separate process type) and add planning sequence with variant.
[http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1d000c41130bd5e10000000a422035/frameset.htm]
Thanks
Pratyush -
Using infoset based on logical database gives lots of selection parameters
Hi
I'm trying to assist a new Crystal user in getting up on running on Crystal using infosets from SAP. Presently a simple infoset based on logical database PNPCE has been built using fields from just three infotypes (to keep things simple).
When the user logs onto crystal and selects either this infoset, or a query based on the infoset, the very next step requires the user to set 80+ parameters to be null before running the report, and unfortunately those values cannot be saved to if in order to re-run the user has to manually set all the vallues to null again. Clearly this makes it pretty frustrating to use!
This initial screen does not appear if using an infoset based on table joins, but unfortunately the logical database needs to be used to fulfill certain reporting requirements.
I've tried saving a selection variant against a query and forcing it's use but these setting don't seem to be picked up by Crystal.
Are there any Crystal/Query experts out there that can help with this?
Regards
PhilHi,
Is there anyone out there that can help with this? Seems to me like an issue that there 'should' be a soluton to...but I haven't found it yet!
As a bit of additional info - the use of table join based infosets is not an option primarily because there are a lot of reports required that pull in the OM 'additional fields' that come through automatically when using an LDB. However, for table joins, it requires custom coding to be required to the infoset, which clearly restricts the user base from the ability to build their own reports.
Regards
Phil -
Sequence contains more than one element error in MVC 5
I created some models, added the migration and then did an update database operation, though at my last update database operation I got the error message saying:
Sequence contains more than one element
Below you can find my migration configuration:
context.Categories.AddOrUpdate(p => p.CategoryName,
new Category
CategoryName = "Sport"
new Category
CategoryName = "Music"
context.Subcategories.AddOrUpdate(p => p.SubcategoryName,
new Subcategory
SubcategoryName = "Football"
new Subcategory
SubcategoryName = "Basketball"
new Subcategory
SubcategoryName = "Piano"
new Subcategory
SubcategoryName = "Violin"
context.Services.AddOrUpdate(p => p.ServiceType,
new Service
ServiceType = "Football player",
Category = { CategoryName = "Sport" },
Subcategory = { SubcategoryName = "Football" }
new Service
ServiceType = "Piano lessons",
Category = { CategoryName = "Music" },
Subcategory = { SubcategoryName = "Piano" }
The problem occurs with when I add new Services. I already have categories and subcategories, and if I do like Category = new Category { CategoryName = "Music" } then it works but I get Music entry twice in my database (for this example). I want to
use the already added categories and subcategories. Below also you can find my models definitions.
public class Category
[Key]
public int CategoryID { get; set; }
public string CategoryName { get; set; }
// Subcategory is defined the same way...
public class Service
public int ServiceID { get; set; }
public string ServiceType { get; set; }
public virtual Category Category { get; set; }
public virtual Subcategory Subcategory { get; set; }
}After reading the article in the link that you have provided, I did the following changes in my models, and created controllers for each of them using Entity Framework, then I created a migration and named it InitialServices. Afterwards, I added a few
entries in my Configuration.cs file and when I typed Update-Database, I got an error message in package manager saying "RenameIndexOperation", which is marked with red. Below you can find my changed models and my Configuration.cs file, along with the migration
file created automatically.
Category.cs:
public class Category
[Key]
public int CategoryID { get; set; }
public string CategoryName { get; set; }
public virtual ICollection<Subcategory> Subcategories { get; set; }
Subcategory.cs:
public class Subcategory
[Key]
public int SubcategoryID { get; set; }
public string SubcategoryName { get; set; }
[ForeignKey("Category")]
public int CategoryID { get; set; }
public virtual Category Category { get; set; }
public virtual ICollection<Service> Services { get; set; }
Service.cs:
public class Service
[Key]
public int ServiceID { get; set; }
[Required]
[Display(Name="Service type")]
public string ServiceType { get; set; }
[ForeignKey("Subcategory")]
public int SubcategoryID { get; set; }
public int Count { get; set; }
public virtual Subcategory Subcategory { get; set; }
_InitialServices.cs:
public partial class InitialServices : DbMigration
public override void Up()
DropForeignKey("dbo.Services", "Category_CategoryID", "dbo.Categories");
DropIndex("dbo.Services", new[] { "Category_CategoryID" });
RenameColumn(table: "dbo.Services", name: "Subcategory_SubcategoryID", newName: "SubcategoryID");
RenameIndex(table: "dbo.Services", name: "IX_Subcategory_SubcategoryID", newName: "IX_SubcategoryID");
AddColumn("dbo.Subcategories", "CategoryID", c => c.Int(nullable: false));
CreateIndex("dbo.Subcategories", "CategoryID");
AddForeignKey("dbo.Subcategories", "CategoryID", "dbo.Categories", "CategoryID", cascadeDelete: true);
DropColumn("dbo.Services", "Category_CategoryID");
public override void Down()
AddColumn("dbo.Services", "Category_CategoryID", c => c.Int(nullable: false));
DropForeignKey("dbo.Subcategories", "CategoryID", "dbo.Categories");
DropIndex("dbo.Subcategories", new[] { "CategoryID" });
DropColumn("dbo.Subcategories", "CategoryID");
RenameIndex(table: "dbo.Services", name: "IX_SubcategoryID", newName: "IX_Subcategory_SubcategoryID");
RenameColumn(table: "dbo.Services", name: "SubcategoryID", newName: "Subcategory_SubcategoryID");
CreateIndex("dbo.Services", "Category_CategoryID");
AddForeignKey("dbo.Services", "Category_CategoryID", "dbo.Categories", "CategoryID", cascadeDelete: true);
Configuration.cs:
protected override void Seed(Workfly.Models.ApplicationDbContext context)
var categories = new List<Category>
new Category { CategoryName = "Sport" },
new Category { CategoryName = "Music" }
categories.ForEach(c => context.Categories.AddOrUpdate(p => p.CategoryName, c));
context.SaveChanges();
var subcategories = new List<Subcategory>
new Subcategory { SubcategoryName = "Football", CategoryID = categories.Single(c => c.CategoryName == "Sport").CategoryID },
new Subcategory { SubcategoryName = "Basketball", CategoryID = categories.Single(c => c.CategoryName == "Sport").CategoryID },
new Subcategory { SubcategoryName = "Piano", CategoryID = categories.Single(c => c.CategoryName == "Music").CategoryID },
new Subcategory { SubcategoryName = "Violin", CategoryID = categories.Single(c => c.CategoryName == "Music").CategoryID }
foreach (Subcategory s in subcategories)
var subcategoriesInDB = context.Subcategories.Where(c => c.Category.CategoryID == s.CategoryID).SingleOrDefault();
if (subcategoriesInDB == null)
context.Subcategories.Add(s);
context.SaveChanges();
var services = new List<Service>
new Service { ServiceType = "Football coach", SubcategoryID = subcategories.Single(s => s.SubcategoryName == "Football").SubcategoryID },
new Service { ServiceType = "Piano lessons", SubcategoryID = subcategories.Single(s => s.SubcategoryName == "Music").SubcategoryID }
foreach (Service s in services)
var servicesInDB = context.Services.Where(t => t.Subcategory.SubcategoryID == s.SubcategoryID).SingleOrDefault();
if (servicesInDB == null)
context.Services.Add(s);
context.SaveChanges();
} -
List blobs in a container based on time condition
Hi, Azure team,
Is possible to provide an api only return the list of blobs in a container in some Time Window (e.g, one hour, one day, etc.) from current timestamp. I found some related links to this topic, [I cannot post link here, please search keywords "Filtering
and deleting blobs in a container based on date and extension?" if you are interested in the link I found :)]
And find something in [I cannot post link here, please search keywords "List Blobs (REST API)" if you are interested in the link I found:)]while none of them discussed about how to get blobs in a container in some time window.
From the perspective of implementation, I assume there is some index for the blobs in the container, the index is probably based on hash, is there a plan to add another index based on the order (tree structure based index) to support this kind of query?
Best,
AdenHi,
I suggest you create a ticket to submit this issue to azure expert, I think you will be get professional advice, below is channel.
#http://azure.microsoft.com/en-us/support/options/
Hope this helps
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Re: Container Based Software Configuration Management
I've read the overview of Container Based Software Configuration Management and
have to admit that it is a nice concept. In fact, our SCM product SiberSafe Expert
2.0 (www.siberlogic.www) almost literally follows the guidelines mentioned in
the overview except that we call it Component Management.
SiberSafe recognizes the fact that most of software projects consist of software
components that have been inherited from and are being reused in other projects.
SiberSafe was built on the premise that it is critical to be able to version components
consisting of multiple files and folders so that a new project can be created
out of particular versions of multiple exising
components.
SiberSafe also recognizes the fact that various versions of various components
may be distributed not only across multiple projects, but also across multiple
lines of development (we call them "development streams"). This is why SiberSafe
makes the propagation of new versions of components from their "home" streams
into other streams where they are used and reused
as simple as a mouse button click.
When a few projects have a few development lines (streams) each and there are
tens or even hundreds of software components reused across these projects and
streams, it becomes pretty difficult to keep track of what went where and when.
What is the version of a specific java bean that our project currently uses? Is
there a newer version for that bean available? What verson of that bean do other
projects use? In order to provide users with
clear answers to this kind of questions SiberSafe automatically generates a visual
development flowchart that graphically shows relationships and interactions among
various components, component versions, projects and lines of development.
In fact, SiberSafe can easily generate such a flowchart even for a single file,
showing the full "travel" history of that file across projects and streams.
Alex Povzner,
SIBERLOGIC INC
www.siberlogic.com
905-4742384
Hans Thelosen <[email protected]> wrote in message
news:[email protected]...
On 16 and 17 May in Soesterberg (the Netherlands) a tool-independent
software configuration management training will be held.
In the last couple of years Software Configuration Management has grown toa
mature Software Engineering discipline with its own Functions, Methods and
Techniques. Container Based Software Configuration Management is a new
method for SCM that centralizes facilities for reuse and parallel
development of Software.
For more information see:
http://www.qa-systems.com/training/improvement_scm.jspAll,
There has been some uptake and some great feedback on rConfig since I made this announcement two weeks ago. rConfig is offically released as Version1 today. Please login to www.rconfig.com and download a copy.
You know, it takes less than 1 hour to install rConfig on Linux and more than 2 hours to get some of it's well known commercial counterparts up and running. There is even a complete, easy-to-follow Linux build document designed especially for the rConfig installation on www.rconfig.com. You'll be backing up Cisco configuration and show outputs in no time with rConfig. And even learning a bit of Linux along the way.
And remember, it's free & open source.
Regards
Stephen
==========================
http://www.rConfig.com
A free, open source network device configuration management tool, customizable to your needs! -
Device error "sequence contains no matching element"
Hallo,
I just received the VirtualBench and I could use it as I connect it for the first time. I then downloaded and run the program for Window7, so that I would be able to run the program from my PC.
Since then, I cannot work anymore more with the virtualbench. It always give the same error: device error: sequence contains no matching element.....
What it wronf what shall I do?
Note: I read a similar question, but it seemed that the error disppeared somehow for unexplained reason. So, there were actually no solution mentionned for this problem.
Thanks in advance for any support.
Solved!
Go to Solution.For anybody that has this problem in the future, we'd really like to get to the root of the problem. To help with that I have created a small utility that will pull the configurations from your device and save them to files. These configurations appear to be corrupted in these situations.
The easiest way to use the utility is to run it from the command line. It will find the first USB VirtualBench on your system and save any configuration files it has to your temporary directory. For example:
C:\Users\User\Desktop>nivb_cfgutil.exe
Saving files to C:\Users\User\AppData\Local\Temp\
Connecting to device 'vbzach'
Found config: ni-virtualbench-preferences.vbconfig
Wrote config to file C:\Users\User\AppData\Local\Temp\ni-virtualbench-preference
s.vbconfig
Found config: test_cfg.vbconfig
Wrote config to file C:\Users\User\AppData\Local\Temp\test_cfg.vbconfig
Found config: test_cfg2.vbconfig
Wrote config to file C:\Users\User\AppData\Local\Temp\test_cfg2.vbconfig
It also has some options that allow you to specify the device to connect to (either by name, IP address, or hostname), where to put the files, and whether or not to overwrite existing files on your PC. For example:
C:\Users\User\Desktop>nivb_cfgutil.exe --help
Usage: nivb_cfgutil.exe [options]
Main options:
-h, --help
Shows help.
-d, --dev=device
Device name to target.
-o, --out=directory
Output directory to save config files. If not specified, the temporary di
rectory is used.
-w, --overwrite
Overwrite existing files.
What we would like is that when people run into this issue they perform the following steps:
Attach the application preferences files:
Open a file explorer
In the address bar, enter this path (copy/paste can help):
XP: %USERPROFILE%\Local Settings\Application Data\National Instruments\NI-VirtualBench
Vista, 7, 8: %USERPROFILE%\AppData\Local\National Instruments\NI-VirtualBench
Attach the file ni-virtualbench-preferences.vbconfig to a post here so we can inspect it.
Run the nivb_cfgutil.exe utility attached to this post, and post any *.vbconfig files it creates to a post here so that we can inspect it.
Once you have done that, you should be able to fix the issue by doing the following:
Use the reset button on the back. The application also uses information stored on the PC when it starts. If the problem is there, then resetting the device alone won't help.
NI VirtualBench Help :: Reset Button http://zone.ni.com/reference/en-XX/help/371526A-01/vbhelp/wirelessbutton/
Launch the app. If it works, you're done.
If the issue was not resolved, you may also need to delete the file mentioned above.
Open a file explorer
In the address bar, enter this path (copy/paste can help):
XP: %USERPROFILE%\Local Settings\Application Data\National Instruments\NI-VirtualBench
Vista, 7, 8: %USERPROFILE%\AppData\Local\National Instruments\NI-VirtualBench
Delete the file ni-virtualbench-preferences.vbconfig
Zach Hindes
NI R&D
Attachments:
nivb_cfgutil.zip 991 KB -
What is the exact use of Sequence container
Hi all,
I am intermediate in SSIS package,i am not understanding what is the exact use of Sequence container ?
I am preparing for interview(3 years exp), if experts dont mind can you pls share some tips and questions to clear the interview ?
pls
thanksHi SelvakumarSubramaniam,
This blog delivers a good summary of the benefits we can get by using Sequence Container:
Easier debugging by allowing you to disable groups of tasks to focus package debugging on one subset of the package control flow.
Managing multiple tasks in one location by setting properties on a Sequence Container instead of setting properties on the individual tasks.
Provides scope for variables that a group of related tasks and containers use.
Create a transaction around all the components inside the container.
Here are some other good resources:
http://www.phpring.com/sequence-container-in-ssis/
http://sql-developers.blogspot.com/2010/06/sequence-container-in-ssis.html
Regards,
Mike Yin
TechNet Community Support -
Executing a sequence of mappings
Hello
I dont have a workflow schema or repository installed in my development server.
It is there in production server.
But i want to execute a sequence of mappings in development server
How can I do that?? Can it be done through SQLPLUS??
If yes.. how????
-NikitaNikita,
Do you mean to say that you are not Deploying Process Flows on your development box first?
Are you developing, validating on dev, and then deploying on the Production box?
Or, is it that you have a separate Workflow Server on the production box, and you got onto OWB only recently.
Anyway, you can ask a DBA to install Oracle Workflow 2.6 (OWB 9.2.x) into a schema (owf_mgr) onto your dev box/instance.
Then you can configure a new DAD (WFL_DAD_db) on the Oracle Apache server running on the dev box to see the Workflow in Action.
Quite simple. Just follow the docs. Let us know if you need more information.
- Jojo
- Jojo -
Function module to get the sequence numbers based on PERNR & payroll period
Hi,
Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
Thanks
SatyaI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
Infoset based on logical database CRC and customer field wrongly calculated
Hello,
I'm building an info-set (SQ02) based on logical database CRC. My requirement is to calculate a value based on the start date of the capacity allocated to a work center (KAKO-BEGZT).
I defined a customer field (named FIELD1) with data type I, defined in R-KAKO_A with the following coding :
FIELD1 = R-KAKO_A + 100.
After having built the query (SQ01), the field returns correctly the value for FIELD1 only if an interval is defined in the capacity of the work center. Without that, FIELD1 is always null.
Can you help ?
Thank youcapacity header data is linked to table KAZY (interval) - if there is no relevant record there, your field1 gets nothing
-
in sequence container i have three task one task have to made transaction Remaining three task made not transaction
Hi hari3109,
Just as Visakh said, we need to set the TransactionOption property of the container to ‘Required’ to enable transaction. The Required value means this container will cause a new transaction to be started unless the parent container already has a transaction,
in which case, the parent’s transaction will be joined. For more details about TransactionOption property, please see:
http://msdn.microsoft.com/en-IN/library/microsoft.sqlserver.dts.runtime.dtstransactionoption.aspx
Besides, we should follow there guidelines to decide whether and how to implement a transaction:
For transactions to be enabled in SSIS, you need to turn on the DTC service, and the tasks that you want to be part of the transaction must work with the DTC service natively.
If a series of tasks must be completed as a single unit, in which either all the tasks are successful and committed or an error occurs and none of the tasks are committed, then place the tasks within a Sequence Container, and then set the TransactionOption
property of the container to Required.
A task can inherit the transaction setting of its parent when the TransactionOption property is set to Supported, which is the default setting when creating a task or container.
You can prevent a task from participating in a transaction by setting its TransactionOp-tion setting to NotSupported.
Transactions work at the control flow level and not within a data flow. This means that you can turn on a transaction for a data flow task, but you cannot turn it on separately for selected components within the data flow; either the entire data process
will be successful or it will be rolled back.
For more information about Configuring Package Transactions in SSIS, please refer to the following document:
http://msdn.microsoft.com/en-us/library/cc304421.aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
How to hide folder in PCD with respect to other user
Hi, I want to hide some folder in PCD,suppose any other user enter into portal,he is not able to view the particular folder with out my permission. for eg."X" user hide one folder means,"Y" user not possible to view the hided folder. ca
-
How to search and replace a string in Excel Shape (textbox) using Powershell.
I have been asked to write a PS script to search/replace a string when found in Excel Shapes when they are textboxes. I have seen lots of simplistic PS scripts and even I can do a "foreach" loop through all the Shapes on a Sheet and display the Name
-
Adobe Photoshop cc has stopped working when saving file.
Whenever i save a file in Photoshop CC or i save as it crashes and gives me the "Adobe Photoshop cc has stopped working" so i cant use Photoshop CC for this reason. I have it sometimes with Illustrator CC as well. Please Advise.
-
A solution for Navigation Menu Problems
Many people have been complaining about iWeb messing up its rollover navigation menus at the top of each webpage. This phenomenon usually occurs when one has an existing site, and attempts to add another page to the site, thus requiring the menu at t
-
For the auto-tune in the MAX, I wanna to ask how many counts that the motors should be runned? Can I change the desired position? Regards, Ivan