Getting error in using Upsert Method of .NET API


#1

Hi,

My Code :

Couchbase.Configuration.Client.ClientConfiguration cConf = new Couchbase.Configuration.Client.ClientConfiguration { PoolConfiguration = { MaxSize = 10, MinSize = 5 } };
cConf.Servers.Clear();
cConf.Servers.Add(new Uri(“http://localhost:8091/pools”));
ClusterHelper.Initialize(cConf);

            using (Cluster c = ClusterHelper.Get())
            {
                Couchbase.Management.IClusterManager cMa = c.CreateManager("user", "password");
                cMa.RemoveBucket("testbucket");
                IResult res = cMa.CreateBucket("testbucket", 100);
                if (!res.Success)
                {
                    //MessageBox.Show("Failed to create bucket.");
                    return;
                }

                IDictionary<string, string> objDictionary = null;
                XmlDocument xdoc;
                JToken obj = null;
                Couchbase.Core.IBucket bucket = null;
                bucket = c.OpenBucket("testbucket");

                xdoc = new XmlDocument();
                xdoc.Load(Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath) + @"\Data.xml");                   

                obj = JObject.Parse(JsonConvert.SerializeXmlNode(xdoc, Newtonsoft.Json.Formatting.None, true))["USERINFO"];


                if (obj.Type == JTokenType.Array)
                {
                    objDictionary = obj.ToDictionary(k => k.SelectToken("@UID").ToString(), v => v.ToString());
                }
                else
                {
                    objDictionary = new Dictionary<string, string>();
                    objDictionary.Add(obj.SelectToken("@UID").ToString(), obj.ToString());
                }

                var result = bucket.Upsert(objDictionary);
            }

In above code at “bucket.Upsert(objDictionary);” line I get an exception as below

System.AggregateException: One or more errors occurred. —> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Couchbase.Core.Buckets.VBucketKeyMapper.MapKey(String key) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Core\Buckets\VBucketKeyMapper.cs:line 43 at Couchbase.CouchbaseBucket.GetServer(String key, IVBucket& vBucket) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 98 at Couchbase.CouchbaseBucket.SendWithRetry[T](IOperation1 operation) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 115
at Couchbase.CouchbaseBucket.Upsert[T](String key, T value) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 358
at Couchbase.CouchbaseBucket.<>c__DisplayClass1c1.<Upsert>b__19(Tuple2 range, ParallelLoopState loopstate) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 601
at System.Threading.Tasks.Parallel.<>c__DisplayClass322.<PartitionerForEachWorker>b__30() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass11.<ExecuteSelfReplicating>b__10(Object param0) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](Partitioner1 source, Action2 body) at Couchbase.CouchbaseBucket.Upsert[T](IDictionary2 items) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 595
at GetRuleDetails_FromRuleXml.Program.Main(String[] args) in c:\WorkDrive\Utilities_By_Me\GetRuleDetails_FromRuleXml\GetRuleDetails_FromRuleXml\Program.cs:line 65
—> (Inner Exception #0) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Couchbase.Core.Buckets.VBucketKeyMapper.MapKey(String key) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Core\Buckets\VBucketKeyMapper.cs:line 43 at Couchbase.CouchbaseBucket.GetServer(String key, IVBucket& vBucket) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 98 at Couchbase.CouchbaseBucket.SendWithRetry[T](IOperation1 operation) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 115
at Couchbase.CouchbaseBucket.Upsert[T](String key, T value) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 358
at Couchbase.CouchbaseBucket.<>c__DisplayClass1c1.<Upsert>b__19(Tuple2 range, ParallelLoopState loopstate) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 601
at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.b__30()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)<—

—> (Inner Exception #1) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Couchbase.Core.Buckets.VBucketKeyMapper.MapKey(String key) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Core\Buckets\VBucketKeyMapper.cs:line 43 at Couchbase.CouchbaseBucket.GetServer(String key, IVBucket& vBucket) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 98 at Couchbase.CouchbaseBucket.SendWithRetry[T](IOperation1 operation) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 115
at Couchbase.CouchbaseBucket.Upsert[T](String key, T value) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 358
at Couchbase.CouchbaseBucket.<>c__DisplayClass1c1.<Upsert>b__19(Tuple2 range, ParallelLoopState loopstate) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 601
at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.b__30()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)<—

—> (Inner Exception #2) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Couchbase.Core.Buckets.VBucketKeyMapper.MapKey(String key) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Core\Buckets\VBucketKeyMapper.cs:line 43 at Couchbase.CouchbaseBucket.GetServer(String key, IVBucket& vBucket) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 98 at Couchbase.CouchbaseBucket.SendWithRetry[T](IOperation1 operation) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 115
at Couchbase.CouchbaseBucket.Upsert[T](String key, T value) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 358
at Couchbase.CouchbaseBucket.<>c__DisplayClass1c1.<Upsert>b__19(Tuple2 range, ParallelLoopState loopstate) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 601
at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.b__30()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)<—

—> (Inner Exception #3) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Couchbase.Core.Buckets.VBucketKeyMapper.MapKey(String key) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Core\Buckets\VBucketKeyMapper.cs:line 43 at Couchbase.CouchbaseBucket.GetServer(String key, IVBucket& vBucket) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 98 at Couchbase.CouchbaseBucket.SendWithRetry[T](IOperation1 operation) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 115
at Couchbase.CouchbaseBucket.Upsert[T](String key, T value) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 358
at Couchbase.CouchbaseBucket.<>c__DisplayClass1c1.<Upsert>b__19(Tuple2 range, ParallelLoopState loopstate) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 601
at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.b__30()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)<—

—> (Inner Exception #4) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Couchbase.Core.Buckets.VBucketKeyMapper.MapKey(String key) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Core\Buckets\VBucketKeyMapper.cs:line 43 at Couchbase.CouchbaseBucket.GetServer(String key, IVBucket& vBucket) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 98 at Couchbase.CouchbaseBucket.SendWithRetry[T](IOperation1 operation) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 115
at Couchbase.CouchbaseBucket.Upsert[T](String key, T value) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 358
at Couchbase.CouchbaseBucket.<>c__DisplayClass1c1.<Upsert>b__19(Tuple2 range, ParallelLoopState loopstate) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\CouchbaseBucket.cs:line 601
at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.b__30()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)<—

Is something wrong in the code ?
Any help with this would really help.

Thanks,
Amalraj


IBucket fails to Upsert immediately after bucket creation
#2

Hi @amalraj_charles

This seems to be an issue with the hashing of the key. The hash doesn’t correctly map to a vBucket, which is weird and could indicate a bug.

Can you show what the JSON object looks like? Especially the @UID field?

Can you also activate debug logging? You should see lines like "Using index {0} for key {1} - rev{2}" where {0} is the “bad” hash, {1} is the key you used and {2} a config revision number, which may tell us more about the problem.

@jmorris any other thought on that?
Simon


#3

Json is as below

{
“USERINFO”: [
{
"@UID": “User_7566”,
“ProfileID”: “7566”,
“ProfileName”: “POC_USER1”,
“MappedName”: “POC_USER1”,
“FirstName”: “POC”,
“LastName”: “User1”,
“DisplayName”: “POC_USER1”,
“ConnectionId”: “3”,
“type”: “UserAssignment”,
“Assignmentkeys”: [
{
"@ASSIGNMENTNO": “1”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “165114165114”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “AN0jqB32EIAy/ey57KnndeRZFMo=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_WRK.ACTVT.01”
},
{
"@ASSIGNMENTNO": “2”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “160547160547”,
“Attribute”: “BSART”,
“Value”: “AB”,
“AssignmentKey”: “SWLO8FLTD1qv4fTRRNtg2HjoMuY=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_BSA.BSART.AB”
},
{
"@ASSIGNMENTNO": “3”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “160547160547”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “TV9Lt/yOxP2K81LJZg9AzQrkgzI=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_BSA.ACTVT.01”
},
{
"@ASSIGNMENTNO": “4”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “165114165114”,
“Attribute”: “WERKS”,
“Value”: “’ '”,
“AssignmentKey”: “fJoUDl9M9KdPoHNkVzCHH2pyQZ4=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_WRK.WERKS.’ '”
},
{
"@ASSIGNMENTNO": “5”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “160548160548”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “gsqTMdbDboe0z9jFzEYgHFqdWDY=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKG.ACTVT.09”
},
{
"@ASSIGNMENTNO": “6”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “157987157987”,
“Attribute”: “EKORG”,
“Value”: “’ '”,
“AssignmentKey”: “oIWKFi4u9G3+vIrxZbOPYGSZ3eU=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKO.EKORG.’ '”
},
{
"@ASSIGNMENTNO": “7”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “160548160548”,
“Attribute”: “EKGRP”,
“Value”: “’ '”,
“AssignmentKey”: “yP2OyBxNc3zLVvcSBfE/xCgQ6i8=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKG.EKGRP.’ '”
},
{
"@ASSIGNMENTNO": “8”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “157987157987”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “+fMeimhhFodN9XDx1xNZP+pg1Gc=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKO.ACTVT.09”
}
]
},
{
"@UID": “User_7567”,
“ProfileID”: “7567”,
“ProfileName”: “POC_USER2”,
“MappedName”: “POC_USER2”,
“FirstName”: “POC”,
“LastName”: “User2”,
“DisplayName”: “POC_USER2”,
“ConnectionId”: “3”,
“type”: “UserAssignment”,
“Assignmentkeys”: [
{
"@ASSIGNMENTNO": “1”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “BSART”,
“Value”: “AB”,
“AssignmentKey”: “GwtMRPSEHKjTrbc2UWELnSfftT4=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_BSA.BSART.AB”
},
{
"@ASSIGNMENTNO": “2”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “EKORG”,
“Value”: “’ '”,
“AssignmentKey”: “JT939/Xeedzmq+zmzwW0mDWECQ8=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_EKO.EKORG.’ '”
},
{
"@ASSIGNMENTNO": “3”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “hXbIF6qYYj0leblL8ZcLyzKw8A4=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_WRK.ACTVT.01”
},
{
"@ASSIGNMENTNO": “4”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “EKGRP”,
“Value”: “’ '”,
“AssignmentKey”: “pMTU3PfMe2p55JGNB6Zcxbc0ukM=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_EKG.EKGRP.’ '”
},
{
"@ASSIGNMENTNO": “5”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “v11UgOtZ61r8dPsqFfwdXY6N7EM=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_EKG.ACTVT.09”
},
{
"@ASSIGNMENTNO": “6”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “WERKS”,
“Value”: “’ '”,
“AssignmentKey”: “zt+r5fllPHNig88vjS574eZpgcQ=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_WRK.WERKS.’ '”
},
{
"@ASSIGNMENTNO": “7”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “4DQ79Jkb6NPyxGspohrRNo56+98=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_BSA.ACTVT.01”
},
{
"@ASSIGNMENTNO": “8”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “7B/jBaQSsUBBnUAlOGIKVmoXEXQ=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_EKO.ACTVT.09”
}
]
},
{
"@UID": “User_7568”,
“ProfileID”: “7568”,
“ProfileName”: “POC_USER3”,
“MappedName”: “POC_USER3”,
“FirstName”: “POC”,
“LastName”: “User3”,
“DisplayName”: “POC_USER3”,
“ConnectionId”: “3”,
“type”: “UserAssignment”,
“Assignmentkeys”: [
{
"@ASSIGNMENTNO": “1”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “VbnRUHMbsusOtu8wTBx10DJ96r8=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_BSA.ACTVT.01”
},
{
"@ASSIGNMENTNO": “2”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “Vk2pLQg0C4mWhWtyJ3wIlOocGEk=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_EKG.ACTVT.09”
},
{
"@ASSIGNMENTNO": “3”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “EKGRP”,
“Value”: “’ '”,
“AssignmentKey”: “eZ+nKVvv+Ix0lcAUGbBngQGmSSs=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_EKG.EKGRP.’ '”
},
{
"@ASSIGNMENTNO": “4”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “WERKS”,
“Value”: “’ '”,
“AssignmentKey”: “jfuG457PWhOhY1d3zM47ga7LMJE=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_WRK.WERKS.’ '”
},
{
"@ASSIGNMENTNO": “5”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “EKORG”,
“Value”: “’ '”,
“AssignmentKey”: “n6I42HJ4xnnPirWdtBiPyMtNHJQ=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_EKO.EKORG.’ '”
},
{
"@ASSIGNMENTNO": “6”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “t6gP2G4Qyj7CerpzPuVI/PybXfo=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_EKO.ACTVT.09”
},
{
"@ASSIGNMENTNO": “7”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “BSART”,
“Value”: “AB”,
“AssignmentKey”: “wIYtClgB931VJRbi1WJNMKW4LKc=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_BSA.BSART.AB”
},
{
"@ASSIGNMENTNO": “8”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “+Jdnmjbp/WPsxIqZz2RVGKEbT0A=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_WRK.ACTVT.01”
}
]
},
{
"@UID": “User_7569”,
“ProfileID”: “7569”,
“ProfileName”: “POC_USER4”,
“MappedName”: “POC_USER4”,
“FirstName”: “POC”,
“LastName”: “User4”,
“DisplayName”: “POC_USER4”,
“ConnectionId”: “3”,
“type”: “UserAssignment”,
“Assignmentkeys”: [
{
"@ASSIGNMENTNO": “1”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “165114165114”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “AN0jqB32EIAy/ey57KnndeRZFMo=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_WRK.ACTVT.01”
},
{
"@ASSIGNMENTNO": “2”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “160547160547”,
“Attribute”: “BSART”,
“Value”: “AB”,
“AssignmentKey”: “SWLO8FLTD1qv4fTRRNtg2HjoMuY=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_BSA.BSART.AB”
},
{
"@ASSIGNMENTNO": “3”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “160547160547”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “TV9Lt/yOxP2K81LJZg9AzQrkgzI=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_BSA.ACTVT.01”
},
{
"@ASSIGNMENTNO": “4”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “VbnRUHMbsusOtu8wTBx10DJ96r8=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_BSA.ACTVT.01”
},
{
"@ASSIGNMENTNO": “5”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “Vk2pLQg0C4mWhWtyJ3wIlOocGEk=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_EKG.ACTVT.09”
},
{
"@ASSIGNMENTNO": “6”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “EKGRP”,
“Value”: “’ '”,
“AssignmentKey”: “eZ+nKVvv+Ix0lcAUGbBngQGmSSs=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_EKG.EKGRP.’ '”
},
{
"@ASSIGNMENTNO": “7”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “165114165114”,
“Attribute”: “WERKS”,
“Value”: “’ '”,
“AssignmentKey”: “fJoUDl9M9KdPoHNkVzCHH2pyQZ4=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_WRK.WERKS.’ '”
},
{
"@ASSIGNMENTNO": “8”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “160548160548”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “gsqTMdbDboe0z9jFzEYgHFqdWDY=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKG.ACTVT.09”
},
{
"@ASSIGNMENTNO": “9”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “WERKS”,
“Value”: “’ '”,
“AssignmentKey”: “jfuG457PWhOhY1d3zM47ga7LMJE=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_WRK.WERKS.’ '”
},
{
"@ASSIGNMENTNO": “10”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “EKORG”,
“Value”: “’ '”,
“AssignmentKey”: “n6I42HJ4xnnPirWdtBiPyMtNHJQ=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_EKO.EKORG.’ '”
},
{
"@ASSIGNMENTNO": “11”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “157987157987”,
“Attribute”: “EKORG”,
“Value”: “’ '”,
“AssignmentKey”: “oIWKFi4u9G3+vIrxZbOPYGSZ3eU=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKO.EKORG.’ '”
},
{
"@ASSIGNMENTNO": “12”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “t6gP2G4Qyj7CerpzPuVI/PybXfo=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_EKO.ACTVT.09”
},
{
"@ASSIGNMENTNO": “13”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “BSART”,
“Value”: “AB”,
“AssignmentKey”: “wIYtClgB931VJRbi1WJNMKW4LKc=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR2.M_BEST_BSA.BSART.AB”
},
{
"@ASSIGNMENTNO": “14”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “160548160548”,
“Attribute”: “EKGRP”,
“Value”: “’ '”,
“AssignmentKey”: “yP2OyBxNc3zLVvcSBfE/xCgQ6i8=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKG.EKGRP.’ '”
},
{
"@ASSIGNMENTNO": “15”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_CR1”,
“ParentRoleID”: “5109”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “+Jdnmjbp/WPsxIqZz2RVGKEbT0A=”,
“AssignmentKeyText”: “3.AI_RTE_POC_CR1.AI_RTE_POC_SR3.M_BEST_WRK.ACTVT.01”
},
{
"@ASSIGNMENTNO": “16”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR1”,
“RoleID”: “5110”,
“ParentRole”: “AI_RTE_POC_SR1”,
“ParentRoleID”: “5110”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “157987157987”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “+fMeimhhFodN9XDx1xNZP+pg1Gc=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR1.AI_RTE_POC_SR1.M_BEST_EKO.ACTVT.09”
}
]
},
{
"@UID": “User_7570”,
“ProfileID”: “7570”,
“ProfileName”: “POC_USER5”,
“MappedName”: “POC_USER5”,
“FirstName”: “POC”,
“LastName”: “User5”,
“DisplayName”: “POC_USER5”,
“ConnectionId”: “3”,
“type”: “UserAssignment”,
“Assignmentkeys”: [
{
"@ASSIGNMENTNO": “1”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “BSART”,
“Value”: “AB”,
“AssignmentKey”: “GwtMRPSEHKjTrbc2UWELnSfftT4=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_BSA.BSART.AB”
},
{
"@ASSIGNMENTNO": “2”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “EKGRP”,
“Value”: “’ '”,
“AssignmentKey”: “pMTU3PfMe2p55JGNB6Zcxbc0ukM=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_EKG.EKGRP.’ '”
},
{
"@ASSIGNMENTNO": “3”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_EKG”,
“AuthorizationID”: “165115165115”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “v11UgOtZ61r8dPsqFfwdXY6N7EM=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_EKG.ACTVT.09”
},
{
"@ASSIGNMENTNO": “4”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR2”,
“RoleID”: “5111”,
“ParentRole”: “AI_RTE_POC_SR2”,
“ParentRoleID”: “5111”,
“Authorization”: “M_BEST_BSA”,
“AuthorizationID”: “157988157988”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “4DQ79Jkb6NPyxGspohrRNo56+98=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR2.AI_RTE_POC_SR2.M_BEST_BSA.ACTVT.01”
}
]
},
{
"@UID": “User_7571”,
“ProfileID”: “7571”,
“ProfileName”: “POC_USER6”,
“MappedName”: “POC_USER6”,
“FirstName”: “POC”,
“LastName”: “User6”,
“DisplayName”: “POC_USER6”,
“ConnectionId”: “3”,
“type”: “UserAssignment”,
“Assignmentkeys”: [
{
"@ASSIGNMENTNO": “1”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “EKORG”,
“Value”: “’ '”,
“AssignmentKey”: “JT939/Xeedzmq+zmzwW0mDWECQ8=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_EKO.EKORG.’ '”
},
{
"@ASSIGNMENTNO": “2”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “ACTVT”,
“Value”: “01”,
“AssignmentKey”: “hXbIF6qYYj0leblL8ZcLyzKw8A4=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_WRK.ACTVT.01”
},
{
"@ASSIGNMENTNO": “3”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_WRK”,
“AuthorizationID”: “160549160549”,
“Attribute”: “WERKS”,
“Value”: “’ '”,
“AssignmentKey”: “zt+r5fllPHNig88vjS574eZpgcQ=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_WRK.WERKS.’ '”
},
{
"@ASSIGNMENTNO": “4”,
“ConnectionId”: “3”,
“ERP”: “SAP”,
“Role”: “AI_RTE_POC_SR3”,
“RoleID”: “5112”,
“ParentRole”: “AI_RTE_POC_SR3”,
“ParentRoleID”: “5112”,
“Authorization”: “M_BEST_EKO”,
“AuthorizationID”: “158260158260”,
“Attribute”: “ACTVT”,
“Value”: “09”,
“AssignmentKey”: “7B/jBaQSsUBBnUAlOGIKVmoXEXQ=”,
“AssignmentKeyText”: “3.AI_RTE_POC_SR3.AI_RTE_POC_SR3.M_BEST_EKO.ACTVT.09”
}
]
}
]
}


#4

Hi,

One more observation is that if I add

  System.Threading.Thread.Sleep(5000);

before
var result = bucket.Upsert(objDictionary);

it works successfully.

Thanks,
Amalraj


#5

@amalraj_charles -

What version of the client is this?

-Jeff


#6

I had tried with 2.0.1 and 2.0.2 both.


#7

@amalraj_charles -

From what i can see it’s a bug when create the bucket and execute queries directly afterward. If you try to Upsert into an existing bucket, it works as expected. I’ll create a ticket (or feel free to: https://issues.couchbase.com/browse/NCBC) a bit later.

-Jeff


#8

Ok thanks. How do i overcome this issue in current version i.e 2.0.2. Do you have any flag to check before I upsert documents in bucket.

When would a fix for this be available ?

  • Amalraj

#9

@amalraj_charles -

I did some additional debugging and the problem is that the bucket isn’t fully initialized yet when you try to open then bucket after just creating a bucket instance. What happens is that the client asks for a config and it doesn’t yet have a VBucket map defined, so it’s an empty list and thus when the key is hashed and the client tries to get a VBucket, it’s empty causing the KeyNotFoundException.

Your workaround by adding the sleep will solve the problem; just need to give the server a few seconds to create and initialize itself completely.

I also created a Jira ticket for a change in the client behavior when this situation is encountered; to track this add yourself as a watcher: https://issues.couchbase.com/browse/NCBC-819

-Jeff