UIX v2 GetObjectDataOfMultipleObjects fails with "Unspecified error. Something went wrong" errorCode -2147467259

From a UIX v2 JavaScript dashboard instance I am calling

GetObjectDataOfMultipleObjects

https://developer.m-files.com/Frameworks/User-Interface-Extensibility-Framework/Reference/gRPC/Interfaces/ObjectOperations/GetObjectDataOfMultipleObjects/

to retrieve object data for related objects and occasionally (but reproducibly) the call fails with the following error:

{
    "name": "Something went wrong",
    "message": "Unspecified error.",
    "errorCode": -2147467259,
    "innerExceptionCode": -2147467259,
    "stack": "GrpcProxy.IRPCObjectOperations.generated.cpp, 4501, Unspecified error. (0x80004005)\r\nCoGrpcProxy_IRPCObjectOperations.generated.cpp, 4454, Unspecified error. (0x80004005)\r\nGrpcProxy_Protobuf_IRPCObjectOperations.generated.cpp, 9449, Unspecified error. (0x80004005)\r\nGrpcProxy_Protobuf_IRPCObjectOperations.generated.cpp, 9492, Unspecified error. (0x80004005)\r\nGrpcProxyImpl_Struct_IRPCObjectOperations.cpp, 1912, Unspecified error. (0x80004005)\r\n(M-Files 24.11.14245.5 2025-01-23T11:07:43.082Z)",
    "version": "24.11.14245.5",
    "timestamp": "2025-01-23T11:07:43.082Z",
    "statusCode": 500
}

The request object for that call was:

{
    "obj_vers": [
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 383,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 1,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 265,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 17,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 383,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 1,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 377,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 6,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 380,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 2,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 381,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 2,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 352,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 3,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 349,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 4,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        },
        {
            "obj_id": {
                "type": 10,
                "item_id": {
                    "internal_id": 363,
                    "external_repository_id": {
                        "connection": "",
                        "item": ""
                    }
                }
            },
            "version": {
                "type": 4,
                "internal_version": 3,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        }
    ],
    "data_request": {
        "required_data_flags": {
            "all": false,
            "object_version": true,
            "properties": true,
            "acl": false,
            "current_user_permissions": false,
            "properties_for_display": false,
            "relationships": false,
            "collection_member_relationships": false,
            "object_activities": false
        },
        "error_tolerance": 1,
        "identity_type": 1,
        "object_activities_parameters": {
            "category_filter": {
                "all": false,
                "metadata": false,
                "file_content": false,
                "comments": false
            },
            "limit": 0,
            "offset_obj_ver_version": {
                "type": 7,
                "internal_version": 0,
                "external_repository_version": "",
                "external_repository_sort_key": 0
            }
        }
    }

I have not tried to figure out what condition exactly triggers the above error. Do you already have a bug report on this issue?

It could be due the request object containing the same obj_vers twice (type 10, ID 383) – this is due to it being returned by a prior call to GetObjectDataOfMultipleObjects as a related object with different values for direction.

 

Obviously, it would be helpful to have a more specific error message.

  • I don't have specific knowledge of this, but I suspect it's because of the duplicate(s).  It should be easy to test by replicating this with only two items in the collection - both for the same thing.  You probably need to filter those out prior to the call.

  • I can confirm, after deduplicating the request object the error no longer is thrown and the call returns the expected result.

  •   I am trying to run this in my case but the result is not what I espect. I have error_info not empty and the fields are empty. I espected to have the last version of my object with all properties

    console.log("objId", objId);
    try {
    const resultsObjectOperations = await Vault.ObjectOperations.GetObjectDataOfMultipleObjects({
    obj_vers: [
    {
    "obj_id": objId,
    "version": {
    "type": 7,
    "internal_version": 1,
    "external_repository_version": "",
    "external_repository_sort_key": 0
    }
    }
    ] /* Array of ObjVer */,
    data_request: {
    required_data_flags: {
    all: true,
    object_version: true,
    properties: true,
    acl: false,
    current_user_permissions: true,
    properties_for_display: true,
    relationships: true,
    collection_member_relationships: true,
    object_activities: true,
    },
    error_tolerance: 1 /* Enum: ObjectVersionDataRequestErrorTolerance */,
    identity_type: 0 /* Enum: ObjectVersionDataRequestIdentityType */,
    object_activities_parameters: {
    category_filter: {
    all: false,
    metadata: false,
    file_content: false,
    comments: false,
    },
    limit: 0,
    offset_obj_ver_version: {
    type: 7 /* Enum: ObjVerVersionType */,
    internal_version: 0,
    external_repository_version: "",
    external_repository_sort_key: 0,
    },
    },
    },
    });
    console.log("resultsObjectOperations", resultsObjectOperations);

    -----------------------------------------------------------RESULT--------------------------------------