IDE Error when editing PopulationDataSourceSettings property of SF ComboBoxEdit


Author
Message
Randy Ayers
Randy Ayers
StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)
Group: Forum Members
Posts: 4, Visits: 41
I'm trying to populate a combo box via a fill method of a business object.  When I click the "..." button of the PopulationDataSourceSettings property, I get the following error when SF is searching for all of the Business Objects:

ConstraintException
  Column 'value' is constrained to be unique.  Value 'BBS.Biz.Base.AuditBO' is already present.

Source     : System.Data

Stack Trace:
   at System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action)
   at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
   at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
   at System.Data.DataTable.InsertRow(DataRow row, Int32 proposedID, Int32 pos, Boolean fireEvent)
   at System.Data.DataRowCollection.Add(DataRow row)
   at MicroFour.StrataFrame.Extensibility.ListPopulationEditorDialog.ᜂ()
   at MicroFour.StrataFrame.Extensibility.ListPopulationEditorDialog.ᜁ(Object A_0, EventArgs A_1)

After I close the error message, the SF dialog is there, but with no Business Objects or methods to choose from.  Can someone please advise on what might be causing this error? Thanks in advance.

Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Randy,

Try rebuilding your project first.  Also whenever you make a change to your BO, or when coming back from the Business Object Mapper (BOM) it is a good idea to rebuild your BO class library, or your solution, so all the typed changes are updated.

Edhy Rijo

Randy Ayers
Randy Ayers
StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)
Group: Forum Members
Posts: 4, Visits: 41
Edhy,

Thanks for the suggestions.  I did try rebuilding my projects, but the same result occured. 

FWIW, I removed the .BusinessObject property that was being specified for the combo box and the error does not occur.  Any ideas? BigGrin

Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Randy,

Taking a second look at your error, it may be that you don't have the correct SF assemblies or something in that route.  If you have updated your copy of SF, make sure you also update the SF database from the installation, you can do this as many times as you want, just reinstall SF and select the checkbox to update your SF database. 

If that is the case, download the latest beta release which is pretty stable from the Posted Release forum.

P.S.

At this point I am just guessing based on the error, I am sure Trent or somebody else from SF Team will jump in and give you a direct answer, but there is nothing wrong with trying to reinstall SF.

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Well, the problem is that you have two business objects with the exact same name and namespace within your project.  It sounds like you have a reference within your application that has a BO with this name and namespace and then another within the project itself.  That is the only way I think that this could actually happen.  Regardless, you will need to resolve this within your application otherwise you are going to have a lot of issues with ambiguous references.
Michael Reese
Michael Reese
StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
I am having the exact same issue. I searced through the entire project for a the duplicate BO without finding it? I know that I did not create a duplicate?

Any additional ideas?

ConstraintException
  Column 'value' is constrained to be unique.  Value 'Trax_System.aBOCustomer' is already present.

Source     : System.Data

Stack Trace:
   at System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action)
   at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
   at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
   at System.Data.DataTable.InsertRow(DataRow row, Int32 proposedID, Int32 pos, Boolean fireEvent)
   at System.Data.DataRowCollection.Add(DataRow row)
   at MicroFour.StrataFrame.Extensibility.ListPopulationEditorDialog.ᜂ()
   at MicroFour.StrataFrame.Extensibility.ListPopulationEditorDialog.ᜁ(Object A_0, EventArgs A_1)

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
We actually traced and reproduced this the other day, so I know that the environment sees two BOs with the same name and namespace.  You may want to check your references, do a clean solution, etc. and go at it from that approach.  You may not have created a second instance, but your AppDomain and environment may see two references.  This can happen if you have residue out in your Bin folder (or some other folder in the path) and the reference sees a different BO instance that you are expected (i.e. a project reference).

If you use source control, make sure everything is checked in, delete your local work folder, then get everything back from source control.  Do a Clean Solution, then you may want to remove and re-add your references.  Then once you  make these changes, rebuild the solution (not just a build), get out of VS and come back in.  That is where I would start.

Michael Reese
Michael Reese
StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Well, I looked for the phantom BO and could not find it so I deleted the BO that already exist and created new one with a different name. Cleaned, rebuilt , uloaded/reloaded VS and then I got the dreaded message again. This time for the new BO???

Michael

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Michael,



The phantom BO isn't likely in source... it is some how in your dev environment (i.e Visual Studio is messin' with ya). Don't look for the BO, you likely won't find it. Rather follow Trent's advise, make sure you are checked in to source control, then do a fresh check out (after deleting the existing) and then do a clean and rebuild (not a build). This has cleaned up a lot of these issues for me past.



Hope this helps.
Michael Reese
Michael Reese
StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)StrataFrame User (405 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Thanks Greg,

Think I got it fixed? However, I thought that I had it fixed before only to have dup show up again with the new BO w00t.

This is the gift that keeps on giving!!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search