Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 7th, 2003, 06:03 AM
Authorized User
 
Join Date: Jun 2003
Location: Winchester, Hampshire, United Kingdom.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email about mapping issue

Hi,

Someone sent me an email directly about a mapping issue which I mistook for an email alert from my subscription to this forum, so I deleted it but then found nothing on the forum. Therefore, apologies for not replying to the email (was it from you, reddynet?).

Anyway, the problem was where BizTalk Mapper did not give an error, but running a document through the channel produced an error message, stating that an element could not be empty or something like that.

I have found this inconsistency between Mapper and the channel before, and it has always been where the mapping has created an instance of the [u]Destination</u> document that does not meet its specification. The error message in this case suggests that a mandatory element has not been created by the mapping.

Run the test mapping in Mapper again, looking at the output tab for any missing fields that ought to be there. Compare the output with sample output generated from the BizTalk Editor for the destination document specification.

If you can't see anything obvious there, you can go into the BizTalk Administration utility, find your document in the Suspended Queue and right-click on it to select the "View Document" option. From the resulting (and annoyingly small) window that does not word-wrap, you can copy the document data into NotePad and save it as a document instance which you can then validate against the destination document specification via BizTalk Editor.

However, if your destination document is a non-XML format such as EDIFACT, you may find that the "View Document" option shows you the internal XML representation of the document, rather than the native format. In this case, you are back to looking at the XML representation of the document for a missing field. If you have BizTalk Server 2002, the Editor will allow you to create an XML instance from a non-XML specification, which you can use for comparison with the XML representation of the error document from the channel.

And yes, it is going to waste a lot of your time, which could have been saved if the missing element name had simply been reported in the error message. Perhaps BTS 2004 will be more helpful?

Hope this helps,

Ramin
Reply With Quote
  #2 (permalink)  
Old July 7th, 2003, 06:11 AM
Registered User
 
Join Date: Jun 2003
Location: Bangalore, Karnataka, India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ramin,
If you change a map (or a document) after referencing it in a channel then you have to refresh the channel again else the changes won't be reflected ( i faced this problem earlier & did this). Simplest way to refresh is open the channel -> click next, next & finish.

Pradeep Murti
Reply With Quote
  #3 (permalink)  
Old July 7th, 2003, 08:34 AM
Authorized User
 
Join Date: Jun 2003
Location: Winchester, Hampshire, United Kingdom.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Pradeep,

It is true that you need to refresh the channel when you change a document or mapping, however I don't think that was the cause of the problem that was initially emailed to me.

BTW, if you have BTS 2002 you can also use the new BizTalk Refresh Messaging Manager Tool to refresh documents, envelopes and channels much more quickly. The utility is "...\Microsoft BizTalk Server\SDK\Messaging Samples\Refresh Messaging Manager\BTM_Refresh.exe". It saves a lot of time when you change something that is used in several places.

Ramin
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
O/R mapping many to many relationship popoxinhxan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 August 17th, 2006 11:18 PM
O/R mapping s_sana General .NET 0 April 12th, 2005 06:34 AM
Issue sending HTML file as attachment in EMail kdhawan_forum VB Components 0 April 8th, 2005 02:02 PM
Mapping SID Anantsharma SQL Server 2000 2 February 10th, 2005 04:32 AM



All times are GMT -4. The time now is 10:25 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.