Distinguished Fields -- Construct Shape
Hi All,

Trying the set some values of message by reading from SSO, 
I have promoted the fields as distinguished and assign values in construct shape

getting SSO in Expression
strAgency= SSOClientHelper.SSOClientHelper.Read("BTSApplication", "AgencyName");

I have map generates DestMessage before the construct

Contruct shape
DestMessage.Security.Agency=strAgency;

But Getting Error Use of Unconstructed Message 'DestMessage'
Error 141 'DestMessage': message has not been initialized in construct statement

Any suggestions
September 3rd, 2015 4:23am

can you provide a snapshot of your orchestration?

Do you have ONE Construct Shape with TWO shapes (Transform followed by Assignment) or do you have TWO Construct shapes (one with Transform and One with Assignment). IMHO the later is the probable cause of this error.

Regards.

  • Marked as answer by BTS User 22 hours 24 minutes ago
  • Unmarked as answer by BTS User 22 hours 24 minutes ago
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 4:32am

Hi BTSUser,

This is happening because you have created a message(by map) and now you are trying to modify the message without initializing it. This error is because messages are immutable and you are trying to modify the message.

Try moving the message assignment shape into the construct shape below the transform shape. 

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Regards

Rahul Madaan

biztalkvillage.blogspot.com

September 3rd, 2015 5:55am

Hi,

You are getting this error in the Contrcut shape where you are using:

DestMessage.Security.Agency=strAgency;

Move the "Message Assignment shape" containg the above expression in the "Construct Shape" that contains the map that generates the DestMessage after the "Transform Shape".

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Rahul

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 6:31am

can you provide a snapshot of your orchestration?

Do you have ONE Construct Shape with TWO shapes (Transform followed by Assignment) or do you have TWO Construct shapes (one with Transform and One with Assignment). IMHO the later is the probable cause of this error.

Regards.

  • Marked as answer by BTS User Thursday, September 03, 2015 8:40 AM
  • Unmarked as answer by BTS User Thursday, September 03, 2015 8:40 AM
September 3rd, 2015 8:26am

can you provide a snapshot of your orchestration?

Do you have ONE Construct Shape with TWO shapes (Transform followed by Assignment) or do you have TWO Construct shapes (one with Transform and One with Assignment). IMHO the later is the probable cause of this error.

Regards.

  • Marked as answer by BTS User Thursday, September 03, 2015 8:40 AM
  • Unmarked as answer by BTS User Thursday, September 03, 2015 8:40 AM
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 8:26am

Hi BTSUser,

This is happening because you have created a message(by map) and now you are trying to modify the message without initializing it. This error is because messages are immutable and you are trying to modify the message.

Try moving the message assignment shape into the construct shape below the transform shape. 

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Regards

Rahul Madaan

biztalkvillage.blogspot.com

  • Proposed as answer by SMSVikasK 22 hours 10 minutes ago
September 3rd, 2015 9:49am

Hi BTSUser,

This is happening because you have created a message(by map) and now you are trying to modify the message without initializing it. This error is because messages are immutable and you are trying to modify the message.

Try moving the message assignment shape into the construct shape below the transform shape. 

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Regards

Rahul Madaan

biztalkvillage.blogspot.com

  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:53 AM
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 9:49am

Hi BTSUser,

This is happening because you have created a message(by map) and now you are trying to modify the message without initializing it. This error is because messages are immutable and you are trying to modify the message.

Try moving the message assignment shape into the construct shape below the transform shape. 

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Regards

Rahul Madaan

biztalkvillage.blogspot.com

  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:53 AM
  • Marked as answer by BTS User 22 hours 17 minutes ago
September 3rd, 2015 9:49am

Hi BTSUser,

This is happening because you have created a message(by map) and now you are trying to modify the message without initializing it. This error is because messages are immutable and you are trying to modify the message.

Try moving the message assignment shape into the construct shape below the transform shape. 

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Regards

Rahul Madaan

biztalkvillage.blogspot.com

  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:53 AM
  • Marked as answer by BTS User Tuesday, September 08, 2015 8:43 AM
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 9:49am

Hi BTSUser,

This is happening because you have created a message(by map) and now you are trying to modify the message without initializing it. This error is because messages are immutable and you are trying to modify the message.

Try moving the message assignment shape into the construct shape below the transform shape. 

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Regards

Rahul Madaan

biztalkvillage.blogspot.com

  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:53 AM
  • Marked as answer by BTS User Tuesday, September 08, 2015 8:43 AM
September 3rd, 2015 9:49am

Hi,

You are getting this error in the Contrcut shape where you are using:

DestMessage.Security.Agency=strAgency;

Move the "Message Assignment shape" containg the above expression in the "Construct Shape" that contains the map that generates the DestMessage after the "Transform Shape".

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Rahul

  • Proposed as answer by SMSVikasK 22 hours 11 minutes ago
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 10:25am

Hi,

You are getting this error in the Contrcut shape where you are using:

DestMessage.Security.Agency=strAgency;

Move the "Message Assignment shape" containg the above expression in the "Construct Shape" that contains the map that generates the DestMessage after the "Transform Shape".

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Rahul

  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:52 AM
September 3rd, 2015 10:25am

Hi,

You are getting this error in the Contrcut shape where you are using:

DestMessage.Security.Agency=strAgency;

Move the "Message Assignment shape" containg the above expression in the "Construct Shape" that contains the map that generates the DestMessage after the "Transform Shape".

Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

Rahul

  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:52 AM
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 10:25am

Hi BTSUser,

Configure the messages constructed property (Transform shape - destination message)

Construct shape

- Transform Shape.

- Assignment shape with your expression.

Looks like 

Mapping and Assigning values to fields

Note

Make sure that the field you are trying to update is constructed in mapping.

Thanks, SMSVikasK

  • Edited by SMSVikasK 13 hours 20 minutes ago
September 4th, 2015 7:32am

Hi BTSUser,

Configure the messages constructed property (Transform shape - destination message)

Construct shape

- Transform Shape.

- Assignment shape with your expression.

Looks like 

Mapping and Assigning values to fields

Note

Make sure that the field you are trying to update is constructed in mapping.

Thanks, SMSVikasK

  • Edited by SMSVikasK Friday, September 04, 2015 5:47 PM
  • Proposed as answer by SMSVikasK 22 hours 11 minutes ago
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 11:20am

Hi BTSUser,

Configure the messages constructed property (Transform shape - destination message)

Construct shape

- Transform Shape.

- Assignment shape with your expression.

Looks like 

Mapping and Assigning values to fields

Note

Make sure that the field you are trying to update is constructed in mapping.

Thanks, SMSVikasK

  • Edited by SMSVikasK Friday, September 04, 2015 5:47 PM
  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:51 AM
September 4th, 2015 11:20am

Hi BTSUser,

Configure the messages constructed property (Transform shape - destination message)

Construct shape

- Transform Shape.

- Assignment shape with your expression.

Looks like 

Mapping and Assigning values to fields

Note

Make sure that the field you are trying to update is constructed in mapping.

Thanks, SMSVikasK

  • Edited by SMSVikasK Friday, September 04, 2015 5:47 PM
  • Proposed as answer by SMSVikasK Saturday, September 05, 2015 8:51 AM
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 11:20am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics