I configured geo location based statistics according to the documentation for api manager and in the analytics dashboard i added the "GEO LOCATION BASED INVOCATIONS" widget.but when i select the api name it stuck and does not load anything:
enter image description here
also in the dashboard console i got the following error:
ERROR {org.wso2.carbon.data.provider.endpoint.DataProviderEndPoint} - Error found in method : io.siddhi.query.compiler.exception.SiddhiParserException: Error between # Line: 1. Position: 0 and # Line: 1. Position: 109. Syntax error in SiddhiQL, no viable alternative at input '{{timeFrom}}'.
[2020-10-04 22:32:49,883] ERROR {org.wso2.carbon.data.provider.endpoint.DataProviderEndPoint} - Error initializing the data provider endpoint for source type SiddhiStoreDataProvider. Error between # Line: 1. Position: 0 and # Line: 1. Position: 109. Syntax error in SiddhiQL, no viable alternative at input '{{timeFrom}}'. io.siddhi.query.compiler.exception.SiddhiParserException: Error between # Line: 1. Position: 0 and # Line: 1. Position: 109. Syntax error in SiddhiQL, no viable alternative at input '{{timeFrom}}'
FYI i called the api with 'X-Forwarded-For' header and the value is my public ip : 5.237.24.12
can someone help me please?
for 5 days i have been trying for this :(
If you are creating a new dashboard or adding this widget to an existing dashboard make sure to add the "Date Time Range" widget to the current page if it is not. Then subscribe "GEO LOCATION BASED INVOCATIONS" widget to the "Date Time Range" widget.
"Date Time Range" provide the time durations to the other widgets. Looks like it failed due to lack of this widget.
Related
I migrate from odoo 13 to odoo 14, but when I import all this; My website has an error like :
load could not load template
ValueError: The element '<xpath expr="//*[hasclass('o_footer_copyright_name')]">' could not be located in the parent view
View name: Footer Language Selector
Error context:
view: ir.ui.view(3822,)
view.parent: ir.ui.view(2094,)
Template: 1816
Path: /t/t
An error occurred while rendering template 1816
I didn't edited this view btw.
If anyone has a solution I'm interested!
Thanks by advance !
I experienced the same issue while upgrading from Odoo Enterprise 13 to 14.
Note the following points:
The Release Notes (https://www.odoo.com/odoo-14-release-notes) state:
"Add the language selector in the header and customize the layout."
There is a new view added called 'Footer Language Selector' (Key:
portal.footer_language_selector). This appears to be added while
running the Odoo DB upgrade 13 > 14.
The 'Footer Language Selector' view is not created when setting up a new
Odoo 14 database!
To resolve your issue, you need to disable the 'Footer Language Selector' view. This can be done in one of two ways:
If you are logged in to your Odoo instance, enable Developer Mode, and go to Settings > Technical > User Interface > Views and search for 'Footer Language Selector'. Select the view, and then select the menu option to 'Archive'
If you are not logged in/not able to log in, you need to disable the view in the database directly. Here is the command that will disable the view: UPDATE public.ir_ui_view SET active = false WHERE id = 3822; NOTE: the 'id = 3822' value must match the view number in the error: ir.ui.view(3822,)
I hope this helps you resolve the issue which appears to be a bug introduced by the Odoo DB update tool.
I am trying to add a new field through the customization browser to the Purchase Orders screen (PO301000). I created the field through the New Field button and edited the Data Access slightly to provide a default parameter for the field. Here is the code in the Data Access:
[PXDBDecimal]
[PXDefault(TypeCode.Decimal, "0.0")]
[PXUIField(DisplayName="Weight Total")]
This field will be used to calculate the total weight of the purchase order and I would like it to be stored in the database.
I get this error when publishing:
An error while publishing the database item POOrder
with the message:
Nullable object must have a value.
I have tried changing the PXDBDecimal to a PXDBQuantity. This has to be done through the customization browser and not the database itself because this project will be going on a SaaS hosted site where I do not have access to the database. I have also tried creating the field through the DAC only and I receive this error when trying to open the page:
Invalid column name 'UsrWeightTotal'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'UsrWeightTotal'.
When reviewing the project xml for the POOrder table entry in the customization I found there were some extra/missing attributes required for a column type of decimal.
There was a MaxLength property and no DecimalLength property. I compared it to adding a new field of type decimal and looked at the project xml to come up with the following:
<Table TableName="POOrder">
<Column TableName="POOrder" ColumnName="UsrWeightTotal" ColumnType="decimal" AllowNull="True" DecimalPrecision="6" DecimalLength="19" IsNewColumn="True" IsUnicode="True" />
</Table>
I bet the error was complaining about the missing DecimalLength value (as a result was null but required for the publish process).
i will upload multipe Images in an Sonta Admin Frontend with and Sonata_Form_Collection.
The upload is the following error in the log:
[2017-06-24 13:06:19] request.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\InvalidArgumentException: "Expected argument of type "AppBundle\Entity\Picture", "array" given" at /Users/Christian/Sites/zeltplatz/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php line 275 {"exception":"[object] (Symfony\\Component\\PropertyAccess\\Exception\\InvalidArgumentException(code: 0): Expected argument of type \"AppBundle\\Entity\\Picture\", \"array\" given at /Users/Christian/Sites/zeltplatz/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:275)"} []
Here my Campground Entity:
https://pastebin.com/VWxRY9yq
and my Picture Entity:
https://pastebin.com/e0myy9b9
Also my Sonata Campground Admin:
https://pastebin.com/q3xnu6Ts
and Sonata Picture Admin:
https://pastebin.com/sJwaNUdi
The goal is that I can save several pictures for a campground.
Thanks for feedback and ideas
Here you have a problem with the data type, you need instance of Picture and you give array(of pictures i think). Maybe try add pictures one after the other in loop.
Iam newly using SCT tools in my project. In the board,when i try to display only the names - Politics, IT by using the code {% sphboard_displayCategories rootCategories.name %}.iam getting the error as
Caught VariableDoesNotExist while rendering: Failed lookup for key [name] in u'[<Category: politics>, <Category: IT>]'
If i use {% sphboard_displayCategories rootCategories %},iam getting the entire details of the Politics and IT. But I need to display only the names with url path. Anyone help me?
I don't know SCT tools, but you could return:
rootNames = map(lambda x: x.name, rootCategories)
from your view and use those (assuming SCT just expects strings). You obviously can't access ".name" on a list, this won't work in python either, you have to access name on the individual objects in the list.
I am getting an error message when I try to instert a custom object into an exisiting lead object.
List<Lead> leads =[select Id from Lead where Email =:lead.Email ];
if(leads.size()>0)
{
Lead existing_lead = new Lead(Id = leads[0].id);
social_account.Lead__c = existing_lead.Id; //social_account is a custom object that
//has a child relationship to lead.
//ie lead is a parent of social_accounts.
update existing_lead;
insert social_account; //if there is an existing lead with same same email,
//i'd like to insert new social_account to an exsiting lead.
}
I am getting this error:
554 System.DmlException: Update failed. First exception on row 0 with id 00Q3000000WW3isEAD; first error: CANNOT_UPDATE_CONVERTED_LEAD, cannot reference converted lead: []
Class.ProcessContact.handleInboundEmail: line 81, column 9
External entry point
even if I comment out the 'update existing_lead', i get a similar error message.
554 System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_UPDATE_CONVERTED_LEAD, cannot reference converted lead: [Lead__c]
Class.ProcessContact.handleInboundEmail: line 82, column 9
External entry point
I would appreciate any suggestions.
regards
This error means that the Lead record has been converted to a Contact. Once converted, the Lead record cannot be updated. The Lead object has an IsConverted property that you can check to see if it has been converted. If IsConverted is true, ConvertedContactId will hold the contact ID of the new Contact record.
Lead Object reference
You cannot update converted Lead by default, but after Sprint 16 release, there is possibility, just you need to setup few things.
-From Setup, enter User Interface in the Quick Find box, then select User Interface then select Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions.
-From Setup, enter Profiles in the Quick Find box, then select Profiles. Select the profile and then select Set Audit Fields upon Record Creation.
Here you can find more information's about this.