Since the current JHipster doesn't support an embedded object in an entity, I have to change the front end code as well as the back end after running "yo jhipster:entity myEntity". After changing related new created Javascript files, I get an error
Error: Could not resolve 'myNewEntity' from state 'site'
when I click the entity menu item under the "Entities". Due to this error, I can't do any manual tests on my project.
I only can find one entry with the error. My situation isn't in the product mode though.
How to solve this error?
It depends on what you modified to the angular-ui router states that have been generated by jhipster:entity.
You should have a look at myEntity.js, it should define 4 states.
Then compare these names with the ui-sref of entities menu in navbar.html.
Another possibility is that you forgot to add or change the js scripts in index*;html and so your states are not defined.
Related
While adding fields, I am facing issue that I am not able to open my table if there is new field added. it shows error like this:
Whenever a field is added, it shows an error like this:
when I check the event viewer, it shows this error:
Full error code :
Can anyone help me with this issue?
It looks like SalesTable is not properly sync'd. This type of error usually just means you need to compile & sync the entire environment to get things "working" better.
Remove your custom fields, compile the table, right click on the table, and synchronize and verify first you can successfully synchronize the individual table. If you can sync it, then sync your entire data dictionary to ensure everything is sync'd up...if one table is off (in this way), it can mean there are other tables as well.
You can choose to try and add fields and see if it works, but I would just start with a full system compile & sync.
Note: Your infolog screenshots cut off the error message. When asking a question, make sure to include the actual error messages and redact personal information. Your event viewer screenshot is also cut off...same thing.
Identify that the ID in SQL is not match with the Table name at AOT .
I'm able to upload classification to Maximo except CLASSSTRUCTUREID column, the process of MxLoader finish without any errors but the class structure field gets an Autokey value.
I tried to remove the Restricted option from the integration object structure (enforced to check Override) but on third row I got this error:
Internal Server Error
Error 500: nested exception is: psdi.util.MXRequiredFieldException: BMXAA4195E - The Class Structure field requires a value."
The first two lines updated successfully on Maximo but, the other lines got the classification id in Classification Path and empty the parent classification (screenshot attached)
Any suggestion
Thanks
Maximo: 7.5.0.3
MxLoader: 4.7.2
in Maximo, after removing the restriction option from the integration object structure you must use option "Generate Schema/View XML" from action menu, for both Create and Update Operation.
it works with me after doing this.
I've workflow application using 8 xpages. It was working fine upto this moment and all of sudden when saving new document for any xpage, it started giving the following error:
Unexpected runtime error
The runtime has encountered an unexpected error.
Error source
Page Name:/XpNew.xsp
Exception
Error saving data source document1
Could not save the document 44F2A NotesException: Notes error: You cannot update or delete the document(s) since you are not listed as an allowable Author for this document
Even though I've manager access to the database. It is also weird that it started giving error on test and production server. I also ran compact with -c and still the same issue.
Ran Fixup and still same issue.
In this situation, since it appears to be a core Notes exception and not anything at the XSP layer, I'd look into ACLs first. Are you manager by way of being in a group? And if so, has that group changed in any way recently, or is it specified in a secondary Directory referenced via Directory Assistance? I've had situations where the HTTP task just sort of "forgets" group membership from a secondary Directory until I restart it.
Another potential source of trouble could be the "Maximum Internet name and password" field on the database's ACL's Advanced tab - if that's set to Author, it will override whatever your real access is.
As a troubleshooting step, I'd make an XPage with this in a computed text item:
database.queryAccess(session.getEffectiveUserName());
That should return your numeric access level. Additionally, to check on the first paragraph's theory, you could add a Form or Page with a computed value of:
#UserNamesList
That will give you a list of all effective names, groups, and roles for the current user in the current database.
There was a Authors field on Notes form with value #Username which was returning value in hierarchical form as First Name/Company.
Changed the formula to #Name([Canonicalize];#UserName) and Maximum access Level thru web kept default editor. This resolve the issue. Now it is saving documents without any issue.
Thanks everybody for help
I'm in the process of upgrading an Orchard site from 1.3.9 to 1.7.
I'm using the Upgrade module, and when attempting to upgrade Routes (last tab) the code fails, at the point where it attempts to access a newly created AutoroutePart.
Specifically, inside RouteController.IndexPOST() :
// migrating parts
_contentDefinitionManager.AlterTypeDefinition(contentType,
builder => builder
.WithPart("AutoroutePart")
.WithPart("TitlePart"));
// force the first object to be reloaded in order to get a valid AutoroutePart
_orchardServices.ContentManager.Clear();
This code snippet is supposed to assign an AutoroutePart and a TitlePart to the type at hand (let's say it's a Page but obviously any other type in the checkbox list of the Routes tab). But it fails to do so. Because later on the assignment
var autoroutePart = ((ContentItem)content).As<AutoroutePart>();
fails and autoroutePart is null, and then further down the code fails with an Object reference not set... error when it attempts to access autoroutePart.ContentItem.Id.
Eventually I was able to bypass it by manually entering a record in table Settings_ContentTypePartDefinitionRecord that maps a Page (ContentType ID 2) to Autoroute and Title part IDs but that seems awkward and error-prone, and I must have missed something (not to mention having to apply this hack to the rest of the content types).
What can cause AlterTypeDefinition to not apply these records in the database?
I was able to get this to work by using the new transaction system.
The idea is that ITransactionManager.RequireNew() is called before and after each piece of code that needs to be committed to the database. A few of the calls in my code example are redundant but I figure this code is only going to be used once so rather than try to optimize unneeded calls away, I would leave them in to indicate where transactions start and end.
Providing a diff as a gist.
https://gist.github.com/harmony7/10621982
I have some javascript code attached to the accounts entity. This code sets the requirement level of the primary contact attribute based on the value of a custom option set field showing various account types. This was developed on one server, where it worked, and so the solution was imported into another organisation where it now doesnt work.
It seems to be only on this field as i have changed the code to look at another field and that works fine. The error it gives is that the "Object doesn't support this property or method". Also what is strange is that the field doesn't appear in the list under the entity within the solution despite it being a system field.
The code i'm using is:
Xrm.Page.getAttribute("primarycontactid").setRequiredLevel("required");
Can anyone help me figure out what it's doing?
Thanks
EDIT: Found that the code is actually making the field required despite the error, but it's not displaying the * next to it. Also if I make the field required in it's settings then it does the same thing