Error with User Profile services


Error with User Profile services

The server encountered an unexpected error in the synchronization engine:

“BAIL: MMS(268): eafam.cpp(1510): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): eafam.cpp(901): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): eafam.cpp(1013): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): amexec.cpp(1701): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): amexec.cpp(2086): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): eaf.cpp(1417): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): eaf.cpp(657): 0x80230304 (The image or dimage already has an attribute with that name.)

ERR: MMS(268): synccoreimp.cpp(5266): 0x80230304 – export-flow failed 0x80230304

BAIL: MMS(268): synccoreimp.cpp(5267): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): synccoreimp.cpp(4858): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): synccoreimp.cpp(10873): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): synccoreimp.cpp(10557): 0x80230304 (The image or dimage already has an attribute with that name.)

BAIL: MMS(268): synccoreimp.cpp(2545): 0x80230304 (The image or dimage already has an attribute with that name.)

ERR: MMS(268): synccoreimp.cpp(6483): 0x80230304 – MV to CS synchronization failed 0x80230304: [{F81CD149-ADC9-4720-89E2-E9CBD2CE39A9}]

BAIL: MMS(268): synccoreimp.cpp(6486): 0x80230304 (The image or dimage already has an attribute with that name.)

ERR: MMS(268): syncmonitor.cpp(2515): SE: Rollback SQL transaction for: 0x80230304

MMS(268): SE: CS image begin

MMS(268): SE: CS image end

Forefront Identity Manager 4.0.2450.34″

The Microsoft article does not actually describe the problem nor the solution, yet it is very simple .

The FIM engine [That is the Sync engine described in the message] is the Forefront Identity Manager

The problem is : One or more properties are being overwritten by mistake to the temp storage by the Sync engine.

In my case ( and the most common one ) it was the AD Attributes (Both with Import direction )

AD Attribute “Title” – > SP Profile “Title”

AD Attribute “Title” – > SP Profile “Job Title”


Solution : If the Microsoft solution does not do it for you (like it didn’t work for me)

  1. Simply remove both mappings.
  2. Do a full Profile Sync.
  3. Add the first mapping and Do full profile sync (monitor errors)
  4. Add the Second mapping and do full profile sync (monitor errors)

Thank you Google ….. and Microsoft.

Best of luck.

InfoPath SharePoint FormServer error 5566


The Error code 5566 is very common, and if you get that error

“ An error occurred querying a data source.

Click OK to resume filling out the form. You may want to check your form data for errors.
 Hide error details
 System.Xml.XmlException: There are multiple root elements. Line 2, position 2 ……………………..  “

Code 5566 is a very common error when performing cross web services calls

The Problem is more of a server architecture issue ( on a single sever farm configuration you may not have those issues)

The Root causes

  1. Name resolution
  2. Certificate validation errors
  3. UAG or any Url Filter or traffic parsing engines (F5 Big-IP and the like.)

The cause can be one or all of the above.

Simply to understand the problem, you need to understand how InfoPath handles this type of traffic.

  1. Client ( C  ) requests a form operation from form server ( S )
  2. S read the template from the same server or the document library or storage .
  3. S builds a temp map in memory for the current user of the form rules and code for the duration of the session.
  4. S Execute the operation (read, update, or new) form.
  5. C render on InfoPath Client or Browser (thin client )
  6. S terminates session.

Where things break

At steps 1, 2, 3 and 4

Problem Solution
1 [1] C resolve the server as [IP x.y.z.w] but Sresolves as different IP and server encounter a template or form load error but does not report it to the user Try to browse the data connection urls from the server itself  and check if you encounter any problem , resolve accordingly(In some cases internal DNS record does not match the proper configuration  use hosts file entry to manually force the session to the same server)
2 [1] If you are behind a proxy or load balanced farm Try to configure it so that the server sessions are bound to a single server for the same client.
3 [1] If you are using a public name and internal name using AAM Make sure you are resolving the correct IP inside and outside the proxy/firewall see Item 1
4 [2] S can’t load the form or the template That should not cause 5566 but it will be more descriptive If you are using a proper proxy configuration , but in some cases where the proxy configuration is not correct this will show as error 5566
5 [3] If you have dynamic links for services that gets compiled at load You need to debug this by loading this form on the same server.
6 [3] If you are using SSL certs Make sure your server can validate the certificate or disable certificate validation.
7 [4] If read new or  update  operation Check the on load rules and see if those generate certain other web services or list connections that cause this issue and handle as in item 1 above

Best of Luck

SHAREPOINT 2010 SERVICES CRASHES POST WINDOWS OS UPGRADE


SharePoint 2010 Services crashes post windows OS Upgrade

Attempted to upgrade one of my development machines from Windows 2008 Server Standard server into Windows 2008 Server Standards R2

And got a slew of errors (but thank God for VM snapshots )

Here are the errors and the fix.

OWSTimer.exe Timer service crashing.

 

System.IO.FileNotFoundException Occurred in SPUCHostService.exe


System.IO.FileNotFoundException Occurred in SPUCWorkerProcessProxy.exe

 


 

System.IO.FileNotFoundException Occurred in WebAnalyticsService.exe


System.IO.FileNotFoundException Occurred in OWSTimer.exe

 

 


 

 

The PROBLEM:

It is mainly a version incompatibility with the Windows Identity Foundation

The SOLUTION:

You need to install this version, of Windows Identity framework ( the one that matches the new OS level)

Windows6.1-KB974405-x64 downloads from TechNet.

http://www.microsoft.com/en-us/download/details.aspx?id=17331

 

You can force install this package using the SharePoint ISO or deployment media , (rerun the Prerequisite installer)

 

And of course (REBOOOOOOOOOOOOOOOOOOOOT)

(If you have multiple Servers in the farm .you will need to do the same on each member server no matter what the role is .)

 

[Run the SharePoint Products Configuration wizard]

 


Also make sure you run the windows updates and install all the needed updates.

Best of luck.

SharePoint Issues post service pack /Cumulative updates or if you add or remove a member to the SharePoint Farm


SharePoint Issues post service pack /Cumulative updates or if you add or remove a member to the SharePoint Farm

I have had those in the SharePoint 2007 years but didn’t expect that with SharePoint 2010 the DEC 2011 cumulative update.

But here is a way to fix it

(run from the command prompt at the 14\bin\ as an administrator) or better, run the SP management PowerShell console as administrator and run the following command)

Note: the command is harmless but the farm might not be accessible during execution.

It performs a forced upgrade and that should clear all errors on Central Administration or any others encountered during the configuration wizard upgrade.

psconfig -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures



This phase may take a while (depending on how large it your databases)



Make sure you are able to get to Central administration after this task completes

This has been a life saver in many cases

Best of luck

SharePoint Search for Boolean property values Issues


Very interesting , issue that I came across a few times and wasted some more time each time ( I guess I am getting old)

The Problem :

SharePoint search ( advanced webpart ) does not recognize the syntax for the boolean values

While the search refinement panel does work fine and ale to filter the result set on the boolean value just fine.

but it looks like that problem here is somthing like this.

On you Search

<PropertyDef Name=”CarIsBlue” DataType=”boolean” DisplayName=”Blue Cars only”/>

If you Select

[“Blue Cars Only”      is true ]

you don’t get any .

but the reverse of that works just fine

[“Blue Cars Only”      is false ]

You can detect that by checking the search syntax on the http request (url ) at the result page.

http://MyServer.Domain/SearchPage.aspx?k=CarIsBlue

No Results

and If you select the false option

http://MyServer.Domain/SearchPage.aspx?k=-CarIsBlue

All Results

It is not a problem if documented (I guess) , so here is the Microsoft official documentation

http://msdn.microsoft.com/en-us/library/ms541692.aspx

A Discussion here

http://social.technet.microsoft.com/Forums/en-ZA/sharepoint2010customization/thread/7404d94a-14ab-4383-b133-fcd879768e7c

Temporary solution that works fine

this so called literal can be cast

so

You can define the search property query as a string while it is acutally a boolean.

so ,

In your property definition you can change that to

<PropertyDef Name=”CarIsBlue” DataType=”text” DisplayName=”Blue Cars only”/>

and Ask the users to type is the value (True , true , TRUE , Yes or yes)

that should work fine.

I hope the 2010 (or 201x version)  search engine folks can find a solution

Thanks

MISSING SEARCH 2010 WEBPARTS


Missing Search 2010 webparts

Problem :

After migrating a SharePoint farm from MOSS 2007 to SharePoint 2010 the search webpart gallery is missing the new webparts (mainly the search refinements and people refinement , that what i was looking for .


The missing webparts are :

  • Refinement.webpart
  • PeopleRefinement.webpart
  • QuerySuggestions.webpart


The Solution :

The at the site collection level (Site collection administration) you will need to activate a feature


The feature name is :
Search Server Web Parts

Note : while you might see that feature already activated , (post migration ), you will need to deactivate and reactivate to add the new webparts to the new gallery

Also note :

You can read through this msdn article on how to copy the webparts across multiple site collections.

http://msdn.microsoft.com/en-us/library/ff512796.aspx

Best of luck