Event Rule saved and returned by GET event rules but not visible in GUI
Hello Team,
Nx version : 6.1.2.42921
I'm facing an issue with event rule creation.
I'm able to create a rule thanks to : ec2/saveEventRule with these data :
{
"eventType": "GenericEvent",
"eventCondition": "{\"eventType\":\"GenericEvent\",\"caption\":\"Fullscreen\",\"description\":\"PorteA\"}",
"eventState": "active",
"actionType": "openLayoutAction",
"actionParams": "{\"layoutId\":\"{43b97659-824a-4b65-b9e2-c312862f4b29}\"}",
"disabled": false,
"comment": "creation viewer test",
"schedule": "",
"system": false
}
It returns me an id in the response.
{
"id": "{dc06584c-c813-4685-ab63-1a722e5167dd}"
}
Then I'm able to see my rule thanks to /ec2/getEventRules
…,
{
"actionParams": "{\"layoutId\":\"{43b97659-824a-4b65-b9e2-c312862f4b29}\"}",
"actionResourceIds": [],
"actionType": "openLayoutAction",
"aggregationPeriod": 0,
"comment": "creation viewer test",
"disabled": false,
"eventCondition": "{\"eventType\":\"GenericEvent\",\"caption\":\"Fullscreen\",\"description\":\"PorteA\"}",
"eventResourceIds": [],
"eventState": "Active",
"eventType": "undefinedEvent",
"id": "{dc06584c-c813-4685-ab63-1a722e5167dd}",
"schedule": "",
"system": false
},
…
I'm a bit surprised to see that the comment is missing.
But the main part of my help request is about the display of the rule in the GUI : I'm logged with the same user I used to create the rule but I can't see the rule in the list.
On the other hand, I'm not able to see another rule I've created in the GUI in the response of the GET eventrules. I have only one NX server and I'm using the same user (same behavior for admin user as well).
From the main.log in DEBUG mode here is what I can see for this request :
2026-07-16 16:21:24.213 11af0 DEBUG nx::vms::server::auth::SessionManager(0x2aa53dee748): Token vms-e1ade512c75a15fcee19bfa282aa29eb-ZiDTd29QS39iqItGie2FxcWLqvDYlR is updated to Default({5788047b-204f-421e-97a3-b4b85f0a061f}, vms-e1ade512c75a15fcee19bfa282aa29eb-ZiDTd29QS39iqItGie2FxcWLqvDYlR, 7236125ms old, for 2584763875ms)
2026-07-16 16:21:24.214 11af0 DEBUG ec2::UpdateHttpHandler<nx::vms::api::EventRuleData,nx::vms::api::EventRuleData,ec2::BaseEc2Connection<ec2::ServerQueryProcessorAccess> >(0x2aa541b2260): Received transaction saveEventRule via ec2 http request. Data: IdData: id: {dc06584c-c813-4685-ab63-1a722e5167dd}
2026-07-16 16:21:24.218 11af0 ERROR ASSERT: ASSERTION FAILED: C:\P\b39a256a3d\nx_vms\vms\server\nx_vms_server_db\src\nx\vms\server\db\migration\vms_rules_db_migration.cpp:785 (!result.type.isEmpty()) Unexpected event type: undefinedEvent
2026-07-16 16:21:24.218 11af0 WARNING ec2::detail::ServerQueryProcessor(0xd85a6fe7c0): Failed to convert event rule to VMS rule
2026-07-16 16:21:24.219 2160 DEBUG ec2::QnTransactionLog(0x2aa5353fc00): add transaction to log: command=saveEventRule time=(0, 1784211686939) peer={e1ade512-c75a-15fc-ee19-bfa282aa29eb} dbId={e96df324-b258-4be3-a0a0-d9d80c0d8ed8} dbSeq=142608 hash={dc06584c-c813-4685-ab63-1a722e5167dd}
2026-07-16 16:21:24.238 3254 DEBUG nx::vms::server::analytics::DeviceAnalyticsContext(0x2aa51a4ca90): Unable to get stream requirements for the Engine {1e5613c4-b7ac-546d-6623-8c179de18114}
And from the http.log :
2026-07-16 16:21:24.213 11af0 DEBUG HTTP: Received request from 10.20.7.54:57989:
POST /ec2/saveEventRule HTTP/1.1
Content-Type: application/json
Authorization: Bearer vms-e1ade512c75a15fcee19bfa282aa29eb-ZiDTd29QS39iqItGie2FxcWLqvDYlR
User-Agent: PostmanRuntime/7.51.1
Accept: */*
Cache-Control: no-cache
Postman-Token: 71e613e2-e404-4098-848d-fb7713ac2a04
Host: 10.20.200.100:7001
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 411
{
"eventType": "undefinedEvent",
"eventCondition": "{\"eventType\":\"undefinedEvent\",\"caption\":\"Fullscreen\",\"description\":\"PorteA\"}",
"eventState": "active",
"actionType": "openLayoutAction",
"actionParams": "{\"layoutId\":\"{43b97659-824a-4b65-b9e2-c312862f4b29}\"}",
"disabled": false,
"comment": "creation viewer test",
"schedule": "",
"system": false
}
2026-07-16 16:21:24.220 11ae8 DEBUG HTTP: Sending request to: 15.197.226.136:443:
POST https://nxvms.com/cdb/oauth2/introspect HTTP/1.1
Connection: keep-alive
Content-Length: 847
Content-Type: application/json
Date: Thu, 16 Jul 2026 14:21:23 GMT
Host: nxvms.com:443
Proxy-Authorization: Digest username="e1ade512-c75a-15fc-ee19-bfa282aa29eb", realm="VMS", nonce="656bb27c92e28", uri="/cdb/oauth2/introspect", response="5898de75265ee32f07a234bd43708760", algorithm="MD5"
User-Agent: Nx Witness/6.1.2.42921 (Network Optix) Mozilla/5.0 (Windows NT 6.1; WOW64)
Via: 1.1 {e1ade512-c75a-15fc-ee19-bfa282aa29eb}
X-Nx-User-Name: 9348ca11-56a8-4288-b198-345e3edd74ad
X-proxy-ttl: 7
{"token":"nxcdb-eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRiNGE2NzNkLTlkNjMtNGMzYS1hODliLWM3Yzc5MTc3ZTFkYyJ9.eyJleHAiOjE3ODQyODA5MDQsInN1YmpUeXAiOiJVc2VyIiwicHdkVGltZSI6MTc2NTg5NTc2OCwic2lkIjoiZTk5NGM5MzctYjRhNy00MmQwLThmMmEtNGRjNGQzNGU0ZWEzIiwidHlwIjoiYWNjZXNzVG9rZW4iLCJhdWQiOiJjbG91ZFN5c3RlbUlkPTkzNDhjYTExLTU2YTgtNDI4OC1iMTk4LTM0NWUzZWRkNzRhZCIsImlhdCI6MTc4NDE5NDUwNCwic3ViIjoiZnJlZGVyaWMuZ2lyYXJkQGFyZC5mciIsImNsaWVudF9pZCI6IiIsImlzcyI6ImNkYiJ9.Eu4Mo16uZ2vbBoUsfkhO1gmhxGIK-JNB5zmczlEnK6BztaLMes-1Zf5KI_K1KU8ubFI8QR9so5PxtVOWVKBeyr1awll7lCHqbfmb6JasSGEu91rECph_cAhVH9Q8DG5rPYmk_dbJohB9S4bmjHyvWS3SA6FINB61roWSJ1VGNEA8XmS4_eAKAdAJmzcpme3-jxPbU-2GWD56AOM7MpD4n5Ftjuz0NPWd4okSyNlg8oNC3oWXqmM4Ko6jYng4Fo2fkVAx1Cs7WAcUWeocaKmLg4c7IoG_9frmx-2hvZHB-u4OAMJWdBkKJauMPAsNvkkH-j7ZKpqdZbYQPdRnf3pkPA","skip_non_shared":false,"ignore_mfa_state":false}
2026-07-16 16:21:24.223 11af0 DEBUG HTTP: Sending response to 10.20.7.54:57989:
HTTP/1.1 200 OK
Access-Control-Allow-Headers: X-PINGOTHER, Content-Type
Access-Control-Allow-Methods:
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 600
Cache-Control: post-check=0, pre-check=0
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 67
Content-Type: application/json
Date: Thu, 16 Jul 2026 14:21:24 GMT
Keep-Alive: timeout=5
Pragma: no-cache
Server: Nx Witness/6.1.2.42921
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept-Encoding, Origin
X-Frame-Options: SAMEORIGIN
{"id":"{dc06584c-c813-4685-ab63-1a722e5167dd}"}
I assume I cannot see the rule in the GUI because of the type but I have also tried rule creation with eventType as genericEvent/GenericEvent and also in EventType embedded in eventCondition but I have the same error.
And why can't I see the GUI rules in the GET /ec2/getEventRules.
Thanks in advance for your help.
Best regards,
Julie
-
Hi Julie Aurouze,
Just a quick heads-up: the endpoints you shared are currently deprecated. To ensure everything runs smoothly and securely, please transition to using our current REST API (v4).
Here are the updated endpoints you'll need for managing event rules:
-
Retrieve all rules:
GET /rest/v4/events/rules -
Retrieve a specific rule:
GET /rest/v4/events/rules/{id} -
Create a new rule:
POST /rest/v4/events/rules -
Update a specific rule:
PATCH /rest/v4/events/rules/{id}
For more detailed information on request payloads and response structures, please refer to our REST API Documentation.
Let me know if you run into any issues or have any questions.
Best regards.
1 -
Retrieve all rules:
Please sign in to leave a comment.
Comments
1 comment