SSIS Error Code 0xC002F304 and its solution

Error code :

Code: 0xC002F304     Source: Web Service Task Web Service Task     Description: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not generate the proxy for the specified Web service. The following errors were encountered while generating the proxy: Source file 'C:\Windows\TEMP\2d0vea3n.0.cs' could not be found  No inputs specified  .     at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)     at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".  End Error  Error: 2010-12-03 11:09:52.72  

When it will Occur :
 when we are using web service Task in ssis package and that package is used to create a Sql agent Job.

Soltion :
we need to Make sure that the account that the job is running under (the proxy account) has write permissions to C:\Windows\TEMP.

If support team is not agreeing to do any writes on System folder .

web service task will use the temp directory settings from the user’s profile/environment (%TEMP%). We need to  specify a new directory by changing the TEMP environment variable value for the user account running the package.


To move the TEMP/TMP folders in a clustered environment
1.     Log on to a node in the cluster as the Cluster service account.
2.     Right-click My Computer and select Properties.
3.     Select Advanced.
4.     Click Environment Variables.
5.     In the User variables for <account name> area, select TEMP and click Edit.
6.     In the Variable value field, enter the new path for the TEMP environment variable and click OK.
7.     In the User variables for <account name> area, select TMP and click Edit.
8.     In the Variable value field, enter the new path for the TMP environment variable and click OK.
9.     Click OK to close the Environment Variables dialog box and OK once more to close the System Properties dialog box.
10.  Restart the node to apply the change.
11.  Repeat steps 1 through 10 for each node in the cluster.
12.   
The solution for the issue is we need to set the Temp variable path of the Account with which the Job runs  to the Desired location apart from System folders. There is an issue with Web service task . The web service task internally takes the Temp environment variable path to store the 1.dll file , 1 .out file and 1 .err file . after the Package suceesfully executed the .dll file is removing by the package , but the other 2 files are left at that folder . if we are executing frequently the files will occupy the entire temp folder . The web service Task should remove the other 2 files also when it is executed successfully .  Microsoft need to handle this in next version.

Comments

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces