Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Error: Attribute is not multi-valued, but has multiple results! ( etc:attribute:instrumentationData:instrumentationDataInstanceLastUpdate )

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Error: Attribute is not multi-valued, but has multiple results! ( etc:attribute:instrumentationData:instrumentationDataInstanceLastUpdate )


Chronological Thread 
  • From: Julio Polo <>
  • To: "Black, Carey M." <>
  • Cc: Gouper Users List <>
  • Subject: Re: [grouper-users] Error: Attribute is not multi-valued, but has multiple results! ( etc:attribute:instrumentationData:instrumentationDataInstanceLastUpdate )
  • Date: Tue, 27 Mar 2018 08:58:02 -1000
  • Ironport-phdr: 9a23:0In1JhWezKLkbqcNq884rbScmo/V8LGtZVwlr6E/grcLSJyIuqrYYx2Ht8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KpwVhTmlDkIOCI48GHPi8x/kqRboA66pxdix4LYeZyZOOZicq/Ye94RWGhPUdtLVyFZAIy8YYsBAeQCM+hFsYfyu0ADogGiCQS2Hu7j1iNEi33w0KYn0+ohCwbG3Ak4EtwKrXTUqNT1NKAPWu6vy6nIyTLDZO5R1Df/9YjIdhEhofaXULJwa8XQx1MgFwLEjlmKt4PqIi6V2/0LvmOG7ORgTfqih3Ampg1toDWiw8ksh4rSiY4Jz13J+jl1zJooKdC9VEF3fcWrHZ5Vui2EOYZ7QsUvSHxytikg0L0Jo5u7cTAKyJs5wx7fbOSKc42S7RLiUOadODZ4hG55dL6miBe+70atx+3mWsm711ZKqSVFkt3SuXwXyxPT7c2HRuN8/kenxzmPyxje5v9FLEwol6fWLpAhz70rmZYPtEnOETP6lFnrgKKTakoo5vOn5uHib7n4qJKRN5d4igTkPaQvnsy/D/44Mg8LX2WD++S8ybnj/Uz+QLhRjv05iKfYv4rbJcQavKK2HRJa0ps75xalEzimyMgYnWUALF9ddxKHlY/pO0zWIP/mF/ezmkmskCx1yPDcJb3sGZHNLnnYkLf9ZrZx9VRQyAs1zdBD+Z1UELcBL+zvWkPvrtDXEAI2MxHni9rgXZ9X0ooVWibHKaaDPbKalBnCrrYlJ+CHZ8lM4m3VLOM4ofPikClqt0UaePyLwJ8WbziAGfBhaxGbfH7thf8BGHgDvwt4QeD33g7RGQVPbmq/CvpvrgowD5irWMKaHtig

We're running Grouper 2.2.2 and have come across this as well.  I was thinking that maybe this was caused by a faulty database export-import that was done to migrate to our current version of Grouper, but if someone else is experiencing it, maybe it's a bug.

We've always used attributeAssignOperation=assign_attr (not add_attr) and attributeAssignValueOperation=replace_values (not assign_value or add_value) for this attribute.  The bug only revealed itself after another developer team started using this attribute, and they may have strayed from those parameters (while attribute definition remained single-valued)

Since the issue only manifested itself for a particular group, we fixed it by temporarily changing the attribute definition to multi-valued, and ensuring all code used assign_attr and replace_values.  After replacing the multiple values with a single one, we changed the definition back to single-valued.

-julio


On Tue, Mar 27, 2018 at 4:24 AM, Black, Carey M. <> wrote:
I miss-clicked on the "UiV2Main.miscellaneous" list of functions and clicked on "Instrumentation". I was promptly presented with this error msg. (and nothing else)

"
Error: Attribute is not multi-valued, but has multiple results!
etc:attribute:instrumentationData:instrumentationDataInstanceLastUpdate,
 AttributeAssignValueDelegate[ attributeAssign=AttributeAssign
        [id=0f5b3b35b1764fde9f7a37f9ba7b9831,action="assign,attributeDefName=etc:attribute:instrumentationData:instrumentationDataInstanceLastUpdate,ownerAttributeAssignId=20245cda30f14b7d9ee6197668c50bfe]],
        size: 2,
 Problem calling method instrumentation on edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Admin
"

I understand what the error is saying. However:
        I don't know how the system came to be in this state. ( At this point, I assume due to some automated process that went sideways. )
                Is this a known bug at some patch level? Result of a failed process? (loader job? I2 Instrumentation?)
        I don't know the right way to fix this either.
                Track down where the multiple assignment(s) are remove (one? All?) them?
                Change the attribute to be multi-valued?
                What is the downside to those actions?

If more information is needed then please send gsh/sql commands/UI click paths/files to grep/etc....
        I would be glad to poke around . ( Just give me the right stick to poke with.)  :)

Thanks in advance.
--
Carey Matthew





Archive powered by MHonArc 2.6.19.

Top of Page