Blogging BizTalk

Lets Discuss BizTalk

Tag Archives: A Correlation Set Can Be initialized Only Once

Error : There was an error when trying to connect. Do you want to retype your credentials and try again?


You may bump into this error while configuration UDDI service post installing and configuring BizTalk 2013 R2. Also this error will pop up during adapter pack installation. This error will also result in loosing your IIS settings .
—————————
Failed to connect
—————————
There was an error when trying to connect. Do you want to retype your credentials and try again?
Details:
Filename: C:\Windows\system32\inetsrv\config\schema\Microsoft.Adapters.SAP_schema.xml
Line number: 1
Error: Configuration file is not well-formed XML
—————————
Yes No
—————————
IIS error

Most likely is a installation glitch. The error is self explanatory in this case. Please go ahead and check the path “C:\Windows\system32\inetsrv\config\schema\” and notices the xml file sixe was 0 KB.

SAPSchemaMissing

Next open the BizTalk installation ISO file and look for the xml in the following location:
F:\BizTalk Server\AdapterPack_x64\Program Files\Microsoft BizTalk Adapter Pack(x64)\IIS Schemas
Copy over this file to the missing one.

Next type IISRESET in the search box of Windows server 2013 R2 and complete your IIS reset. Go ahead and retry configuring UDDI and installing BizTalk adapter pack and it should be successful.

IISReset

Advertisements

BizTalk Error “A Correlation Set Can Be initialized Only Once” : An alternative solution


So you bumped into this error while compiling your BizTalk project. The most obvious reason could be : You have a correlation set set initialized on more than one places by mistake.

Now here is the tricky part: What if you have initialized it only once but still you are getting this error. What could be wrong.

Here are the possible reason:
You are using a long running transaction loop (For example in the resume pattern : https://psrathoud.wordpress.com/2014/02/01/understanding-resume-pattern-in-biztalk/) and have initialized this correlation set in there ONCE :-). You see, even thou it is initialized once at run time it may be called more than one time, thus explaining the error.

Solution:
You need to define your correlation set in a non long running scope contained within your long running scope and that will fix the problem for you.

Let me know if you have questions.

Thanks
Pushpendra

D Goins Insperience

Technological outformation for this day and age

[INACTIVE BLOG] Connected Thoughts - Thiago Almeida

Connected systems and the occasional picture

Uri Katsir's Blog

BizTalk , BizTalk RFID and .NET

prashantbiztalkblogs

My BizTalk Experiences

BizTalk Server Tutorial

BizTalk Server Concepts and Common Errors

Extremely Talented Monkeys

A Technical Blog by Ed Jones: Azure, .NET, BizTalk, WCF, and SQL Server

On All Things Web

Discussing web development without limits

Vikas Bhardwaj's Blog

Articles about BizTalk Server and .NET C#

Cloud develop

a blog about (cloud) development... because I'm a nerd

Hooking Stuffs Together

My learning logs from day to day work experience about Integration platform using Microsoft technologies.

Connected Pawns

Mainly BizTalk & Little Chess

jhelatissimo

a blogger in the process.

MS Innovations Blog

Tips, Tricks, and Workarounds for BizTalk and other Microsoft technologies

srirambiztalks

Katradhu Kaialavu,Kalladhadhu Ulagalavu!

Vijay Microsoft Technical

BizTalk, WCF, ESB ToolKit, Windows Azure

Mind Over Messaging

Musings on BizTalk, Azure, and Enterprise Integration