Get error in assign activity

i am getting an error in assign activity

RemoteException wrapping System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

@tejaswi_nerella

The error refers to specified key does not exist. Could you check once entered key is present or not.

yeah i check

Hi @tejaswi_nerella,

Can you please check whatever the name are passing is in Double Quotes or not.

Best!!
Anmol

yeah…

@tejaswi_nerella There could be two reasons for this:
1. The item that you are looking to pull from Queue item isn’t available/present/defined in the queue. Double-check the spelling/blank spaces.

2. Make sure the filed that you are trying to pull is passed in double quotes.

@tejaswi_nerella - So you are fetching the data from transaction. Can you please check that there is any entity present for any transaction with name “First_Name” in Orchestrator.

Best!!
Anmol

hi @RishiVC1
I tried all methods still i don’t where i did a mistake…

Hi @ tejaswi_nerella,

go to your variable panel and see if you have all under same scope.

hi @Luis261980 All are in same scope

@tejaswi_nerella,

read this i think can help you:

https://support.microsoft.com/en-sg/help/3096482/system-collections-generic-keynotfoundexception-error-and-azure-ad-man

Symptoms
When you run a Full Import or a Delta Import on the Microsoft Azure Active Directory (Azure AD) Connector, one of the following actions occur:

The following error is logged in the Application log:

FIMSynchronizationService Event 6801
The extensible extension returned an unsupported error.
The stack trace is:
“System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetConnectorSpaceEntryChange(SyncObject syncObject)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntriesCore()
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntries(GetImportEntriesRunStep getImportEntriesRunStep)
You receive the following error message:

DirectorySynchronization Event 109:
Failure while importing entries from Windows Azure Active Directory. Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetConnectorSpaceEntryChange(SyncObject syncObject)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntriesCore()
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntries(GetImportEntriesRunStep getImportEntriesRunStep).

Resolution
To resolve this problem, select the missing object type (device). To do this, follow these steps:

Open Management Agent for the Azure AD directory in the Forefront Identity Manager (FIM) Sync console.
Click Connectors, and then click Azure Active Directory.
In the Actions pane, click Properties.

Note The Properties window opens.

Under Connector Design, click Select Object Types.
In the Select Object Types pane, locate and then select the device check box.
Click OK three times.