You might be surprisd to see unknown error messag while you are deploying the bizTalk maps using Visual studio or deploy maps directly using add as resource. I googled nearly 1 day to find a right fix but could't find any.
I could find a un expected error as detailed below.
Error :
Failed to deploy map "MyTestMapName".
Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.
Error 140 at Microsoft.BizTalk.Deployment.Assembly.BtsMap.Save()
at Microsoft.BizTalk.Deployment.Assembly.BtsArtifactCollection.Save()
at Microsoft.BizTalk.Deployment.Assembly.BtsAssembly.Save(String applicationName)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.PrivateDeploy(String server, String database, String assemblyPathname, String applicationName)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.Deploy(Boolean redeploy, String server, String database, String assemblyPathname, String group, String applicationName, ApplicationLog log)
Solution :
What I could find here was, you might be referring the wrong
schemas at source or destination of your map. I am really surprised how
map does not recognize the Schemas when they were not in list.
Step1 : deleted all .cs class for each map which you have at solution
Step2 : re- refer the source and destination schemas
Step3: Clear Bin folders and Rebuild and Deploy the solution.
It worked for me with above steps, hope you can solve it too.
Drop a comment if this article helped you to solve your problemYou can reach me @ raj.webjunky@yahoo.com
In my case I got that error because the project that contains the Target Schema was not deployed yet, I deploy it and it work fine for me.
ReplyDeleteIf your schemas are in different projects than map project, deploy those projects First.
hope this may help :)