Showing posts with label Metadata. Show all posts
Showing posts with label Metadata. Show all posts

Tuesday, December 29, 2015

Error - The Managed Metadata Service 'Managed Metadata Service Application' is inaccessible or not working

Problem:

If you receive a Message at "Event Viewer" with something like this:

"The Managed Metadata Service 'Managed Metadata Service Application' is inaccessible."

Follow the steps bellow!


Solution:


  1. Go to “Central Administration” and select “Manage service applications”.
  2. Select "Managed Metadata service application" (outside the name)  (Picture 1)
  3. Then click on "Properties” (Picture 1)
  4.  (Picture 1)
  5. Save your "Database name" (Picture 1)
  6. Append "_temp" to the "Database name", so it will be "SPT13PRD_SvcApp_Metadata_temp" in my case.
  7. Confirm if the change took affect. If not repeat. (In my case It took twice).
  8. Wait 5 minutes.
  9. Do the Step 6 but instead of append, remove the "_temp".
  10. Repeat Step 7.
  11. Wait 1 minute, so changes take affect.
  12. Select Administrators (Picture 1 - Left of "Manage") and add the SharePoint Administrators Accounts (At least your User).
  13. Finish


You should be able to use your manage Metadata Service.

Have a nice Day!

Sunday, November 3, 2013

Error The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator

When accessing Managed Metadata Service the following message is prompt:

"The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator"

I have done everything that i found on internet on Production and Quality SharePoint Environment and no solution worked for my Production Environment

What i have done:
  • Verify the “Managed Metadata Web Service” is "started". Reset several times..
  • Recreate the Service Application “Menaged Metadata Web Service”. Set full Permissions on and all others services account in hope it will work..but it didn't happen. It's not permissions issue.
  • Publish the same Service Application
  • Verify the Service Application Association have Managed Metadata Service is checked.
  • Dedicated Application Pool
  • Several iisresets

1 - Solution for Quality Environment: Create a new dedicated Application Pool 
  1. Go to Central Administration
  2. Click Application Management, then Manage Service Applications
  3. Select Managed Metadata Service and click Properties
  4. Create a new Application Pool



2 - Solution for Production Environment: Reattach Managed Metadata Database
This took me a harder solution.

  1. Go to SQL Server detach "Managed Metadata Database". Note: Select "Close Connection" option
  2. In Central Administration, Delete "Managed Metadata Service Application"
  3. Note: DO NOT Delete data associated with the Service Applications, You are deleting YOUR Database!!!
  4. Create a new Managed Metadata Service Application with a different name from the original DatabaseNote: Select the check-box "Add this service application to the farms default list".
  5. Take the newer database offline and close connections(At the end of this solution, this DB can be deleted)
  6. Do an attach of the original database
  7. At Central Administration, go to properties of managed Metadata and change the name to the original Database
  8. Do an iisreset






Tuesday, June 7, 2011

How to get a Term Metadata Taxonomy

Como encontrar o termo no arquivo de Metadata:

TaxonomySession session = new TaxonomySession(properties.Web.Site);
TermStore termStore = session.TermStores["Serviço de Metadados Geridos"];
Group group = GetByName(termStore.Groups, "Colecção de Sites - server");
TermSet termSet = group.TermSets["Categoria"];//Metadata value
TermCollection tc = termSet.GetAllTerms();
Term t = tc["Programas"];

Ops using Microsoft.SharePoint.Taxonomy;

;)) Assim consegui-mos o Term/termo.

SetFieldDefault Metadata - term default na folder/pasta ou field/campo

Para definir um term default na folder/pasta ou field/campo com metadata, utilizamos:

string term="";
MetadataDefaults metaDefault= new MetadataDefaults(properties.List);
SPFolder folder = web.GetFolder(properties.Web.GetFolder("http://server/site/folder"));
term = "2070;#Programas|bc943091-79ac-4f5f-a79b-205e8e717823";
metaDefault.SetFieldDefault(folder, "Categoria", term);


Term/Termo é composto por:
lcid
;#Term Name|Guid of term

LCID = Language code ID - How to get LCID
Guid of term = Term.id - How to get Guid of Term and term

Hope it helps ;))