Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:17:41+00:00 2026-06-01T23:17:41+00:00

The Error from the execute sql task is The type of the value being

  • 0

The Error from the execute sql task is

The type of the value being assigned to variable “User::ReturnResult” differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.

The SSIS package was working fine till date but suddenly it showed an error today .

The script which i wrote in execute sql task is

Declare @ReturnValue int
EXEC @ReturnValue =   DATABASE.dbo.StoredProcedure
Select @ReturnValue

The result set is configured to single row and in the resultset

ResultName= 0
VariableName=User::ReturnResult

The return value from the stored proc is either 0 or -1 ( Success or failure )
Since it is a production issue i dont have access to SP or the tables . So can this error occur due to connection issue with the Sybase server or its an issue with the Stored proc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:17:42+00:00Added an answer on June 1, 2026 at 11:17 pm

    Your error message is telling you that the stored proc is no longer returning just the 0 or -1 you are expecting (could it be returning null?)

    Use a tool like sql server profiler to verify the parameters being passed into the stored proc and emulate the same steps to understand why the return type is different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$data = $mysqli->prepare(SELECT amount FROM items WHERE id=:id); echo 'forward1'; if(!$data->execute(array(':id' => $id))) die(error
I get the following error from the SQL Script I am trying to run:
How do you throw an error from within an MSBuild task and force the
I get a very unhelpful SQL error from Railo when trying to do an
I have what should be a simple task - Populate a user variable using
Running this code DECLARE @SQL VARCHAR(2500) = '''SELECT z.* from openrowset(''''SQLNCLI'''',''''Server=server;UID=user;PWD=pwd;'''', ''''SELECT distinct x.PackageName
How can I recognize a fetch error or empty result from a execute error
I'm getting an Error from Debugger: Error launching remote program: security policy error when
I get a parse error from Safari with this code: for (var i=0; i<parent.frames.length;
I got this error from XCode: objc[8422]: FREED(id): message release sent to freed object=0x3b120c0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.