Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Validation error appears in API 1.12.3

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fa__
      last edited by

      I am currently using i-doit 1.18.2 OPEN and API 1.12.3.
      In this setup, there are some API calls that fail and that used to work in my previous i-doit version. They are still working in the i-doit demo.

      The API response includes the error: "The provided property is virtual and can not be updated via API. Please provide a valid definition."
      I have not been able to find anything in the changelog that suggests why this may happen. I have not found any reference to virtual properties in the Knowledge Base either.

      The API call that fails are the following.

      • Creating 'C__CATS__FILE_VERSIONS' including 'file_content' property
      {
          "version": "2.0",
          "method": "cmdb.category.save",
          "params": {
              "object": 3628,
              "category": "C__CATS__FILE_VERSIONS",
              "apikey": "XXXXX",
              "language": "en",
              "data": {
                      "file_title": "file.txt",
                      "file_physical": "file.txt",
                      "file_content":"VGhpcyBpcyBhIHRlc3QgZmlsZS4NClRoaXMgaXMgYSB0ZXN0IGZpbGUuDQpUaGlzIGlzIGEgdGVzdCBmaWxlLg0KVGhpcyBpcyBhIHRlc3QgZmlsZS4NClRoaXMgaXMgYSB0ZXN0IGZpbGUuDQpUaGlzIGlzIGEgdGVzdCBmaWxlLg=="
                  }
          },
          "id": 1
      }
      

      Error:

      {
          "id": 1,
          "jsonrpc": "2.0",
          "error": {
              "code": -32603,
              "message": "Internal error: There was an validation error",
              "data": {
                  "file_content": "(The provided property is virtual and can not be updated via API. Please provide a valid definition.) "
              }
          }
      }
      
      • Creating C__CATG__NETWORK_PORT including 'addresses' property
      {
        "version": "2.0",
        "method": "cmdb.category.save",
        "params": {
          "apikey": "XXXXX",
          "language": "en",
          "object": 1334,
          "category": "C__CATG__NETWORK_PORT",
          "data": {
            "title": "eth0",
            "port_type": "Ethernet",
            "addresses": 209
          }
        },
          "id": 1
      }
      

      Error:

      {
          "id": 1,
          "jsonrpc": "2.0",
          "error": {
              "code": -32603,
              "message": "Internal error: There was an validation error",
              "data": {
                  "addresses": "(The provided property is virtual and can not be updated via API. Please provide a valid definition.) "
              }
          }
      }
      
      Michael HuhnM 1 Reply Last reply Reply Quote 0
      • Michael HuhnM Offline
        Michael Huhn @fa__
        last edited by

        Hey @fa__,

        both Bugs are solved with the Hotfix you can find on the Knowledge Base here a direct link to the Hotfix

        I will create new Bug Tickets for these Bugs since they are not created yet, but they are fixed with the HF.

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fa__ @Michael Huhn
          last edited by

          Thank @Michael-Overkamp!

          I confirm that the hotfix solves the issue.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post