This only happens to one interface. Whenever you try to click on anything in design mode or edit anything in expression mode you get the above image. This is my expression mode code:
a!localVariables( local!selection:0, local!priority, local!search, local!date, { choose( local!selection+1, { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), a!richTextItem( text: { "What do you need?" }, color: "ACCENT", size: "LARGE" ), char(10), char(10) }, align: "CENTER" ), a!columnsLayout( columns:{ a!columnLayout(), a!columnLayout( contents: { a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), char(10), char(10), char(10), a!richTextItem( text: { "Create an SFN Order" }, color: "ACCENT", size: "LARGE", style: { "STRONG" } ), char(10), char(10), a!richTextItem( text: { "Enter a new order into the system" }, size: "SMALL" ) }, align: "CENTER" ) }, link: a!startProcessLink( processModel: cons!MAP_PM_CREATE_ORDER ), height: "MEDIUM" ) }, width: "MEDIUM" ), a!columnLayout( contents: { a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), char(10), char(10), char(10), a!richTextItem( text: { "Create an SFNS Order" }, color: "ACCENT", size: "LARGE", style: { "STRONG" } ), char(10), char(10), a!richTextItem( text: { "Enter a new order for SFNS into the system" }, size: "SMALL" ) }, align: "CENTER" ) }, link: a!startProcessLink( processModel: cons!SFNS_PROCESS_MODEL ), height: "MEDIUM" ) }, width: "MEDIUM" ), a!columnLayout( contents: { a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), char(10), char(10), char(10), a!richTextItem( text: { "Create an SFNG Order" }, color: "ACCENT", size: "LARGE", style: { "STRONG" } ), char(10), char(10), a!richTextItem( text: { "Enter a new order for SFNG into the system" }, size: "SMALL" ) }, align: "CENTER" ) }, link: a!startProcessLink(), height: "MEDIUM" ) }, width: "MEDIUM" ), a!columnLayout() } ) }, { a!richTextDisplayField( value:a!richTextItem( text:{ a!richTextIcon(icon:"arrow-left"), " Go Back" }, link:a!dynamicLink(value:0,saveInto: local!selection) ) ), rule!MAP_ordersGrid( priority: local!priority, search: local!search, date: local!date ) }, { a!richTextDisplayField( value:a!richTextItem( text:{ a!richTextIcon(icon:"arrow-left"), " Go Back" }, link:a!dynamicLink(value:0,saveInto: local!selection) ) ), rule!TKV_MyTasks(batchSize: 10) } ) } )
Please help us this is a huge blocker for our team currently.
Discussion posts and replies are publicly visible
So does this mean you are unable to edit the interface at all? I don't see anything inherently wrong with what you have, but here's a few suggestions:
Let me know if any of those work or if you are still having issues.
So, looking at the logs I cannot identify if there is an error how would you end up checking the logs to know if there was an error? I will look into the second one as well here in a second.
I always suggest starting with the application server log, which should be tomcat-stdout.log. That is the catch all for many errors, and you might see more details listed there.
I have checked the previous versions and I am getting the same error with previous versions even though previously I edited them.
Can you restore the earliest version (which presumably should be empty)? If that still doesn't work, can you describe how this is being used? Is this live in production or is it only being used in development? If it's live in production, do you see the same errors in each of your environments (dev, test, prod)? If you don't see the error in one of your environments, I'd try to see if you can export that version and overwrite the current version in your other environments.
This is deployed but we do not have the correct environments stood up yet. It works with the earliest version, whenever I try to copy and paste expression mode code it spits back the same error. This is being used as a button to take to other forms with a link to the process model so it will open up new tabs to other forms. This is a live production.
Can you paste a portion of the full code into your interface? Best I can tell there's 3 potential things that show based on a choose function - do any of the 3 parts work on their own? You should be able to add items until they break to identify what in your interface is causing the error.
It has a problem with what seems to be every section of the choose statement. I have no clue what is going on with this error.
Being a developer for so long I have never found an error that has been so vague.
Ok last thing I'm wondering about - does this SAIL expression work in another interface or does it give you the same error? If it works in another interface, you could at least paste it there and update any objects to reference the new interface.
If that doesn't work, then you may need to open a support ticket. It does seem like a strange issue :(
What exactly do you mean by the SAIL expression?
SAIL is the expression language we use in Appian - I just mean copying the full expression shown at the top into another interface.
Yes that does not work it just spits back the same error before even loading the interface. How can I open a support ticket?
I was able to find one thing, on a previous page where the button links to that it gives me an error that states it cant go to design mode because:
Invalid parameter at function ’’MAP_createOrderInterface’’ [line 207]: The following parameters do not exist: 'priority', 'search', 'date'
This is even though the parameters are specified at the top of that page as well
Here is the code for MAP_dashboard that leads into MAP_createOrderInterface:
a!localVariables( local!selection:0, local!priority, local!search, local!date, { a!billboardLayout( backgroundMedia: a!documentImage( document: cons!MAP_DOC_HEADER_IMAGE[2] ), backgroundColor: "#f0f0f0", height: "SHORT", overlay: a!barOverlay( contents: { a!richTextDisplayField( label: "Rich Text", labelPosition: "COLLAPSED", value: { a!richTextItem( text: { "Source Foundation Geomatics Production Management Tool " }, size: "LARGE" ) } ) } ) ), choose( local!selection+1, { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), a!richTextItem( text: "What do you need to do?", color: "ACCENT", size: "LARGE" ), char(10), char(10) }, align: "CENTER" ), a!columnsLayout( columns:{ a!columnLayout(), a!columnLayout( contents: { a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), a!richTextIcon( icon: "pencil-square-o", color: "#8CA1D0", size: "LARGE" ), char(10), char(10), a!richTextItem( text: { "Create Order" }, color: "ACCENT", size: "LARGE", style: { "STRONG" } ), char(10), char(10), a!richTextItem( text: { "Enter a new order into the system" }, size: "SMALL" ) }, align: "CENTER" ) }, link: a!dynamicLink( value:1, saveInto: local!selection ), height: "MEDIUM" ) }, width: "MEDIUM" ), a!columnLayout( contents: { a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), a!richTextIcon( icon: "list-ul", color: "#8CA1D0", size: "LARGE" ), char(10), char(10), a!richTextItem( text: { "View Orders" }, color: "ACCENT", size: "LARGE", style: { "STRONG" } ), char(10), char(10), a!richTextItem( text: { "Track and update existing orders" }, size: "SMALL" ) }, align: "CENTER" ) }, link: a!dynamicLink( value:2, saveInto: local!selection ), height: "MEDIUM" ) }, width: "MEDIUM" ), a!columnLayout( contents: { a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { char(10), char(10), a!richTextIcon( icon: "check-square-o", color: "#8CA1D0", size: "LARGE" ), char(10), char(10), a!richTextItem( text: { "Process Orders" }, color: "ACCENT", size: "LARGE", style: { "STRONG" } ), char(10), char(10), a!richTextItem( text: { "View and complete tasks assigned to you" }, size: "SMALL" ) }, align: "CENTER" ) }, link: a!dynamicLink( value:3, saveInto: local!selection ), height: "MEDIUM" ) }, width: "MEDIUM" ), a!columnLayout() } ) }, { a!richTextDisplayField( value:a!richTextItem( text:{ a!richTextIcon(icon:"arrow-left"), " Go Back" }, link:a!dynamicLink(value:0,saveInto: local!selection) ) ), rule!MAP_createOrderInterface( priority: local!priority, search: local!search, date: local!date ) }, { a!richTextDisplayField( value:a!richTextItem( text:{ a!richTextIcon(icon:"arrow-left"), " Go Back" }, link:a!dynamicLink(value:0,saveInto: local!selection) ) ), rule!MAP_ordersGrid( priority: local!priority, search: local!search, date: local!date ) }, { a!richTextDisplayField( value:a!richTextItem( text:{ a!richTextIcon(icon:"arrow-left"), " Go Back" }, link:a!dynamicLink(value:0,saveInto: local!selection) ) ), rule!TKV_MyTasks(batchSize: 10) } ) } )
This error:
KGraber1078 said:Invalid parameter at function ’’MAP_createOrderInterface’’ [line 207]: The following parameters do not exist: 'priority', 'search', 'date'
Means that you're missing rule inputs in the MAP_createOrderInterface interface for those three variables - can you check to see if those exist in that interface?
Also to your point above that copying the expresssion to a new interface shows the same issue - that probably means there is a specific area of your interface that's causing this. I'd suggest adding a few lines at a time to see if you can isolate what the issue is.
Also, if you need to contact support, you can find the details in this page on Community: https://community.appian.com/support/