SSIS: Scripts in package part not being executed when target server is 2016SSIS File System Task Copy File...
Is the "hot network questions" element on Stack Overflow a dark pattern?
How to create a cover page like this?
Is candidate anonymity at all practical?
Why does Python copy numpy arrays where the length of the dimensions are the same?
Who, if anyone, was the first astronaut to return to earth in a different vessel?
Taking an academic pseudonym?
How do I add numbers from two txt files with Bash?
Arbitrary Interval Ruler
Unions, aliasing and type-punning in practice: what works and what does not?
Can neural cryptanalysis be applied to AES?
What happens if you declare more than $10,000 at the US border?
Why did Shae (falsely) implicate Sansa?
Is it possible to make a dynamically risizing filesystem-as-file?
As per hinduism, does life span of human depends on his respiratory breaths?
How can guns be countered by melee combat without raw-ability or exceptional explanations?
How to run a binary file from crontab?
Father gets chickenpox, but doesn't infect his two children. How is this possible?
Lost citations on Scholar
What's the relationship between the chords Cmaj Dmaj Emaj?
I hate taking lectures, can I still survive in academia?
Manager has noticed coworker's excessive breaks. Should I warn him?
Hands-Free Methods of Firing Arrows for Flying Soldiers
Why do atoms emit a certain colour of light? (The emission spectra)
Why does the includeonly command not stepcounter the chaptercounter for omitted chapters?
SSIS: Scripts in package part not being executed when target server is 2016
SSIS File System Task Copy File Could not find part of the path errorError while executing SSIS package which contains Script component through SQL Server Agent JobRunning Excel Macro Code by SSIS package configured with SQL Server Job agentMSSQL: Export Wizard, not possible to save SSIS PackageFault Finding SSIS “Unexpected Termination” - SQL Server 2016SSIS FTP Package job fails when scheduling through SQL Server Agent jobSource - ODBC is not compatible with this version of the DataFlowUpgrading SSIS Packages to 2017SSIS package deployed to SQL Server hangs when running a Powershell scriptSSIS Package when executed via agent job or manually on SQL Server does nothing, but shows it completed successfully. What gives?
I am having an issue with SSIS packages where scripts included in package parts ar not executed when the target server version is SQL Server 2016.
Create an SSIS project, set target server version to SQL Server 2016 (very important!)
Go ahead and add a simple script in the default Package. This should work fine.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
- However I tested this issue with other scripts Something like:
MessageBox.Show("Great. Another bug. Thanks a lot guys...");would do.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
Create a package part.
Now just try re-creating the simple script from step 2 into the package part. Then add the package part onto the default Package or another package and execute the task. Even though the execution is successful, the script is not executed.
NOTE: If you try to copy the script from the default package into the package part, you should also notice a moronic error saying that the version is wrong. This is why I say to re-create the script in the package part.
I wonder if anyone could reproduce this issue and if there is a way around it? Worth noticing that this issue doesn't seem to happen when the target server is SQL 2017.
sql-server ssis-2016
add a comment |
I am having an issue with SSIS packages where scripts included in package parts ar not executed when the target server version is SQL Server 2016.
Create an SSIS project, set target server version to SQL Server 2016 (very important!)
Go ahead and add a simple script in the default Package. This should work fine.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
- However I tested this issue with other scripts Something like:
MessageBox.Show("Great. Another bug. Thanks a lot guys...");would do.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
Create a package part.
Now just try re-creating the simple script from step 2 into the package part. Then add the package part onto the default Package or another package and execute the task. Even though the execution is successful, the script is not executed.
NOTE: If you try to copy the script from the default package into the package part, you should also notice a moronic error saying that the version is wrong. This is why I say to re-create the script in the package part.
I wonder if anyone could reproduce this issue and if there is a way around it? Worth noticing that this issue doesn't seem to happen when the target server is SQL 2017.
sql-server ssis-2016
1
I've been looking into the code of the package part and it seems that script code is not saved properly.
– pmdci
17 hours ago
add a comment |
I am having an issue with SSIS packages where scripts included in package parts ar not executed when the target server version is SQL Server 2016.
Create an SSIS project, set target server version to SQL Server 2016 (very important!)
Go ahead and add a simple script in the default Package. This should work fine.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
- However I tested this issue with other scripts Something like:
MessageBox.Show("Great. Another bug. Thanks a lot guys...");would do.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
Create a package part.
Now just try re-creating the simple script from step 2 into the package part. Then add the package part onto the default Package or another package and execute the task. Even though the execution is successful, the script is not executed.
NOTE: If you try to copy the script from the default package into the package part, you should also notice a moronic error saying that the version is wrong. This is why I say to re-create the script in the package part.
I wonder if anyone could reproduce this issue and if there is a way around it? Worth noticing that this issue doesn't seem to happen when the target server is SQL 2017.
sql-server ssis-2016
I am having an issue with SSIS packages where scripts included in package parts ar not executed when the target server version is SQL Server 2016.
Create an SSIS project, set target server version to SQL Server 2016 (very important!)
Go ahead and add a simple script in the default Package. This should work fine.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
- However I tested this issue with other scripts Something like:
MessageBox.Show("Great. Another bug. Thanks a lot guys...");would do.
- In my case I have a script that sends an email using SendGrid service via SMTP. You can see the code here: https://pastebin.com/DW3hfBP3
Create a package part.
Now just try re-creating the simple script from step 2 into the package part. Then add the package part onto the default Package or another package and execute the task. Even though the execution is successful, the script is not executed.
NOTE: If you try to copy the script from the default package into the package part, you should also notice a moronic error saying that the version is wrong. This is why I say to re-create the script in the package part.
I wonder if anyone could reproduce this issue and if there is a way around it? Worth noticing that this issue doesn't seem to happen when the target server is SQL 2017.
sql-server ssis-2016
sql-server ssis-2016
edited 10 hours ago
Tony Hinkle
2,4181422
2,4181422
asked 17 hours ago
pmdcipmdci
3851313
3851313
1
I've been looking into the code of the package part and it seems that script code is not saved properly.
– pmdci
17 hours ago
add a comment |
1
I've been looking into the code of the package part and it seems that script code is not saved properly.
– pmdci
17 hours ago
1
1
I've been looking into the code of the package part and it seems that script code is not saved properly.
– pmdci
17 hours ago
I've been looking into the code of the package part and it seems that script code is not saved properly.
– pmdci
17 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230073%2fssis-scripts-in-package-part-not-being-executed-when-target-server-is-2016%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230073%2fssis-scripts-in-package-part-not-being-executed-when-target-server-is-2016%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I've been looking into the code of the package part and it seems that script code is not saved properly.
– pmdci
17 hours ago