Visio 2013 Stencil for BizTalk Server

Visio 2013 Stencil for BizTalk Server

Finally I’m happy with the final result and ready to release the first version of this new version of Visio 2013 Stencils for BizTalk Server This is a collection of 73 modern flat Visio 2013 shapes that will help you representing BizTalk Server physical architectures, Integration architectures (Cloud or Hybrid scenarios) or solutions diagrams in […]
Blog Post by: Sandro Pereira

Why Updated Platform Support Matters

Why Updated Platform Support Matters

This post is the fifth in a weekly series intended to briefly spotlight those things that you need to know about new features in BizTalk Server 2013. Each new version of BizTalk brings with it support for the latest Microsoft Operating System, Database Engine, and Integrated Development Environment. It is listed as a new feature […]
Blog Post by: Nick Hauenstein

Setting up BizTalk360 On Windows Azure (BizTalk IaaS) in One Click

Microsoft has recently announced the Windows Azure offering of BizTalk Server Infrastructure as a Service (Iaas). Windows Azure offers a BizTalk Server 2013 Evaluation version for anyone to try the new IaaS offering. The price for this VM is same as any Windows VM where other BizTalk Server flavours (Standard and Enterprise) cost you much […]

The post Setting up BizTalk360 On Windows Azure (BizTalk IaaS) in One Click appeared first on BizTalk360 Blog.

Blog Post by: Dhana Krishnasamy

“Extension functions cannot return null values.” Exception when running a map in BizTalk 2013

Upgrading a BizTalk project to a new version is always a smooth ride so when I upgraded a BizTalk 2010 application to BizTalk 2013 I wasn’t expecting many difficulties. 😉 Everything went as expected when I migrated to the new version in Visual Studio but when I tested the maps I got the Exception: “Exception has been thrown by the target of an invocation.” with the InnerException: “Extension functions cannot return null values.”
Nick Hauenstein from Quicklearn Training wrote the blog post What the BizTalk Server 2013 Mapper Updates Mean for You that pointed me in the right direction!  My custom Scripting functoid in the map returned null and in BizTalk 2013 it always must return something. 

 

Scripting Functoid  Error example

In this sample I’m going to map a SalesOrder message to a PurchaseOrder. I’ve used a Scripting functoid that calls the MapHelper class in an external assembly to format the Date. Also the Logical Existence functoid is used to test if the OrderDate field exists in the source message.
 
The FormatDateString method below returns null when the value of the OrderDate is empty because the default value of the result variable is null.
 
When the OrderDate field in the source message is empty, the FormatDateString method in the MapTester class is called because the Logical Existence functoid returns true.
Now you get the “Exception has been thrown by the target of an invocation.” exception because in a BizTalk 2013 map a method must return something when it is invoked and can not return null.
 

Testing

I’ve used the MapTester tool that I have created to test the map but I’d noticed that you couldn’t see much error information when an exception occurs.  
I’ve added the InnerException and StackTrace information from the exception so now you can see detailed error information in the info screen.

 

 

Conclusion

It took me a while to find out which functoid caused the exception because I was searching in the wrong direction but as always are Google and Bing in those cases your best friends!
The new version of the MapTester tool can be a great help when you want to test your maps because you can quickly see what the result message is or you get a red box with detailed error information in the info screen when an exception occurs.

You can download the new version of the MapTester tool with the source code here: http://code.msdn.microsoft.com/Execute-BizTalk-2013-maps-e8db7f9e

Deploying a Cloud Foundry v2 Application to New Pivotal Cloud Environment

Deploying a Cloud Foundry v2 Application to New Pivotal Cloud Environment

Cloud Foundry v2 has been talked about for a while – and being an open-source project, it’s easy to follow along with the roadmaps, docs, and source code – and now it’s being released into the wild. Cloud Foundry is shepherded by Pivotal (spun off from VMware earlier this year) and they have launched a […]
Blog Post by: Richard Seroter

BizTalk Community Series: Introducing Eldert Grootenboer

Recently I visited fellow Microsoft Integration MVP Nino Crudele in Italy and met with some of his fellow BizTalk colleagues. I am amazed by work Nino and his fellow country man put in for the (local) community and their customers. The same dedicated I see in my own country. One of them is Eldert Grootenboer. Today’s story is about him.

Eldert is 30 years old, and lives in Rijen in Brabant,