Unable to set a new value in an extended property from within a For Each Loop

Unanswered Question
Mar 2nd, 2012

Setting a new value in an extented property fails when the property is dereferenced within a For Each loop usin the item  iterator. However, if you use the First or Last Iterators from the Find Targets activity works fine.

The error message is : "Setting a value for this object type is not allowed"

I believe this is a defect, can you please confirm

Extended Properties Operations Error.jpg

Extended Properties Operations.jpg

Extended Properties Operations 2.jpgUntitled.jpg

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
meisenst Fri, 03/02/2012 - 09:08

Hi Juan,

Can you also post an image of the for-each loop configuration?

juacosta Fri, 03/02/2012 - 09:28

Mike,

Thanks alot for looking into the post.

I added the screen shot and attached a TAP with the process in the pictures

svkryuko Fri, 03/02/2012 - 09:35

Looks like a bug that needs to be reported.

While we are figuring out the issue you can work around the bug.

Add another "Find Targets" inside the loop, and use the ID of the current item in the loop to find the target (again) by ID.

And then use Set Variable on the target that was just found...

I know... Not an ideal workaround, so please open a Severity 4 bug for this.

juacosta Fri, 03/02/2012 - 10:29

Svetlana,

Thanks a lot for the work arround. I will implemented it, open the defect

Actions

Login or Register to take actions

This Discussion

Posted March 2, 2012 at 9:05 AM
Stats:
Replies:4 Avg. Rating:
Views:817 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard