This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Rest API create Document Object error

Dear all,

Please help me out!

I'm deployment a system connect to M-Files via Rest API. M-files version is:  23.6.12695.4

With M-Files UAT environment (i just install with package download from M-Files website), API working well.

But with M-Files Production, when i call API create Document Object receive error bellow:

{
    "ErrorCode": "13",
    "Status": 500,
    "URL": "/objects/0",
    "Method": "POST",
    "Exception": {
        "Name": "COMException",
        "Message": "Class was not specified.",
        "InnerException": {
            "Name": "MFilesException",
            "Message": "Class was not specified.",
            "StackText": "Error reference ID: 85c96180-f05d-4070-a5c4-b8945f869f28",
            "ErrorCode": "13"
        }
    },
    "Stack": "Error reference ID: 85c96180-f05d-4070-a5c4-b8945f869f28",
    "Message": "Class was not specified.",
    "IsLoggedToVault": true,
    "IsLoggedToApplication": true,
    "ExceptionName": "COMException"
}

Here is my request:

API: {{MFWSUrl}}/objects/0?checkIn=true

Method: POST

Body:

{
    "PropertyValues": [
    {
        "PropertyDef": 0,
        "TypedValue": {
            "DataType": 1,
            "Value": "Frame kit (Push cart/Tables)"
        }
    },
    {
        "PropertyDef": 1058,
        "TypedValue": {
        "DataType": 9,
        "Lookup": {
            "Item": 16,
            "Version": -1
        }
    }
    },
    {
        "PropertyDef": 1486,
        "TypedValue": {
            "DataType": 9,
            "Lookup": {
                "Item": 96,
                "Version": -1
            }
        }
    }
    ],
    "Files": [
    {
        "Extension": "pdf",
        "Size": 95858,
        "Title": "ADMISSION-REQUESTS-AR23-0001",
        "UploadID": 1
    }
    ]
}

Parents Reply Children