FIWARE : QuantumpLeap fails to store subscribed data into TimeScaleDB though metadata are correctly inserted into TimeScaleDB - fiware

I'm trying to setup a (classic) workflow to store historical data into TimescaleDB via QuantumLeap and Orion subscription.
The subscription is correctly setup; I'am seeing the timesSent value incrementing everytime I am updating the attributes values in Orion. Example :
notification":{"timesSent":4,"lastNotification":"2022-11-18T17:29:41.535Z...}
On the TimeScaleDB side, the metadata tables (in md_ets_metadata) are correctly created, so the link between QuantumLeap and TimeScaleDb is correctly setup and is working properly.
However, the values are not stored into TimescaleDB.
If I try to query directly QuantumLeap, I get the following error message :
"Notification not processed or not updated: {'S': 'ERROR', 'V': 'ERROR', 'C': '42P01', 'M': 'relation "etbikehiredockingstation" does not exist', 'P': '13', 'F': 'parse_relation.c', 'L': '1381', 'R': 'parserOpenTable'}"
I am a bit stuck in how to troubleshoot more this issue as I don't have any further messages, even on the TimeScaleDB side except saying that the table etbikehiredockingstation doesn't exist, which it's true.
Any clue ?
Thanks in advance for your assistance.
Laurent
(Fiware member)
Connect directly to QuantumLeap, but same error

Related

Power apps. Retrieve values of record with multiple choices in SharePoint list column for a dropdown box

For reference I have recreated this app https://www.matthewdevaney.com/make-a-power-apps-approvals-form/
I changed the equipment column to have multiple values and now some code dosent work because the entry is not a record anymore. I think it is a table now.
I have some code for e.g here;
ViewForm(frm_Request);
Set(varRequest, frm_Request.LastSubmit);
If(varRequest.Status.Value="Submitted",
Office365Outlook.SendEmailV2(
varRequest.Manager.Email,
"IT Equipment Request - Approval Required",
"An I/T equipment request was made for a "&varRequest.Equipment.Value&" by "&varRequest.Employee.DisplayName&". Click here to approve/reject the request."
)
)
at &varRequest.Equipment.Value& (.Value) has an error "expecting record value"
I tried changing this to concat(varRequest.equipment, Value & ",") But it seems to create errors when running the app
Is there a work around for this ?
Im very new to coding and power apps in general so sorry if this is missing any details.
Image of error when running the app after adding concat()

Zabbix Triggers iregex expression validation

I am a beginner in zabbix agent.I would like to know if the below trigger is syntactically correct? If yes then how do I know if the trigger is fired ?
I am not able to receive email notifications.Kindly help me .
{MDMCenter:eventlog[761848].iregexp("Job.Execute() failed. (ex.Message = System.Exception: Exception: Failed in Batch: [1] of \[[0-9]*\] ---> System.Exception: Exception: Failed in Batch: [1] of \[[0-9]*\]] ---> System.IO.IOException: The network name cannot be found.")}
The expression as you have it here seems to be invalid - looks like you have accidentally added some example value inside the function parameters.
You can look for the trigger firing on the dashboard or in the Monitoring -> Triggers page.
In general, before even looking at triggers, verify that data is coming in and that the values match your expectations. If some trigger still does not seem to work, always provide exact trigger expression and a few example values, as well as all the things you have checked (server being running, item values being recent and so on).

Cant update exchange appointment in EWS

Im using EWS to update exchange appointments but sometimes I can't update them after they are created. I'm receiving:
"At least one recipient isn't valid., A message can't be sent because it contains no recipients."
The code is essentially:
Appointment appointment = getAppointment();
... set some properties
appointment.Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendToNone);
Isn't that supposed to work? Beforehand I didn't use the SendInvitationsOrCancellationsMode.SendToNone enum, but even with that I get the same exception.
It's never a problem to create the appointment, it's always the updates that we are having problems with.
For the sake of the log, I send a solution here. I managed to solve it with a workaround. It accepts it if I add a new item to the OptionalAttendees collection, when it is empty. Since I add the SendInvitationsOrCancellationsMode.SendToNone flag, it will send nothing, but finally accepts it without an exception.
if (EWSItem.OptionalAttendees.Count == 0)
EWSItem.OptionalAttendees.Add("me#me.com");
EWSItem.Update(ConflictResolutionMode.AlwaysOverwrite,
SendInvitationsOrCancellationsMode.SendToNone);

No Role found with id: 106 (HTTP 404) in Keyrock when creating new application

I have a problem when creating new application in Horizon(Identity manager GE).
Im logged in as idm user and when creating application, on the first step when i specify name, description, callback and url and press next i get following error:
Error: No Role found with id: 106 (HTTP 404)
Error: Unable to register the application.
What might be the problem?
The mistake was in the Horizons local_settings.py file.
instead of attributes FIWARE_PURCHASER_ROLE_ID and FIWARE_PROVIDER_ROLE_ID pointing to corresponding row ids of table role_fiware like this:
FIWARE_PURCHASER_ROLE_ID = '5786623590bc4f3ab01c61733a13ee6d'
FIWARE_PROVIDER_ROLE_ID = '4806909eb4b646c7a1f11ad9f9ed53ed'
attributes were :
FIWARE_PURCHASER_ROLE_ID = '106'
FIWARE_PROVIDER_ROLE_ID = '191'
I guess that is default configuration for sqlite db.
So if using mysql db just insert correct ids in this file for these attributes from table role_fiware.

Changing One Field in MySQL Database Breaks Visual Studio Report

I have a project I'm working on that pulls data from a MySQL database, I read the data and do some calculations to be used to display charts and graphs, and finally have the information that was calcuated compiled in a PDF report generated from a ReportViewer. The report worked fine so I thought I'd test out making changes to the database.
There is a field in one table called "name", it's type is NVAR CHAR(MAX). To accomodate this type I read the "name" and convert it to a string using:
Convert.ToString(reader[2]); //reader is the object retrieved from the SQL query
As said before, this works fine until I change the "name" field in one table. I've changed it from a numerical string such as "2323" or "1 " (notice the space, which still works) to something arbitrary like "TEST", "TEST RUN", and "TEST " (notice the space). The program doesn't complain until I make this change at which point I'm given the following error:
Warning: Warnings occurred while executing the subreport "Subreport 1".(rsWarningExecutingSubreport)
Warning: An error occurred while executing the subreport "Subreport 1" Instance: 323iT4R0x0S0): Data retrieval failed for the subreport, 'Subreport 1', located at: MyCompanyReports.Reports.Measurement.rdlc. Please check the log files for more information. (rsErrorExecutingSubreport)
I've searched around with this error and noticed that the following lines being in the wrong order was and issue, I think I have them in the correct order because I've successfully create reports with this configuration:
reportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(LocalReport_SubreportProcessing);
this.reportViewer1.RefreshReport();
What are some things that could be going wrong that cause this issue? I'm at my wits end.
I'll post what code I can if needed.
Thanks
EDIT:
For clarification, the report is being rendered to a PDF file. The PDF is still generated but instead of my charts/graphs, I am given the error string. The error occurs directly after this line:
renderedBytes = this.reportViewer1.LocalReport.Render(reportype, devinfo, out mimeType, out encoding, out fileNameExtension, out streams, out warnings);